php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56977 APC doesn`t cache files included with relative paths
Submitted: 2006-04-25 05:58 UTC Modified: 2006-09-03 14:38 UTC
From: robert dot janeczek at gmail dot com Assigned: rasmus (profile)
Status: Closed Package: APC (PECL)
PHP Version: 5.1.2 OS: PLD Linux
Private report: No CVE-ID: None
 [2006-04-25 05:58 UTC] robert dot janeczek at gmail dot com
Description:
------------
I`ve 3.0.10 compiled from source with default settings and it doesn`t cache files which were included using relative paths. This is strange, because I have another server (the same version and settings) which works fine.

I`m sure it is related to paths, because after adding realpath() call around path provided in require/include the files are being cached. It is not possible to fix the problem by simply adding realpath() around all includes in our case.

Reproduce code:
---------------
<?php

include 'dummy.php';

?>

Expected result:
----------------
dummy.php visible on the list of cached files shown by apc.php

Actual result:
--------------
The file which contains the include (let`s call it index.php) is visible on cached files list, but dummy.php is not there.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-21 08:36 UTC] shire at facebook dot com
This sounds like a relative path problem that should be fixed in the latest release/cvs head.  Can you please try one of those versions and see if it corrects your problem?

-shire
 [2006-09-03 14:38 UTC] rasmus@php.net
This was fixed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 09:01:28 2024 UTC