#22508 [Opn->Fbk]: fopen() Problems

From: Date: Mon, 28 Apr 2003 12:42:15 +0000
Subject: #22508 [Opn->Fbk]: fopen() Problems
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38545@lists.php.net to get a copy of this message
ID: 22508 Updated by: wez@php.net Reported By: jim at bluedojo dot com -Status: Open +Status: Feedback Bug Type: *Directory/Filesystem functions Operating System: Windows PHP Version: 4.3.2 RC 1 Assigned To: wez New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: ------------------------------------------------------------------------ [2003-04-18 12:51:42] jim at bluedojo dot com For some reason, I submitted an error and it became closed so now I am re-opening it. The message begins from 17 Apr 2003 concerning fopen crashing php.exe. This code produces bug (memory leak?) in 4.3.2 RC 1 (Please excuse the porn link): <? $url = "http://www.free-adult-anime-porn-cartoons.com/robots.txt"; if ($fd = @fopen($url,"r")) echo "Success"; else echo "Failure"; fclose($fd); ?> This link also causes error: http://registration.ft.com/registration/sub/manageYourAccount.jsp ------------------------------------------------------------------------ [2003-04-18 00:24:33] jim at bluedojo dot com Continuing from the above post I sent 5 minutes ago this link causes php.exe to crash too in 4.3.2 RC 1: http://registration.ft.com/registration/sub/manageYourAccount.jsp ------------------------------------------------------------------------ [2003-04-17 23:55:39] jim at bluedojo dot com This code produces bug (memory leak?) in 4.3.2 RC 1 (Please excuse the porn link): <? $url = "http://www.free-adult-anime-porn-cartoons.com/robots.txt"; if ($fd = @fopen($url,"r")) echo "Success"; else echo "Failure"; fclose($fd); ?> ------------------------------------------------------------------------ [2003-03-04 10:21:08] 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. ------------------------------------------------------------------------ [2003-03-04 08:34:18] iliaa@php.net 1 & 2 seems to work fine in latest CVS. #3 is a curios bugger, since it causes an unterminated loop due to what appears to the circular redirect against PHP has no protection. ------------------------------------------------------------------------ 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/22508 -- Edit this bug report at http://bugs.php.net/?id=22508&edit=1

« previous php.bugs (#38545) next »