|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-04-25 21:29 UTC] nick at ihighteam dot com
Description: ------------ I am using PHP 5.4.1 and APC 3.1.10. This bug is probably related to https://bugs.php.net/bug.php?id=59493 Starting with PHP 5.4 using apc.stat=0 with relative includes does no longer work at all. It now produces a warning followed by fatal error. PHP Warning: require_once(/srv/http/vhosts/.../htdocs): failed to open stream: Success in /srv/http/vhosts/.../htdocs/index.php on line xx PHP Fatal error: require_once(): Failed opening required '' (include_path='.:/usr/share/pear') in /srv/http/vhosts/.../htdocs/index.php on line xx The same code worked fine with PHP 5.3. I am not sure if it is meant to break as we already discussed that apc.stat=0 + relative paths is "difficult". But at least the error message could be improved. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 04:00:01 2025 UTC |
Please re-open. I'm having the same issue with PHP 5.4.3 and APC 3.1.10 on FreeBSD 8. Any code referencing a file in a parent directory causes a meltdown: Ex: require('../file.php') I haven't found a fix, other converting everything to absolute paths, which isn't practical at the moment.