b0y-101 Mini Shell


Current Path : E:/www/b-group.old/spfin/phppayment/src/xdebug/tests/base/
File Upload :
Current File : E:/www/b-group.old/spfin/phppayment/src/xdebug/tests/base/bug00978-002.phpt

--TEST--
Test for bug #978: Inspection of array with negative keys fails
--FILE--
<?php
include dirname(__FILE__) . '/bug00978.inc';

xdebug_debug_zval('$a');
xdebug_debug_zval('$a[-1]');
xdebug_debug_zval('$a[-]');
xdebug_debug_zval('$a[1]');
?>
--EXPECTF--
4
$a: (%s, is_ref=0)=array (0 => (%s, is_ref=0)='nul', -1 => (%s, is_ref=0)='minus one', -2 => (%s, is_ref=0)='not two', 1 => (%s, is_ref=0)='een')
$a[-1]: (%s, is_ref=0)='minus one'
$a[-]: no such symbol
$a[1]: (%s, is_ref=0)='een'

Copyright © 2019 by b0y-101