#37699 [NEW]: Apache crashes with fopen()

From: Date: Mon, 05 Jun 2006 10:42:52 +0000
Subject: #37699 [NEW]: Apache crashes with fopen()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98032@lists.php.net to get a copy of this message
From: kim at steinhaug dot com Operating system: Windows 2000 PHP version: 4CVS-2006-06-05 (snap) PHP Bug Type: *URL Functions Bug description: Apache crashes with fopen() Description: ------------ When accessing the fopen() function with an URL starting with http:// apache crashes. Previous bugs states that this has been fixed in CVS, but the latest snap still crashes. First I upgraded to v4.4.2, I read alot of bugs and then I upgraded to the latest snap but the bug is still here. Reproduce code: --------------- <?php $url="http://www.php.net/"; $xhtml = ''; if($filehandle = @fopen($url, 'rb')) { $xhtml = fread($filehandle, 4096); fclose($filehandle); echo "$xhtml"; } ?> Expected result: ---------------- the HTML of the URL Actual result: -------------- Apache crashes and restarts. -- Edit bug report at http://bugs.php.net/?id=37699&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37699&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37699&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37699&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37699&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37699&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37699&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37699&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37699&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37699&r=support Expected behavior: http://bugs.php.net/fix.php?id=37699&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37699&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37699&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37699&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37699&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37699&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37699&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37699&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37699&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37699&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37699&r=mysqlcfg

« previous php.bugs (#98032) next »