|
| 1 | +--TEST-- |
| 2 | +xdebug_notify() with custom settings |
| 3 | +--SKIPIF-- |
| 4 | +<?php |
| 5 | +require __DIR__ . '/../utils.inc'; |
| 6 | +check_reqs('dbgp'); |
| 7 | +?> |
| 8 | +--FILE-- |
| 9 | +<?php |
| 10 | +require 'dbgp/dbgpclient.php'; |
| 11 | +$filename = dirname(__FILE__) . '/xdebug_notify_complex.inc'; |
| 12 | + |
| 13 | +$commands = array( |
| 14 | + 'feature_set -n notify_ok -v 1', |
| 15 | + 'feature_set -n extended_properties -v 1', |
| 16 | + 'run', |
| 17 | + 'detach', |
| 18 | +); |
| 19 | + |
| 20 | +dbgpRunFile( $filename, $commands, [ 'xdebug.var_display_max_depth' => 1, 'xdebug.var_display_max_children' => 4, 'xdebug.var_display_max_data' => 4 ] ); |
| 21 | +?> |
| 22 | +--EXPECTF-- |
| 23 | +<?xml version="1.0" encoding="iso-8859-1"?> |
| 24 | +<init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file://xdebug_notify_complex.inc" language="PHP" xdebug:language_version="" protocol_version="1.0" appid=""><engine version=""><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2099 by Derick Rethans]]></copyright></init> |
| 25 | + |
| 26 | +-> feature_set -i 1 -n notify_ok -v 1 |
| 27 | +<?xml version="1.0" encoding="iso-8859-1"?> |
| 28 | +<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="notify_ok" success="1"></response> |
| 29 | + |
| 30 | +-> feature_set -i 2 -n extended_properties -v 1 |
| 31 | +<?xml version="1.0" encoding="iso-8859-1"?> |
| 32 | +<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="extended_properties" success="1"></response> |
| 33 | + |
| 34 | +-> run -i 3 |
| 35 | +<?xml version="1.0" encoding="iso-8859-1"?> |
| 36 | +<notify xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" name="user"><xdebug:location filename="file://xdebug_notify_complex.inc" lineno="20"></xdebug:location><property type="array" children="1" numchildren="3" page="0" pagesize="4"><property name="0" type="array" children="1" numchildren="1"></property><property name="1" type="array" children="1" numchildren="1"></property><property name="2" type="array" children="1" numchildren="1"></property></property></notify> |
| 37 | + |
| 38 | +<?xml version="1.0" encoding="iso-8859-1"?> |
| 39 | +<notify xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" name="user"><xdebug:location filename="file://xdebug_notify_complex.inc" lineno="20"></xdebug:location><property type="array" children="1" numchildren="3" page="0" pagesize="2"><property name="0" type="array" children="1" numchildren="1" page="0" pagesize="2"><property name="two" fullname="["two"]" type="array" children="1" numchildren="1"></property></property><property name="1" type="array" children="1" numchildren="1" page="0" pagesize="2"><property name="long_string" fullname="["long_string"]" type="string" size="1024" encoding="base64"><![CDATA[YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE=]]></property></property></property></notify> |
| 40 | + |
| 41 | +<?xml version="1.0" encoding="iso-8859-1"?> |
| 42 | +<notify xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" name="user"><xdebug:location filename="file://xdebug_notify_complex.inc" lineno="20"></xdebug:location><property type="array" children="1" numchildren="3" page="0" pagesize="2"><property name="0" type="array" children="1" numchildren="1" page="0" pagesize="2"><property name="two" fullname="["two"]" type="array" children="1" numchildren="1" page="0" pagesize="2"><property name="trois" fullname="["two"]["trois"]" type="array" children="1" numchildren="1" page="0" pagesize="2"><property name="0" fullname="["two"]["trois"][0]" type="string" size="3" encoding="base64"><![CDATA[YmFy]]></property></property></property></property><property name="1" type="array" children="1" numchildren="1" page="0" pagesize="2"><property name="long_string" fullname="["long_string"]" type="string" size="1024" encoding="base64"><![CDATA[YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE=]]></property></property></property></notify> |
| 43 | + |
| 44 | +<?xml version="1.0" encoding="iso-8859-1"?> |
| 45 | +<notify xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" name="user"><xdebug:location filename="file://xdebug_notify_complex.inc" lineno="20"></xdebug:location><property type="array" children="1" numchildren="3" page="0" pagesize="16"><property name="0" type="array" children="1" numchildren="1" page="0" pagesize="16"><property name="two" fullname="["two"]" type="array" children="1" numchildren="1" page="0" pagesize="16"><property name="trois" fullname="["two"]["trois"]" type="array" children="1" numchildren="1" page="0" pagesize="16"><property name="0" fullname="["two"]["trois"][0]" type="string" size="3" encoding="base64"><![CDATA[YmFy]]></property></property></property></property><property name="1" type="array" children="1" numchildren="1" page="0" pagesize="16"><property name="long_string" fullname="["long_string"]" type="string" size="1024" encoding="base64"><![CDATA[YWFhYQ==]]></property></property><property name="2" type="array" children="1" numchildren="1" page="0" pagesize="16"><property name="letters" fullname="["letters"]" type="array" children="1" numchildren="24" page="0" pagesize="16"><property name="0" fullname="["letters"][0]" type="string" size="1" encoding="base64"><![CDATA[YQ==]]></property><property name="1" fullname="["letters"][1]" type="string" size="1" encoding="base64"><![CDATA[Yg==]]></property><property name="2" fullname="["letters"][2]" type="string" size="1" encoding="base64"><![CDATA[Yw==]]></property><property name="3" fullname="["letters"][3]" type="string" size="1" encoding="base64"><![CDATA[ZA==]]></property><property name="4" fullname="["letters"][4]" type="string" size="1" encoding="base64"><![CDATA[ZQ==]]></property><property name="5" fullname="["letters"][5]" type="string" size="1" encoding="base64"><![CDATA[Zg==]]></property><property name="6" fullname="["letters"][6]" type="string" size="1" encoding="base64"><![CDATA[Zw==]]></property><property name="7" fullname="["letters"][7]" type="string" size="1" encoding="base64"><![CDATA[aA==]]></property><property name="8" fullname="["letters"][8]" type="string" size="1" encoding="base64"><![CDATA[aQ==]]></property><property name="9" fullname="["letters"][9]" type="string" size="1" encoding="base64"><![CDATA[ag==]]></property><property name="10" fullname="["letters"][10]" type="string" size="1" encoding="base64"><![CDATA[aw==]]></property><property name="11" fullname="["letters"][11]" type="string" size="1" encoding="base64"><![CDATA[bA==]]></property><property name="12" fullname="["letters"][12]" type="string" size="1" encoding="base64"><![CDATA[bQ==]]></property><property name="13" fullname="["letters"][13]" type="string" size="1" encoding="base64"><![CDATA[bg==]]></property><property name="14" fullname="["letters"][14]" type="string" size="1" encoding="base64"><![CDATA[bw==]]></property><property name="15" fullname="["letters"][15]" type="string" size="1" encoding="base64"><![CDATA[cA==]]></property></property></property></property></notify> |
| 46 | + |
| 47 | +<?xml version="1.0" encoding="iso-8859-1"?> |
| 48 | +<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="3" status="stopping" reason="ok"></response> |
| 49 | + |
| 50 | +-> detach -i 4 |
| 51 | +<?xml version="1.0" encoding="iso-8859-1"?> |
| 52 | +<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="detach" transaction_id="4" status="stopping" reason="ok"></response> |
0 commit comments