Bug #55076 [NEW]: requires() fails in a subdirectory with the in-built webserver
| From: | sixd@php.net | Date: | Wed, 29 Jun 2011 21:47:21 +0000 |
| Subject: | Bug #55076 [NEW]: requires() fails in a subdirectory with the in-built webserver | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-161413@lists.php.net to get a copy of this message | ||
From:
Operating system: Linux
PHP version: 5.4SVN-2011-06-29 (SVN)
Package: CGI related
Bug Type: Bug
Bug description:requires() fails in a subdirectory with the in-built webserver
Description:
------------
Working-directory handling in the in-built webserver differs from Apache.
This
makes some non-trivial apps impossible to use in the CLI webserver.
Extract the testcase (attached as a patch).
$ tar -zxf wstest.tgz
$ cd wstest
$ php -n -S localhost:8000
In a browser, load http://localhost:8000/
The contents of index.html are displayed:
Click here to load mydir/requiresfoo.php
Click the link.
Test script:
---------------
See "patch" file
Expected result:
----------------
In mydir/requiresfoo.php
In mydir/foo.php
Actual result:
--------------
Warning: Unknown: failed to open stream: No such file or directory in
Unknown on
line 0
Fatal error: Unknown: Failed opening required './mydir/requiresfoo.php'
(include_path='.:/home/cjones/php54-ic112/lib/php') in Unknown on line 0
--
Edit bug report at https://bugs.php.net/bug.php?id=55076&edit=1
--
Try a snapshot (PHP 5.2): https://bugs.php.net/fix.php?id=55076&r=trysnapshot52
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55076&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55076&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55076&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55076&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55076&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55076&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55076&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55076&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55076&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55076&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55076&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55076&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55076&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55076&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55076&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55076&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55076&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55076&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55076&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55076&r=mysqlcfg