From: Operating system: PHP version: 5.3.2 Package: Reproducible crash Bug Type: Bug Bug description:Include fails with toplevel symlink to /
Description: ------------ Tarball: http://stephan-suerken.de/tmp/php53include.tar.gz Hi, with a certain directory setup (symlink pointing to /, see file tree in php53include.tar.gz) plus script call syntax (see scripts "ok" and "fail" scripts in tarball), including a file meekly fails. I have not completely debugged it, but afaics "php_resolve_path" fails were it should not; I suspect some of the "canonize path" functions wrongly give an error here. Thanks, Stephan Test script: --------------- Steps to reproduce: 1. Download: http://stephan-suerken.de/tmp/php53include.tar.gz [as root] 2. cd / 3. tar xfz php53include.tar.gz 4. /phptest/fail Expected result: ---------------- # manwe(CHROOT:sid-ui): /phptest # root? ./ok /phpinclude/inc123.php: OK, INCLUDED Actual result: -------------- # manwe(CHROOT:sid-ui): /phptest # root? ./fail PHP Warning: require(/phplink/phpinclude/inc123.php): failed to open stream: No such file or directory in /phptest/test.php on line 2 PHP Fatal error: require(): Failed opening required '/phplink/phpinclude/inc123.php' (include_path='.:/usr/share/php:/usr/share/pear') in /phptest/test.php on line 2 -- Edit bug report at http://bugs.php.net/bug.php?id=51860&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51860&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51860&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51860&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51860&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51860&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51860&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51860&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51860&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51860&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51860&r=support Expected behavior: http://bugs.php.net/fix.php?id=51860&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51860&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51860&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51860&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51860&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51860&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51860&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51860&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51860&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51860&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51860&r=mysqlcfg