b0y-101 Mini Shell


Current Path : E:/www/b-group.old/spfin - Copy/testpayment/src/xdebug/tests/tracing/
File Upload :
Current File : E:/www/b-group.old/spfin - Copy/testpayment/src/xdebug/tests/tracing/bug00566-001.phpt

--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]

Copyright © 2019 by b0y-101