ID:               30881
 User updated by:  ovdspek at liacs dot nl
 Reported By:      ovdspek at liacs dot nl
-Status:           Bogus
+Status:           Open
 Bug Type:         Documentation problem
 Operating System: Debian Linux Sarge
 PHP Version:      4.3.9
 New Comment:

So exactly where is that documented?
At http://php.net/include/ I see no exceptions for CLI and at
http://php.net/manual/en/features.commandline.php I see no exceptions
for include.

It does say "It does not change the working directory to that of the
script. (-C and --no-chdir switches kept for compatibility)", but
that's not relevant, as the include docs say it searches the directory
of the current script, not the current working directory.
If your implementation relies on the current working directory being
the directory of the current script, then your implementation (of this
docs/specs) is wrong.


Previous Comments:
------------------------------------------------------------------------

[2004-11-26 10:53:51] [EMAIL PROTECTED]

>In that case, please update your documentation so it 
>doesn't say it'll search relative to the directory of 
>current script.
All SAPIs except CLI DO search relative to the directory of current
running script.
But you're using CLI and this feature is documented too.

------------------------------------------------------------------------

[2004-11-26 10:12:22] ovdspek at liacs dot nl

In that case, please update your documentation so it doesn't say it'll
search relative to the directory of current script.

------------------------------------------------------------------------

[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.

------------------------------------------------------------------------

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

Reply via email to