Bug #69050 [Fbk->NoF]: User defined file stream wrapper called only once even after page reload
| From: | php-bugs at lists dot php dot net | Date: | Sun, 09 May 2021 04:22:08 +0000 |
| Subject: | Bug #69050 [Fbk->NoF]: User defined file stream wrapper called only once even after page reload | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-233750@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69050&edit=1
ID: 69050
Updated by: php-bugs@lists.php.net
Reported by: dev at eviweb dot fr
Summary: User defined file stream wrapper called only once even
after page reload
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Streams related
Operating System: Ubuntu 14.04.1 LTS
PHP Version: 5.6.5
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2021-04-28 10:27:36] cmb@php.net
I cannot reproduce the reported behavior (although I'm not sure
what you trying to accomplish at all). Anyhow, can you still
reproduce this with any of the actively supported PHP versions[1]?
[1] <https://www.php.net/supported-versions.php>
------------------------------------------------------------------------
[2015-02-13 11:00:07] dev at eviweb dot fr
Description:
------------
A user defined stream wrapper for the file protocol is called only once even if you reload your
page.
It occurs when you include/require a file without the explicit file:/// protocol.
This independently of the allow_url_include value.
When the required path is prefixed with the file:/// protocol, the wrapper is correctly created on
each page reload, which is the expected behaviour.
There should not be differences between requiring a file with or without specifying the file
protocol.
Test script:
---------------
please clone this repository https://github.com/eviweb/php-file-stream-wrapper-issue.git
check the execute permissions are set on the ./start-server script and run it.
Then go to http://localhost:8000.
Click twice on each links and check expected and actual test results.
I noticed on my environment that for the implicit-file test, the file stream wrapper instance is
created only during the first run and nevermore.
Expected result:
----------------
When registered, a user defined stream wrapper for the file protocol should be created on each page
load when a file is included/required, even if the file path is not prefixed with file:///.
Actual result:
--------------
The wrapper is created on the first page load and nevermore.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69050&edit=1