Bug #69050 [Opn->Fbk]: User defined file stream wrapper called only once even after page reload

From: Date: Wed, 28 Apr 2021 10:27:36 +0000
Subject: Bug #69050 [Opn->Fbk]: 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-233605@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: cmb@php.net Reported by: dev at eviweb dot fr Summary: User defined file stream wrapper called only once even after page reload -Status: Open +Status: Feedback Type: Bug Package: Streams related Operating System: Ubuntu 14.04.1 LTS PHP Version: 5.6.5 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: 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> Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#233605) next »