|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-11-25 09:45 UTC] mkoppanen@php.net
[2009-11-25 10:40 UTC] mkoppanen@php.net
[2009-11-25 15:01 UTC] mkoppanen@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 19:00:01 2025 UTC |
Description: ------------ Opening a bug on Gopal's request. The issue is that APC is not able to to resolve the full path of the file if the filename is a stream wrapper. Let me know if you need additional information. Reproduce code: --------------- <?php class MyTestStream { public function stream_open($path, $mode, $options, &$opened_path) { $opened_path = str_replace('my.test.stream://', '', $path); return true; } public function stream_read($count) { return ''; } public function stream_eof() { return true; } public function url_stat() { return stat('/tmp/test.php'); } } stream_wrapper_register('my.test.stream', 'MyTestStream'); include 'my.test.stream:///tmp/test.php'; ?> Expected result: ---------------- No error Actual result: -------------- If apc.stat=0 and -D__DEBUG_APC___ are used the following output is generated: 1. h->opened_path=[/mnt/hgfs/workspace/stream.php] h->filename=[stream.php] [Thu Oct 22 14:56:16 2009] [apc-warning] apc failed to locate stream.php - bailing 1. h->opened_path=[null] h->filename=[my.test.stream:///tmp/test.php] [Thu Oct 22 14:56:16 2009] [apc-warning] realpath failed to canonicalize my.test.stream:///tmp/test.php - bailing in /mnt/hgfs/workspace/stream.php on line 20.