File: bug00566-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 (54 lines) | stat: -rw-r--r-- 1,506 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
--TEST--
Test for bug #566: Xdebug crashes when using conditional breakpoints (1)
--INI--
xdebug.mode=trace
xdebug.collect_return=1
xdebug.collect_assignments=0
xdebug.trace_format=0
xdebug.start_with_request=no
--FILE--
<?php
require_once 'capture-trace.inc';
function loadMod( $module )
{
	strrev( $module );
	$module .= 's';
	strrev( $module );
}

function loadFoo( $test )
{
	strrev( $test );
	$test .= 's';
	strrev( $test );
}

$a = loadFoo( 'view' );
$a = loadMod( 'test' );
$a = loadMod( 'view' );

xdebug_stop_trace();
?>
--EXPECTF--
TRACE START [%d-%d-%d %d:%d:%d.%d]
%w%f %w%d     -> loadFoo($test = 'view') %sbug00566-001.php:17
%w%f %w%d       -> strrev($str%S = 'view') %sbug00566-001.php:12
%w%f %w%d        >=> 'weiv'
%w%f %w%d       -> strrev($str%S = 'views') %sbug00566-001.php:14
%w%f %w%d        >=> 'sweiv'
%w%f %w%d      >=> NULL
%w%f %w%d     -> loadMod($module = 'test') %sbug00566-001.php:18
%w%f %w%d       -> strrev($str%S = 'test') %sbug00566-001.php:5
%w%f %w%d        >=> 'tset'
%w%f %w%d       -> strrev($str%S = 'tests') %sbug00566-001.php:7
%w%f %w%d        >=> 'stset'
%w%f %w%d      >=> NULL
%w%f %w%d     -> loadMod($module = 'view') %sbug00566-001.php:19
%w%f %w%d       -> strrev($str%S = 'view') %sbug00566-001.php:5
%w%f %w%d        >=> 'weiv'
%w%f %w%d       -> strrev($str%S = 'views') %sbug00566-001.php:7
%w%f %w%d        >=> 'sweiv'
%w%f %w%d      >=> NULL
%w%f %w%d     -> xdebug_stop_trace() %sbug00566-001.php:21
%w%f %w%d
TRACE END   [%d-%d-%d %d:%d:%d.%d]