#19301 [Com]: curl_exec crashes

From: Date: Tue, 24 Sep 2002 13:41:05 +0000
Subject: #19301 [Com]: curl_exec crashes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-20194@lists.php.net to get a copy of this message
ID: 19301 Comment by: daniel@haxx.se Reported By: honza@honza.info Status: Open Bug Type: cURL related Operating System: Windows XP Professional CZ PHP Version: 4.2.3 New Comment: Could this be related to how Windows DLLs vs apps works? In Windows, you can't open a file and pass the handle of that file to have it read from or written to in a DLL. They somehow don't allow that kind of data to be shared like that. It seems as if it could be, the PHP code opens the file and passes the handle to the DLL that deals with it... Just my thoughts. I might be completely wrong. Previous Comments: ------------------------------------------------------------------------ [2002-09-23 04:52:47] tomas.rollo@grafton.cz It seems the bug doesn't affect only WinNT/2K/XP systems but it's also reproductible on Win98SE. ------------------------------------------------------------------------ [2002-09-12 03:03:37] kja@filanet.dk Same issue was reported against PHP 4.2.1 in bug 17782. I can see that bug has been thought to be solved as it wasn't reproducible on Linux. Apparenly not the case. It must be a Windows only issue with CURL. The offending code is the functionality enabled with curl_setopt ($ch, CURLOPT_FILE, $fp); with that line enabled curl_exec() crashes (application error/GPF) both when running PHP from commandline and as module under Apache 1.3.26 Disabling above line with CURLOPT_FILE it works, but that is not very usefull in my case as I need CURLOPT_FILE :-) I assume the developer responsible for php_curl.dll (or someone else) will be able to debug this on Windows? From my point of view this issue is beginning to get a bit critical, so I wouldn't mind to see a quick solution.... ------------------------------------------------------------------------ [2002-09-09 07:38:14] sniper@php.net This is propably some win32 issue since I can not reproduce this with PHP 4.2.3 / PHP 4.3.0-dev on Linux. ------------------------------------------------------------------------ [2002-09-09 07:30:56] honza@honza.info Ooops, I wanted to write 4.2.3, not 4.3.2. Honza ------------------------------------------------------------------------ [2002-09-09 07:28:51] honza@honza.info Nope, PHP 4.3.2 was the first to get into the system. As I said, I even tested it on clean system (Win2000ProCZ) where nothing else got installed, not even web server (from W2000 i tried it only as php.exe executable), and it gave me the crash on a clean system as well. Honza ------------------------------------------------------------------------ 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/19301 -- Edit this bug report at http://bugs.php.net/?id=19301&edit=1

« previous php.bugs (#20194) next »