View Issue Details

IDProjectCategoryView StatusLast Update
0000228XdebugUncategorizedpublic2006-12-12 22:23
Reporterd_kelseyAssigned To 
Status closedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0000228: Strings with embedded nulls don't get fully sent to client
DescriptionI have a simple script.

$a = "hello"."\n"."Dave"."\0"."I have added a null"."\0"."or 2"."\n";
echo $a;
echo "stop here";

When I get the property for $a, the information I get back is

<?xml version="1.0" encoding="iso-8859-1"?>
<response command="context_get" transaction_id="168"><property name="a" fullname="$a" address="10208552" type="string" size="36" encoding="base64"><![CDATA[aGVsbG8KRGF2ZQ==]]></property></response>

So the size is correct, but the string information is only part of it and it returns only up to the first embedded null.
Additional InformationI have also tested this on 2.0.0rc2-dev as well and get the same result (version built on 11th dec 06).
TagsNo tags attached.
Operating SystemWindows XP
PHP Version5.1.6



2006-12-12 22:23

administrator   ~0000519

Fixed in CVS, thanks for the report!

Issue History

Date Modified Username Field Change
2006-12-12 15:52 d_kelsey New Issue
2006-12-12 22:23 derick Status new => closed
2006-12-12 22:23 derick Note Added: 0000519
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized