Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qfq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
typo3
qfq
Commits
40cb28d7
Commit
40cb28d7
authored
1 year ago
by
enured
Browse files
Options
Downloads
Patches
Plain Diff
B16478: Fixed stream_get_contents failure in PHP8.1 Generic Error. refs #16478
parent
1e1b7ce3
No related branches found
No related tags found
2 merge requests
!598
New version v23.6.3
,
!597
B16478: Fixed stream_get_contents failure in PHP8.1 Generic Error. refs #16478
Pipeline
#9776
passed
1 year ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
extension/Classes/Core/Report/RestClient.php
+2
-1
2 additions, 1 deletion
extension/Classes/Core/Report/RestClient.php
with
2 additions
and
1 deletion
extension/Classes/Core/Report/RestClient.php
+
2
−
1
View file @
40cb28d7
...
@@ -192,13 +192,14 @@ class RestClient {
...
@@ -192,13 +192,14 @@ class RestClient {
$context
=
stream_context_create
(
$opts
);
$context
=
stream_context_create
(
$opts
);
$stream
=
@
fopen
(
$url
,
'r'
,
false
,
$context
);
$stream
=
@
fopen
(
$url
,
'r'
,
false
,
$context
);
$output
=
stream_get_contents
(
$stream
);
if
(
$stream
===
false
)
{
if
(
$stream
===
false
)
{
$err
=
error_get_last
();
$err
=
error_get_last
();
throw
new
Exception
(
"Api call
{
$method
}
{
$url
}
failed: "
.
$err
[
'message'
],
ERROR_REST_API_CALL
);
throw
new
Exception
(
"Api call
{
$method
}
{
$url
}
failed: "
.
$err
[
'message'
],
ERROR_REST_API_CALL
);
}
}
$output
=
stream_get_contents
(
$stream
);
// get HTTP status code
// get HTTP status code
$status_line
=
$http_response_header
[
0
];
$status_line
=
$http_response_header
[
0
];
preg_match
(
'{HTTP\/\S*\s(\d{3})}'
,
$status_line
,
$match
);
preg_match
(
'{HTTP\/\S*\s(\d{3})}'
,
$status_line
,
$match
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment