-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathbacktrace-complex.phpt
More file actions
54 lines (43 loc) · 1013 Bytes
/
backtrace-complex.phpt
File metadata and controls
54 lines (43 loc) · 1013 Bytes
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
--TEST--
Test for somewhat more complex backtrace
--INI--
xdebug.mode=develop
xdebug.dump_globals=0
xdebug.show_error_trace=0
--FILE--
<?php
function fucking() {
deep();
}
function deep() {
nested();
}
function nested() {
error();
}
function error() {
in();
}
function in() {
func();
}
function func() {
blah();
}
function blah() {
funky_shit();
}
fucking();
?>
--EXPECTF--
Fatal error: Uncaught Error: Call to undefined function%sfunky_shit() in %sbacktrace-complex.php on line 28
Error: Call to undefined function funky_shit() in %sbacktrace-complex.php on line 28
Call Stack:
%w%f %w%d 1. {main}() %sbacktrace-complex.php:0
%w%f %w%d 2. fucking() %sbacktrace-complex.php:31
%w%f %w%d 3. deep() %sbacktrace-complex.php:4
%w%f %w%d 4. nested() %sbacktrace-complex.php:8
%w%f %w%d 5. error() %sbacktrace-complex.php:12
%w%f %w%d 6. in() %sbacktrace-complex.php:16
%w%f %w%d 7. func() %sbacktrace-complex.php:20
%w%f %w%d 8. blah() %sbacktrace-complex.php:24