Bug #17782: Apache2 crashes on curl_exec()

From: Date: Sun, 16 Jun 2002 13:00:39 +0000
Subject: Bug #17782: Apache2 crashes on curl_exec()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10714@lists.php.net to get a copy of this message
From: erik@nflare.com Operating system: WinXP PHP version: 4.2.1 PHP Bug Type: Apache2 related Bug description: Apache2 crashes on curl_exec() The example script from the documentation causes the crash everytime: <?php $ch = curl_init ("http://www.erikmc.com/index.html"); $fp = fopen ("example_homepage.txt", "w"); curl_setopt ($ch, CURLOPT_FILE, $fp); $fp1 = fopen ("example_homepage1.txt", "w"); curl_setopt ($ch, CURLOPT_HEADER, 0); $fp2 = fopen ("example_homepage2.txt", "w"); curl_exec ($ch); $fp3 = fopen ("example_homepage3.txt", "w"); curl_close ($ch); $fp4 = fopen ("example_homepage4.txt", "w"); fclose ($fp); $fp5 = fopen ("example_homepage5.txt", "w"); ?> I wrote all the fopens so I could see which statement it crashed on everytime. And that statement is this one: curl_exec ($ch); Whenever I run this script it says Apache2 has encountered an error and needs to be closed, but the ie windows doesnt close, and the Apache2 server is still running. Maybe thats WinXP handling an error quietly or something. The example_homepage.txt is still blank. I enabled ctype, curl, gd2, ming, printer, and zlib. I thank you for your time. -- Edit bug report at http://bugs.php.net/?id=17782&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17782&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17782&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17782&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17782&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17782&r=support Expected behavior: http://bugs.php.net/fix.php?id=17782&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17782&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17782&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17782&r=globals

« previous php.bugs (#10714) next »