[xdebug-dev] Bug 0000228: Strings with embedded nulls don't get fully sent to client

From: <noreply[@]lists.xdebug.org>
Date: Tue, 12 Dec 2006 22:23:49 +0100

The following bug has been CLOSED
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000228
======================================================================
Reporter: d_kelsey
Handler:
======================================================================
Project: Xdebug
Bug ID: 228
Category: Usage problems
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Operating System: Windows XP
PHP Version: 5.1.6
Xdebug Version: 2.0.0rc1
======================================================================
Date Submitted: 2006-12-12 15:52 CET
Last Modified: 2006-12-12 22:23 CET
======================================================================
Summary: Strings with embedded nulls don't get fully sent to client
Description:
I have a simple script.

<?php
$a = "hello"."\n"."Dave"."\0"."I have added a null"."\0"."or 2"."\n";
echo $a;
var_dump($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.
======================================================================

----------------------------------------------------------------------
 derick - 2006-12-12 22:23 CET
----------------------------------------------------------------------
Fixed in CVS, thanks for the report!

Bug History
Date Modified Username Field Change
======================================================================
2006-12-12 15:52d_kelsey New Bug
2006-12-12 15:52d_kelsey Bug Monitored: d_kelsey
2006-12-12 22:23derick Bugnote Added: 0000519
2006-12-12 22:23derick Status new => closed
======================================================================
Received on Tue Dec 12 2006 - 22:23:52 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST