← 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()

 

Hello RalfBecker,

I have performed testing on our php52-pecl-apc and php53u-pecl-apc
packages, as mentioned in PECL Bug
(http://pecl.php.net/bugs/bug.php?id=20529) only php52 is effected (see
my test below):

I recreated the same test mentioned in PECL Bug.
--------------------------------------------------------------------

# ls
apc.php  php_bug_test

# cd php_bug_test/

# cat test.php 
<?php
include_once('./a/include1.php');
?>

# cat a/*
<?php
include_once('./a/include2.php');
?>

<?php
echo "Hello world.";
?>

--

After making a request to test.php I checked the APC Cached file (screen
shots below0

== php53u-pecl-apc ==
http://flip-edesign.com/php53u-pecl-apc%20test.jpg

== php52-pecl-apc ==
http://flip-edesign.com/php52-pecl-apc%20test.jpg
==

As seen from the screenshots above only php52-pecl-apc is effected by
the bug listed. I have patched php52-pecl-apc with provided Patch and
verified it resolves the issue mentioned above (for php52), this package
should be pushed out to IUS testing soon.

In order to identify the issue you are being effected by we will need
steps to reproduce the problem, can you also verify you are using
php53u-pecl-apc and not php52-pecl-apc.

-- 
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