503f75d08b
These names don't make sense now that we run both suites the same way.
22 linhas
344 B
PHP
22 linhas
344 B
PHP
<?php
|
|
function newobj() {
|
|
return new C;
|
|
}
|
|
class C {
|
|
public function __destruct() {
|
|
echo "C::__destruct\n";
|
|
}
|
|
public function g($x, $y, $z) {
|
|
return $y;
|
|
}
|
|
public function foo($z) {
|
|
$w2 = 2;
|
|
newobj()->g(newobj(), 7, 8, $w2 = $this->foo(newobj()));
|
|
}
|
|
}
|
|
function bar() {
|
|
$obj = new C;
|
|
newobj()->foo(123);
|
|
}
|
|
bar();
|