Re: Hidden include_path Fall Back?

From: Date: Wed, 08 Aug 2007 20:08:37 +0000
Subject: Re: Hidden include_path Fall Back?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-260455@lists.php.net to get a copy of this message
On Wed, 8 Aug 2007 10:39:03 +0100 "Ford, Mike" <M.Ford@leedsmet.ac.uk> 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@mail.imacat.idv.tw> 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: [application/pgp-signature]
« previous php.general (#260455) next »