#43092 [Fbk->Opn]: PHP crashes mysteriously after copying handle with 32+ long URL
ID: 43092
User updated by: ezyang@php.net
Reported By: ezyang@php.net
-Status: Feedback
+Status: Open
Bug Type: cURL related
Operating System: Windows Vista
-PHP Version: 5.2.4
+PHP Version: 6.0-dev
New Comment:
Tested it on 5.2-dev and 6.0-dev snapshots, incorrect behavior is same
on both.
Previous Comments:
------------------------------------------------------------------------
[2007-10-24 08:41:13] johannes@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
------------------------------------------------------------------------
[2007-10-24 03:55:16] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43092&edit=1
Thread (7 messages)