Skip to content
Permalink
Browse files

Update test due to changes in behaviour with SimpleXML in PHP 7.4

  • Loading branch information...
derickr committed Oct 8, 2019
1 parent d410227 commit 6dc04489c09e32bcd2c6d9dd045ef4b1a266ee0e
Showing with 5 additions and 3 deletions.
  1. +3 −1 tests/base/bug00987-006.phpt
  2. +1 −1 tests/debugger/bug00778.inc
  3. +1 −1 tests/debugger/bug00778.phpt
@@ -17,13 +17,15 @@ xdebug.overload_var_dump=1
<?php
$xml = '<?xml version="1.0" encoding="UTF-8" ?>
<root>
Xdebug rocks
</root>';
$temp = simplexml_load_string($xml, "SimpleXMLElement", LIBXML_NOERROR);
var_dump($temp);
?>
--EXPECTF--
class SimpleXMLElement#1 (1) {
public ${0} =>
string(1) "
string(14) "
Xdebug rocks
"
}
@@ -1,6 +1,6 @@
<?php
$xml = '<?xml version="1.0" encoding="UTF-8" ?>
<root>
<root>Xdebug rocks
</root>';
$xml = str_replace("\r\n", "\n", $xml);
$temp = simplexml_load_string($xml, "SimpleXMLElement", LIBXML_NOERROR);
@@ -48,7 +48,7 @@ dbgpRunFile( $filename, $commands );

-> context_get -i 6
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="context_get" transaction_id="6" context="0"><property name="$temp" fullname="$temp" type="object" classname="SimpleXMLElement" children="1" numchildren="1" page="0" pagesize="32"><property name="0" fullname="$temp-&gt;0" facet="public" type="string" size="1" encoding="base64"><![CDATA[Cg==]]></property></property><property name="$xml" fullname="$xml" type="string" size="54" encoding="base64"><![CDATA[PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiID8+Cjxyb290Pgo8L3Jvb3Q+]]></property></response>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="context_get" transaction_id="6" context="0"><property name="$temp" fullname="$temp" type="object" classname="SimpleXMLElement" children="1" numchildren="1" page="0" pagesize="32"><property name="0" fullname="$temp-&gt;0" facet="public" type="string" size="13" encoding="base64"><![CDATA[WGRlYnVnIHJvY2tzCg==]]></property></property><property name="$xml" fullname="$xml" type="string" size="66" encoding="base64"><![CDATA[PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiID8+Cjxyb290PlhkZWJ1ZyByb2Nrcwo8L3Jvb3Q+]]></property></response>

-> detach -i 7
<?xml version="1.0" encoding="iso-8859-1"?>

0 comments on commit 6dc0448

Please sign in to comment.
You can’t perform that action at this time.