Re: Hidden include_path Fall Back?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 8 Aug 2007 10:39:03 +0100
"Ford, Mike" <M.Ford@xxxxxxxxxxxxxx> wrote:
> On 08 August 2007 10:06, imacat wrote:
> >     I found that include_path seems to have a hidden fall back that's
> > not documented anywhere.  It seems to always look for files in the
> > calling files' own directory.
> Isn't this what's documented here: http://php.net/include/?

    Oh, Thank you.  I visited that page.  It reads:

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

    Well, this seems a bit wrong.  It does not look in "include_path
relative to the directory of current script", but "relative to the
directory of the current script".  As what I've seen in the source, it
simply appends the directory of the current script to include_path, but
does not check include_path relative to the directory.

    Maybe it is documented elsewhere?  Or should I file this as a
documentation bug?

--
Best regards,
imacat ^_*' <imacat@xxxxxxxxxxxxxxxxxx>
PGP Key: http://www.imacat.idv.tw/me/pgpkey.asc

<<Woman's Voice>> News: http://www.wov.idv.tw/
Tavern IMACAT's: http://www.imacat.idv.tw/
TLUG List Manager: http://lists.linux.org.tw/cgi-bin/mailman/listinfo/tlug

Attachment: pgpBUSbOmqxQP.pgp
Description: PGP signature


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux