forked from xdebug/xdebug
/
bug00701.phpt
34 lines (32 loc) · 1010 Bytes
/
bug00701.phpt
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
--TEST--
Test for bug #701: Functions as array indexes.
--INI--
xdebug.default_enable=1
xdebug.profiler_enable=0
xdebug.auto_trace=0
xdebug.trace_format=0
xdebug.collect_vars=1
xdebug.collect_params=4
xdebug.collect_return=1
xdebug.collect_assignments=1
--FILE--
<?php
$tf = xdebug_start_trace('/tmp/'. uniqid('xdt', TRUE));
$class = "class";
$method = "methodName";
$action_ids[ucfirst($class)][$method] = $method;
xdebug_stop_trace();
echo file_get_contents($tf);
unlink($tf);
?>
--EXPECTF--
TRACE START [%d-%d-%d %d:%d:%d]
=> $tf = '/tmp/xdt%s.xt' %sbug00701.php:2
=> $class = 'class' %sbug00701.php:4
=> $method = 'methodName' %sbug00701.php:5
%w%f %w%d -> ucfirst('class') %sbug00701.php:6
>=> 'Class'
=> $action_ids[???]['methodName'] = 'methodName' %sbug00701.php:6
%w%f %w%d -> xdebug_stop_trace() %sbug00701.php:8
%w%f %w%d
TRACE END [%d-%d-%d %d:%d:%d]