Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: a191144584
Fetching contributors…

Cannot retrieve contributors at this time

72 lines (63 sloc) 1.378 kB
--TEST--
Test for bug #265: Xdebug's error handler breaks error_get_last() (>= PHP 5.2)
--SKIPIF--
<?php if (!version_compare(phpversion(), "5.2", '>=')) echo "skip >= PHP 5.2 needed\n"; ?>
--INI--
xdebug.default_enable=1
xdebug.dump_globals=0
xdebug.show_mem_delta=0
xdebug.profiler_enable=0
xdebug.trace_format=0
xdebug.overload_var_dump=0
--FILE--
<?php
register_shutdown_function( 'f' );
function f(){
var_dump(error_get_last());
}
$a = $b;
var_dump(error_get_last());
$a = $b['no'];
var_dump(error_get_last());
gabba();
?>
--EXPECTF--
Notice: Undefined variable: b in %sbug00265.php on line 6
Call Stack:
%w%f %w%d 1. {main}() %sbug00265.php:0
array(4) {
["type"]=>
int(8)
["message"]=>
string(21) "Undefined variable: b"
["file"]=>
string(%d) "%sbug00265.php"
["line"]=>
int(6)
}
Notice: Undefined variable: b in %sbug00265.php on line 8
Call Stack:
%w%f %w%d 1. {main}() %sbug00265.php:0
array(4) {
["type"]=>
int(8)
["message"]=>
string(21) "Undefined variable: b"
["file"]=>
string(%d) "%sbug00265.php"
["line"]=>
int(8)
}
Fatal error: Call to undefined function gabba() in %sbug00265.php on line 10
Call Stack:
%w%f %w%d 1. {main}() %sbug00265.php:0
array(4) {
["type"]=>
int(1)
["message"]=>
string(34) "Call to undefined function gabba()"
["file"]=>
string(%d) "%sbug00265.php"
["line"]=>
int(10)
}
Jump to Line
Something went wrong with that request. Please try again.