Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (29 sloc) 0.669 kB
--TEST--
Test with showing local variables on errors
--INI--
xdebug.default_enable=1
xdebug.auto_trace=0
xdebug.collect_params=1
xdebug.auto_profile=0
xdebug.profiler_enable=0
xdebug.dump_globals=0
xdebug.show_local_vars=1
--FILE--
<?php
function a($a,$b) {
$c = array($a, $b * $b);
$d = new stdClass;
do_f();
}
a(5, 6);
?>
--EXPECTF--
Fatal error: Call to undefined function do_f() in /%s/local_vars_in_error.php on line 5
Call Stack:
%w%f %w%d 1. {main}() /%s/local_vars_in_error.php:0
%w%f %w%d 2. a(long, long) /%s/local_vars_in_error.php:8
Variables in local scope (#2):
$a = 5
$b = 6
$c = array (0 => 5, 1 => 36)
$d = class stdClass { }
Jump to Line
Something went wrong with that request. Please try again.