PHP :: Bug #43092 :: curl_copy_handle() crashes with
| Bug #43092 | curl_copy_handle() crashes with > 32 chars long URL | ||||
|---|---|---|---|---|---|
| Submitted: | 2007-10-24 03:55 UTC | Modified: | 2007-11-16 14:21 UTC | ||
| From: | ezyang@php.net | Assigned: | |||
| Status: | Closed | Package: | cURL related | ||
| PHP Version: | 5.2CVS-2007-10-24 (snap) | OS: | Windows Vista | ||
| Private report: | No | CVE-ID: | None | ||
[2007-10-24 03:55 UTC] ezyang@php.net
Description:
------------
I don't know what to make of this behavior. When CURL creates a handle with 32 characters or more to the local filesystem, duplicates it, and then PHP attempts to create a new object while passing in a parameter that is an array of values, PHP crashes. I could only produce this behavior on Windows Vista.
Reproduce code:
---------------
<?php
// for Windows Vista, PHP 5.2.4
class foo { function __construct($var) {} }
curl_copy_handle(curl_init('12345678901234567890123456789012')); // 32 or longer
new foo(array('foo'));
echo 'Yay!';
Expected result:
----------------
Output of 'Yay!'
Actual result:
--------------
PHP aborts prematurely
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2007-10-24 22:33 UTC] ezyang@php.net
[2007-11-12 21:19 UTC] ezyang@php.net
[2007-11-12 21:24 UTC] ezyang@php.net
[2007-11-16 14:21 UTC] jani@php.net