#33756 [Opn]: Memory issues / output formatting

From: Date: Mon, 18 Jul 2005 17:55:21 +0000
Subject: #33756 [Opn]: Memory issues / output formatting
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-82069@lists.php.net to get a copy of this message
ID: 33756 User updated by: schristm at gmail dot com Reported By: schristm at gmail dot com Status: Open Bug Type: Unknown/Other Function Operating System: Fedora Core 2 / Linux -PHP Version: 5.1.0b2 +PHP Version: 5.1.0b3 New Comment: 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! Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#82069) next »