ID: 33756 Updated by: [EMAIL PROTECTED] Reported By: schristm at gmail dot com Status: Open Bug Type: Unknown/Other Function Operating System: Fedora Core 2 / Linux PHP Version: 5.1.0b3 New Comment:
Please provide more information about your system (web-server name, it's version, SAPI you use, etc.). Are you able to reproduce it with PHP CLI ? Previous Comments: ------------------------------------------------------------------------ [2005-07-18 19:55:20] schristm at gmail dot com I forgot to mention the output formatting issue. Again, this is very strange! When the array problem indicated above happens, the HTML output of the PHP script gets garbled as well. Certain data that was once included in table cells get bumped out of the table, text is garbled together, etc. For example, in one of my table cells, a phrase is quoted ("domain.com"). When this error occurs, part of an <A href> tag that is located at the bottom of the page gets spliced into the quote. I'm not using CSS or anything like that either. Also, in this same example, I've seen additional </TABLE> tags (magically?) appear where they don't belong, causing stuff to output funny. Hope this helps! Thanks! ------------------------------------------------------------------------ [2005-07-18 19:42:04] schristm at gmail dot com 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 this bug report at http://bugs.php.net/?id=33756&edit=1