Re: include bug in 5.3
| From: | Rasmus Lerdorf | Date: | Thu, 07 Aug 2008 19:52:37 +0000 |
| Subject: | Re: include bug in 5.3 | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-39752@lists.php.net to get a copy of this message | ||
Felipe Pena wrote:
Em Qui, 2008-08-07 às 20:55 +0200, Hannes Magnusson escreveu:That's not the same thing though. Your case seems to show that it isn't using the include_path at all. On BSD after checking ./foo.php why doesn't it continue on to /usr/local/lib/php/foo.php? It certain does for me here. -RasmusOn Thu, Aug 7, 2008 at 20:20, Rasmus Lerdorf<rasmus@lerdorf.com> wrote:When trying debug it days ago, I noticed add that:Christian Stocker wrote:Hi Since quite some time (weeks), I have this very strange and annoying include bug in 5.3-dev and now I think is the time to report it :) The reproducable script is here: http://trash.chregu.tv/include-bug.php.txt+++ TSRM/tsrm_virtual_cwd.c 4 Jul 2008 03:05:16 -0000@@ -557,9 +557,11 @@ CWD_API int virtual_file_ex(cwd_state *sif (use_realpath != CWD_EXPAND) {#if !defined(TSRM_WIN32)&& !defined(NETWARE)char resolved_path[MAXPATHLEN]; + printf(">>> %s\n", path); if (!realpath(path, resolved_path)) { /* Note: Notthreadsafe on older *BSD's */+ printf(">> 1\n"); if (use_realpath == CWD_REALPATH) { + printf(">> 2\n");---------------------------------------------------------------- LINUX:foo ---------------------------------- BSD:/home/felipe/php5/sapi/cli/php /home/felipe/php5/sapi/cli/php /home/felipe/php5/sapi/cli/php-cli.ini1/usr/local/lib/php-cli.ini1/home/felipe/php5/sapi/cli/php.ini1/usr/local/lib/php.ini /usr/local/lib/php.ini /home/felipe/test/test.php /home/felipe/./foo.php1 2/usr/local/lib/php/foo.php1 2/home/felipe/test/foo.phpWarning: include(/usr/home/felipe/foo.php): failed to open stream: No such file or directory in /usr/home/felipe/test/test.php on line 1 Warning: include(): Failed opening 'foo.php' for inclusion (include_path='.:/usr/local/lib/php') in /usr/home/felipe/test/test.php on line 1/usr/home/felipe/php5/sapi/cli/php /usr/home/felipe/test/test.php /usr/home/felipe/./foo.php