#17782 [Com]: Apache2 crashes on curl_exec()

From: Date: Mon, 17 Feb 2003 21:26:49 +0000
Subject: #17782 [Com]: Apache2 crashes on curl_exec()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-33338@lists.php.net to get a copy of this message
ID: 17782 Comment by: nthomas at mailbox dot hu Reported By: erik at nflare dot com Status: Closed Bug Type: cURL related Operating System: WinXP PHP Version: 4.2.1 Assigned To: sterling New Comment: I get the same behaviour with PHP 4.3.0 with Apache 1.3.24 on Windows XP. Both from command line and as an Apache module. Copy-pasted the example from the manual, and PHP crashed on me. Makes development a real headache if it doesn't work on Windows. Previous Comments: ------------------------------------------------------------------------ [2002-07-10 23:36:08] sniper@php.net Can not reprocude with latest CVS and using curl 7.9.8 on Linux. ------------------------------------------------------------------------ [2002-06-17 15:32:28] sniper@php.net reclassified. ------------------------------------------------------------------------ [2002-06-17 09:02:04] kja at filanet dot dk I have seen the same on Win2000. With the example from the documentation <?php $ch = curl_init ("http://www.example.com/"); $fp = fopen ("example_homepage.txt", "w"); curl_setopt ($ch, CURLOPT_FILE, $fp); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_exec ($ch); curl_close ($ch); fclose ($fp); ?> it crashes (application error/GPF) with PHP 4.2.1 both when run from commandline and as module under Apache 1.3.24 It works fine with PHP 4.1.2. If removing the line curl_setopt ($ch, CURLOPT_FILE, $fp); it works fine with PHP 4.2.1 but that is of course a totally different behavior. Seems to be a CURL bug ... I have not invested time in figuring out how to do a backtrace on Win32. I hope above should be sufficiently detailed to track down the issue. ------------------------------------------------------------------------ [2002-06-16 17:21:52] cynic@php.net you will need to buy (or find a free one) a compiler, and a debugger. the only supported by the PHP team (to my knowledge) is the MS Visual Studio. for advice on getting a backtrace from that consult the product's documentation. ------------------------------------------------------------------------ [2002-06-16 17:15:11] erik at nflare dot com Derick, I went to that page, but I couldn't find any information on how to run the backtrace in Windows. Looked like all unix commands to me. Could you please help me? Thanks. ------------------------------------------------------------------------ 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/17782 -- Edit this bug report at http://bugs.php.net/?id=17782&edit=1

« previous php.bugs (#33338) next »