ID: 19689 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] This really should be fixed before 4.3.0-dev is released.. ------------------------------------------------------------------------ [2002-10-13 19:24:37] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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