#23456 [Opn->Bgs]: CLI version does not access includes relative to script path
| From: | helly@php.net | Date: | Fri, 02 May 2003 22:24:51 +0000 |
| Subject: | #23456 [Opn->Bgs]: CLI version does not access includes relative to script path | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38963@lists.php.net to get a copy of this message | ||
ID: 23456
Updated by: helly@php.net
Reported By: don at lekei dot ca
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
-Operating System: Windows
+Operating System: ANY
PHP Version: 4.3.1
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
CLI was EXPERIMENTAL in 4.2.x and RTFM.
Previous Comments:
------------------------------------------------------------------------
[2003-05-02 17:15:50] don at lekei dot ca
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 this bug report at http://bugs.php.net/?id=23456&edit=1