#49372 [Asn->Csd]: Segfault in function php_curl_option_url
| From: | pajoye@php.net | Date: | Wed, 26 Aug 2009 22:24:23 +0000 |
| Subject: | #49372 [Asn->Csd]: Segfault in function php_curl_option_url | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-141587@lists.php.net to get a copy of this message | ||
ID: 49372
Updated by: pajoye@php.net
Reported By: sergk at sergk dot org dot ua
-Status: Assigned
+Status: Closed
Bug Type: cURL related
Operating System: Debian GNU/Linux, kernel 2.6.30
PHP Version: 5.2.10
Assigned To: pajoye
New Comment:
This bug has been fixed in SVN.
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/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2009-08-26 22:24:11] svn@php.net
Automatic comment from SVN on behalf of pajoye
Revision: http://svn.php.net/viewvc/?view=revision&revision=287784
Log: - fix #49372, segfault in php_curl_option_url
------------------------------------------------------------------------
[2009-08-26 20:26:04] pajoye@php.net
I said the fix, not the patch :)
------------------------------------------------------------------------
[2009-08-26 20:21:15] jani@php.net
Please don't apply that patch, you can do it with single line change
too.. if (uri->scheme && !strncasecmp("file", uri->scheme,
sizeof("file"))) rather than having several lines changed for nothing.
------------------------------------------------------------------------
[2009-08-26 18:18:16] pajoye@php.net
Thanks for the script.
An easy fix would be to update the Curl library to a more recent
version (recommended).
I will apply the fix shortly (need to fetch an old curl first).
------------------------------------------------------------------------
[2009-08-26 17:13:42] sergk at sergk dot org dot ua
Yes, this one trigger segfault, but only in mod_php mode:
<?PHP
$curl = curl_init("www.php.net/manual/en/function.curl-init.php");
curl_exec($curl);
curl_close($curl);
?>
------------------------------------------------------------------------
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/49372
--
Edit this bug report at http://bugs.php.net/?id=49372&edit=1