From:             schristm at gmail dot com
Operating system: Fedora Core 2 / Linux
PHP version:      5.1.0b2
PHP Bug Type:     Unknown/Other Function
Bug description:  Memory issues / output formatting

Description:
------------
Hello,

I'm actually using PHP 5.1b3, however it was not an option in the version
select box. I just upgrade from PHP 5.1b2 so I know that the issue is
definitely with the latest beta release.

I am somehow (randomly) getting strange array keys after parsing cURL data
with parse_str().

When this occurs, it's usually the first array key that is garbled. In
most cases the key contains either partial serialized data or portions of
the path to the script.

Reproduce code:
---------------
<?php

// brief snippits of code:
$result = curl_exec($ch);

$retval = array();
parse_str($result, $retval);

print_r($retval);

?>

Expected result:
----------------
Array
(
    [testdomain_com] => pointer
    [testdomain2_com] => pointer
)

Actual result:
--------------
Array
(
    [a:1:{s:5:\"sttestdomain_com] => pointer
    [testdomain2_com] => pointer
)

-- 
Edit bug report at http://bugs.php.net/?id=33756&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33756&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33756&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33756&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33756&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33756&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33756&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33756&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33756&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33756&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33756&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33756&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33756&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33756&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33756&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33756&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33756&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33756&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33756&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33756&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33756&r=mysqlcfg

Reply via email to