Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
f83b9368
Verified
Commit
f83b9368
authored
2 years ago
by
Juraj Nemec
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3273723
by djdevin, loopy1492, swim: fopen() error in stream_wrappers.inc on PHP 8
parent
ee2a2c7f
No related branches found
No related tags found
1 merge request
!7330
Issue #3306390 by poker10, catch, Fabianx, pwolanin, rvtraveller: [D7]...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/stream_wrappers.inc
+6
-0
6 additions, 0 deletions
includes/stream_wrappers.inc
with
6 additions
and
0 deletions
includes/stream_wrappers.inc
+
6
−
0
View file @
f83b9368
...
...
@@ -405,6 +405,12 @@ protected function getLocalPath($uri = NULL) {
public
function
stream_open
(
$uri
,
$mode
,
$options
,
&
$opened_path
)
{
$this
->
uri
=
$uri
;
$path
=
$this
->
getLocalPath
();
if
(
$path
===
FALSE
)
{
if
(
$options
&
STREAM_REPORT_ERRORS
)
{
trigger_error
(
'stream_open() filename cannot be empty'
,
E_USER_WARNING
);
}
return
FALSE
;
}
$this
->
handle
=
(
$options
&
STREAM_REPORT_ERRORS
)
?
fopen
(
$path
,
$mode
)
:
@
fopen
(
$path
,
$mode
);
if
((
bool
)
$this
->
handle
&&
$options
&
STREAM_USE_PATH
)
{
...
...
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