View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000228XdebugUsage problems (Wrong Results)public2006-12-12 15:522006-12-12 22:23
Assigned To 
PlatformOSOS Version
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
Attached Files

- Relationships

-  Notes
derick (administrator)
2006-12-12 22:23

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 13:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 13:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)

Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker