From: [EMAIL PROTECTED]
Operating system: Windows Vista
PHP version: 5.2.4
PHP Bug Type: cURL related
Bug description: PHP crashes mysteriously after copying handle with 32+ long
URL
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 bug report at http://bugs.php.net/?id=43092&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=43092&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=43092&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=43092&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=43092&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43092&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=43092&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=43092&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=43092&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=43092&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=43092&r=support
Expected behavior: http://bugs.php.net/fix.php?id=43092&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=43092&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=43092&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43092&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43092&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43092&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=43092&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=43092&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=43092&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=43092&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=43092&r=mysqlcfg