1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
--TEST--
Test for bug #173: Xdebug segfaults using SPL ArrayIterator
--SKIPIF--
<?php
require __DIR__ . '/../utils.inc';
check_reqs('ext SPL');
?>
--INI--
xdebug.mode=trace,develop
xdebug.start_with_request=yes
xdebug.trace_output_name=trace.%p.%r
xdebug.trace_options=0
xdebug.collect_return=1
xdebug.collect_assignments=0
xdebug.dump_globals=0
xdebug.trace_format=0
xdebug.show_local_vars=1
--FILE--
<?php
$trace_file = xdebug_get_tracefile_name();
new ArrayIterator(NULL);
echo file_get_contents($trace_file);
unlink($trace_file);
echo "DONE\n";
?>
--EXPECTF--
Fatal error: Uncaught%sarray%sin %sbug00173.php on line 3
%s: %sarray%sin %sbug00173.php on line 3
Call Stack:
%w%f%w%d 1. {main}() %sbug00173.php:0
%w%f%w%d 2. ArrayIterator->__construct($array = NULL) %sbug00173.php:3
Variables in local scope (#1):
$trace_file = '%s.%d.%s.xt%S'
|