File: bug00714-php84.phpt

package info (click to toggle)
xdebug 3.4.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,096 kB
  • sloc: ansic: 19,944; php: 6,217; xml: 4,172; pascal: 534; makefile: 4; sh: 2
file content (127 lines) | stat: -rw-r--r-- 1,650 bytes parent folder | download
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
--TEST--
Test for bug #714: Cachegrind files have huge (wrong) numbers in some lines (>= PHP 8.4)
--SKIPIF--
<?php
require __DIR__ . '/../utils.inc';
check_reqs('PHP >= 8.4; slow');
?>
--INI--
xdebug.mode=profile
xdebug.start_with_request=default
--FILE--
<?php
require_once 'capture-profile.inc';

function sleep1() { sleep(1); }
function sleep10() { sleep(1); }
function sleep20() { sleep(2); }

echo "Sleeping 1\n";
sleep1();
echo "Sleeping 10\n";
sleep10();
echo "Sleeping 20\n";
sleep20();
echo "DONE\n\n";

exit();
?>
--EXPECTF--
Sleeping 1
Sleeping 10
Sleeping 20
DONE

version: 1
creator: xdebug %d.%s (PHP %s)
cmd: %sbug00714-php84.php
part: 1
positions: line

events: Time_(10ns) Memory_(bytes)

fl=(1) php:internal
fn=(1) php::xdebug_get_profiler_filename
2 %d %d

fl=(1)
fn=(2) php::register_shutdown_function
16 %d %d

fl=(2) %scapture-profile.inc
fn=(3) require_once::%scapture-profile.inc
1 %d %d
cfl=(1)
cfn=(1)
calls=1 0 0
2 %d %d
cfl=(1)
cfn=(2)
calls=1 0 0
16 %d %d

fl=(1)
fn=(4) php::sleep
4 %r(1\d{8}|9\d{7})%r %d

fl=(3) %sbug00714-php84.php
fn=(5) sleep1
4 %d %d
cfl=(1)
cfn=(4)
calls=1 0 0
4 %r(1\d{8}|9\d{7})%r %d

fl=(1)
fn=(4)
5 1%r(\d{8})%r %d

fl=(3)
fn=(6) sleep10
5 %d %d
cfl=(1)
cfn=(4)
calls=1 0 0
5 1%r(\d{8})%r 0

fl=(1)
fn=(4)
6 2%r(\d{8})%r 0

fl=(3)
fn=(7) sleep20
6 %d %d
cfl=(1)
cfn=(4)
calls=1 0 0
6 2%r(\d{8})%r 0

fl=(1)
fn=(8) php::exit
16 %d %d

fl=(3)
fn=(9) {main}
1 %d %d
cfl=(2)
cfn=(3)
calls=1 0 0
2 %d %d
cfl=(3)
cfn=(5)
calls=1 0 0
9 1%r(\d{8})%r %d
cfl=(3)
cfn=(6)
calls=1 0 0
11 1%r(\d{8})%r %d
cfl=(3)
cfn=(7)
calls=1 0 0
13 2%r(\d{8})%r %d
cfl=(1)
cfn=(8)
calls=1 0 0
16 %d %d

summary: %d %d