Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: xdebug_1_3
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (31 sloc) 0.731 kb
--TEST--
Test for circular references (ZE2)
--SKIPIF--
<?php if(version_compare(zend_version(), "2.0.0-dev", '<')) echo "skip Zend Engine 2 needed\n"; ?>
--INI--
xdebug.enable=1
xdebug.auto_trace=0
report_memleaks=0
xdebug.collect_params=1
xdebug.auto_profile=0
--FILE--
<?php
xdebug_start_trace();
class foo {
function foo() {
$this->a = $this;
$this->b = $this;
}
}
function bar($o) {
}
$f = new foo();
bar($f);
bar($f);
xdebug_dump_function_trace();
?>
--EXPECTF--
Function trace:
%f %d -> foo->foo() /%s/test14b.php:16
%f %d -> bar(class foo {var $a = ...; var $b = ...}) /%s/test14b.php:17
%f %d -> bar(class foo {var $a = ...; var $b = ...}) /%s/test14b.php:18
Jump to Line
Something went wrong with that request. Please try again.