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
|
--TEST--
Test for bug #1589: function names used in auto_prepend_file missing (< PHP 8.4; !opcache)
--SKIPIF--
<?php
require __DIR__ . '/../utils.inc';
check_reqs('PHP < 8.4; !win; !opcache');
?>
--INI--
xdebug.mode=profile
xdebug.start_with_request=default
auto_prepend_file=tests/profiler/bug01589-prepend.inc
auto_append_file=tests/profiler/bug01589-append.inc
--FILE--
<?php
if (strlen($foobar)>0) {
}
else {
}
$abc = substr('abc', 1);
?>
--EXPECTF--
version: 1
creator: xdebug %d.%s (PHP %s)
cmd: %sbug01589-prepend.inc
part: 1
positions: line
events: Time_(10ns) Memory_(bytes)
fl=(1) php:internal
fn=(1) php::substr
17 %d %d
fl=(1)
fn=(2) php::xdebug_get_profiler_filename
23 %d %d
fl=(1)
fn=(3) php::register_shutdown_function
24 %d %d
fl=(2) %sbug01589-prepend.inc
fn=(4) {main}
1 %d %d
cfl=(1)
cfn=(1)
calls=1 0 0
17 %d %d
cfl=(1)
cfn=(2)
calls=1 0 0
23 %d %d
cfl=(1)
cfn=(3)
calls=1 0 0
24 %d %d
fl=(1)
fn=(1)
7 %d %d
fl=(3) %sbug01589-php83.php
fn=(4)
1 %d %d
cfl=(1)
cfn=(1)
calls=1 0 0
7 %d %d
fl=(1)
fn=(1)
3 %d %d
fl=(4) %sbug01589-append.inc
fn=(4)
1 %d %d
cfl=(1)
cfn=(1)
calls=1 0 0
3 %d %d
summary: %d %d
|