← Back to team overview

ius-coredev team mailing list archive

[Bug 723724] Re: APC 3.1.6 does NOT work with relative path in include()

 

It seems you will need to provide us with a bit more to reproduce the issue, when testing using the lastest build of php53u and php53u-pecl-apc I am unable to reproduce any issues (see below):
 
# cat a/test.php 
<?php
include_once('./config.inc.php');
?>

# cat a/config.inc.php 
<?php
echo 'Hello World';
?>

# cat b/test.php 
<?php
include_once('./config.inc.php');
?>

# cat b/config.inc.php 
<?php
echo 'Hello World';
?>

--- APC Stats ---
http://flip-edesign.com/identical1.jpg
----

I also called each of these configs in a single PHP file:

# cat test.php 
<?php
include('./a/config.inc.php');
include('./b/config.inc.php');
?>

--- APC Stats ---
http://flip-edesign.com/identical2.jpg
----

In the test above the identical files were able to be cached.
--

Another thing I noticed is this PECL bug is you mentioned is related to
cacheing recursive objects (includes within includes), it does not
mention anything about being unable to cache files with identical names.

Can you please provide us with the PHP files you used to reproduce the
issue. We would also like a print out of the php version you are using
(similar to below):

# rpm -qa | grep php53u
php53u-common-5.3.5-3.ius.el5.x86_64
php53u-pecl-apc-3.1.6-4.ius.el5.x86_64
php53u-pear-1.8.1-7.ius.el5.noarch
php53u-5.3.5-3.ius.el5.x86_64
php53u-cli-5.3.5-3.ius.el5.x86_64

Please also provide us with a list of your pecl modules:

]# pecl list
Installed packages, channel pecl.php.net:
=========================================
Package  Version State
APC      3.1.6   stable
memcache 2.2.6   stable

Thanks

-- 
You received this bug notification because you are a member of IUS Core
Development, which is subscribed to IUS Community Project.
https://bugs.launchpad.net/bugs/723724

Title:
  APC 3.1.6 does NOT work with relative path in include()

Status in IUS Community Project:
  New

Bug description:
  APC 3.1.6 used in php53u-pecl-apc-3.1.6 package suffers from the following bug:
  http://pecl.php.net/bugs/bug.php?id=20529
  It causes includes with relative path to not use getcwd() / current working directory, but the directory of the script issuing the include/require statement. This bug is a real pain to debug, as it causes eratic failure in many php frameworks.
  APC 3.1.7 fixes the bug, so please update the packages to this version, even if it's marked beta, while 3.1.6 is marked stable, but is unusable!



References