|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59829 APC should not try to canonicalize file URLs
Submitted: 2011-06-26 08:31 UTC Modified: 2012-05-01 00:09 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: damien at commerceguys dot com Assigned: rasmus (profile)
Status: Closed Package: APC (PECL)
PHP Version: 5_3 SVN-2011-06-26 (dev) OS:
Private report: No CVE-ID: None
 [2011-06-26 08:31 UTC] damien at commerceguys dot com
The apc.canonicalize mode (from looking at the code) seems to be specifically designed to resolve relative paths into absolute paths. More precisely, APC will not try to canonicalize absolute paths.

I would like to extend that behavior so that file URLs (in the form stream://path) are not canonicalized either. This will allow APC to work properly in stat=0,canonicalize=1 on stream-wrappers that do not implement realpath().


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-06-26 08:32 UTC] damien at commerceguys dot com
Patch for review:

This matches what the core PHAR extension is doing.
 [2012-05-01 00:09 UTC]
Automatic comment from SVN on behalf of rasmus
Log: Fix bug #59829
 [2012-05-01 00:09 UTC]
Fixed in svn
 [2012-05-01 00:09 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: rasmus
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Oct 02 22:05:53 2022 UTC