ID: 30881 User updated by: ovdspek at liacs dot nl Reported By: ovdspek at liacs dot nl -Status: Bogus +Status: Open Bug Type: Scripting Engine problem Operating System: Debian Linux Sarge PHP Version: 4.3.9 New Comment:
In that case, please update your documentation so it doesn't say it'll search relative to the directory of current script. Previous Comments: ------------------------------------------------------------------------ [2004-11-26 09:42:24] [EMAIL PROTECTED] That doesn't matter. It will NOT change and NOT added. Please stop reopening this bug. ------------------------------------------------------------------------ [2004-11-26 09:29:15] ovdspek at liacs dot nl > All other SAPIs will chdir to the scripts directory. CLI will not. Isn't that what Tony said too? ------------------------------------------------------------------------ [2004-11-26 01:33:42] [EMAIL PROTECTED] All other SAPIs will chdir to the scripts directory. CLI will not. This is not a bug, so please don't reopen this report. You can always use: include dirname(__FILE__).'/../1.php'; to solve your problem with relative paths in includes. ------------------------------------------------------------------------ [2004-11-25 23:59:46] ovdspek at liacs dot nl I'm not asking for PHP (CLI) to change the cwd to that of the script. I'm only asking for PHP to look for files *relative to the directory of the current script*, as the documentation claims it does. Note that the directory of the current script is *not* equivalent to the cwd (current working directory). > Files for including are first looked in include_path relative to the current working directory and then in include_path relative to the directory of current script. ------------------------------------------------------------------------ [2004-11-25 22:55:24] [EMAIL PROTECTED] PHP CLI "does not change the working directory to that of the script" (c) http://www.php.net/manual/en/features.commandline.php In your case documentation says about other SAPIs. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/30881 -- Edit this bug report at http://bugs.php.net/?id=30881&edit=1