#23456 [NEW]: CLI version does not access includes relative to script path
| From: | don at lekei dot ca | Date: | Fri, 02 May 2003 22:15:51 +0000 |
| Subject: | #23456 [NEW]: CLI version does not access includes relative to script path | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-38961@lists.php.net to get a copy of this message | ||
From: don at lekei dot ca
Operating system: Windows
PHP version: 4.3.1
PHP Bug Type: Unknown/Other Function
Bug description: CLI version does not access includes relative to script path
When a script has an include statement such as:
include_once("../includes/session.php");
(This file works with 4.2.3)
It fails to find the include file because it is not searching relative to
the script directory.
This seems similar to other reported bugs but the file in question works
fine when executed with the CGI or SAPI versions of PHP and worked fine
with 4.2.3 cli but not with 4.3.1
The temporary work-around is to specify the absolute path to the include
file (ewww!) or calculate the path (messy but portable).
--
Edit bug report at http://bugs.php.net/?id=23456&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23456&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23456&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23456&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23456&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23456&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23456&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23456&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23456&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23456&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23456&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23456&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23456&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23456&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23456&r=gnused