File: print_function_stack-no-description-001.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 (26 lines) | stat: -rw-r--r-- 674 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
--TEST--
Test for xdebug_print_function_stack() without description
--INI--
xdebug.mode=develop
xdebug.cli_color=0
html_errors=0
--FILE--
<?php
function foo()
{
	xdebug_print_function_stack("test message", XDEBUG_STACK_NO_DESC);
}

function bar()
{
	foo(1, 3, 'foo', 'bar' );
}

bar();
?>
--EXPECTF--
Call Stack:
%w%f %w%d   1. {main}() %sprint_function_stack-no-description-001.php:0
%w%f %w%d   2. bar() %sprint_function_stack-no-description-001.php:12
%w%f %w%d   3. foo(1, 3, 'foo', 'bar') %sprint_function_stack-no-description-001.php:9
%w%f %w%d   4. xdebug_print_function_stack($message = 'test message', $options = 1) %sprint_function_stack-no-description-001.php:4