php-src/Zend/tests/indirect_reference_this.phpt
2010-12-10 06:34:03 +00:00

14 lines
158 B
PHP

--TEST--
Indirect referenced $this
--FILE--
<?php
class X {
function f($x){var_dump($$x);}
}
$x = new X;
$x->f("this");
?>
--EXPECTF--
object(X)#%d (0) {
}