Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 41 lines (33 sloc) 1.016 kb
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
--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]
Something went wrong with that request. Please try again.