#43092 [Opn->Fbk]: PHP crashes mysteriously after copying handle with 32+ long URL
ID: 43092
Updated by: tony2001@php.net
Reported By: ezyang@php.net
-Status: Open
+Status: Feedback
Bug Type: cURL related
Operating System: Windows Vista
PHP Version: 5.2CVS-2007-10-24 (snap)
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2007-10-24 22:33:59] ezyang@php.net
Tested it on 5.2-dev and 6.0-dev snapshots, incorrect behavior is same
on both.
------------------------------------------------------------------------
[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)