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:

> Current working
directory can be something different than directory of a script.

I understand, but apparently your implementation doesn't.
Why else would "include('../1.php');" fail?


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

[2004-11-26 11:29:43] [EMAIL PROTECTED]

"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." in include() page. Current working
directory can be something different than directory of a script.

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

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

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.

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

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

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

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