forked from xdebug/xdebug
-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
bug00265.phpt
71 lines (63 loc) · 1.35 KB
/
bug00265.phpt
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
--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)
}