#19689 [Com]: 4.2.3 and higher "include" operator mistake

From: Date: Sun, 24 Nov 2002 00:05:01 +0000
Subject: #19689 [Com]: 4.2.3 and higher "include" operator mistake
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-25683@lists.php.net to get a copy of this message
ID: 19689 Comment by: dmitry@koteroff.ru Reported By: dmitry@koteroff.ru Status: Closed Bug Type: Scripting Engine problem Operating System: Windows PHP Version: 4CVS-2002-10-01 New Comment: I'd like to say that in php-4.3.0RC1-Win32 there are problems with fopen: bug.php: <? echo "\n".getcwd()."<br>\n"; fopen("/a.txt","w"); ?> Z:\!distrib\php\php-4.3.0RC1-Win32>php.exe bug.php Z:\!distrib\php\php-4.3.0RC1-Win32<br> Warning: fopen(/a.txt) [http://www.php.net/function.fopen]: failed to create stream: No such file or directory in Z:\!distrib\php\php-4.3.0RC1-Win32\bug.php on line 3 You see if I use z:/a.txt, all works correctly. In PHP 4.3.0-dev (cli) (built: Nov 23 2002 18:15:57) everything seems to be OK. Previous Comments: ------------------------------------------------------------------------ [2002-11-14 07:46:05] iliaa@php.net This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2002-10-29 07:28:00] dekamerone@iprobe.de Hi all, php.ini let you do a quick and easy hack to solve this bug for Win2000 (maybe other WinOS will work with this too): Only change include_path in php.ini as follows: include_path = "c:" looks strange but solves the problem ... Have fun : deka ------------------------------------------------------------------------ [2002-10-13 21:41:00] sniper@php.net This really should be fixed before 4.3.0-dev is released.. ------------------------------------------------------------------------ [2002-10-13 19:24:37] webdevguy1@yahoo.com I may be experiencing a related problem with php.ini. It seems PHP does not recognize subdirectories (Windows only?). For example, the following is OK: include_path = ".;C:\PHPinc;C:\Templates" and the following is not OK: include_path = ".;C:\PHPinc;C:\PHPinc\Templates" I am running: PHP 4.2.3 Windows 2000 Pro Apache 1.3.27 Mod_SSL 2.8.11 OpenSSL 0.9.6g ------------------------------------------------------------------------ [2002-10-01 10:35:20] sniper@php.net DO NOT open more bug reports about this SAME issue. Thank you. ------------------------------------------------------------------------ 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/19689 -- Edit this bug report at http://bugs.php.net/?id=19689&edit=1

« previous php.bugs (#25683) next »