Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: XDEBUG_2_2_0RC1
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (33 sloc) 1.016 kB
--TEST--
Test for bug #699: Xdebug gets the filename wrong for the countable interface
--INI--
xdebug.default_enable=1
xdebug.profiler_enable=0
xdebug.auto_trace=0
xdebug.trace_format=0
xdebug.collect_vars=0
xdebug.collect_params=1
xdebug.collect_return=0
xdebug.collect_assignments=0
--FILE--
<?php
$tf = xdebug_start_trace('/tmp/'. uniqid('xdt', TRUE));
require dirname( __FILE__ ) . '/bug00699.inc';
$n = new SomeClass;
$n->addData('foobar');
count($n);
xdebug_stop_trace();
echo file_get_contents($tf);
unlink($tf);
?>
--EXPECTF--
TRACE START [%d-%d-%d %d:%d:%d]
%w%f %w%d -> dirname(string(46)) %sbug00699.php:4
%w%f %w%d -> require(%sbug00699.inc) %sbug00699.php:4
%w%f %w%d -> SomeClass->addData(string(6)) %sbug00699.php:6
%w%f %w%d -> count(class SomeClass) %sbug00699.php:10
%w%f %w%d -> SomeClass->count() %sbug00699.php:10
%w%f %w%d -> count(array(1)) %sbug00699.inc:17
%w%f %w%d -> xdebug_stop_trace() %sbug00699.php:14
%w%f %w%d
TRACE END [%d-%d-%d %d:%d:%d]
Jump to Line
Something went wrong with that request. Please try again.