503f75d08b
These names don't make sense now that we run both suites the same way.
21 linhas
333 B
PHP
21 linhas
333 B
PHP
<?php
|
|
|
|
class asshat {
|
|
private $prop;
|
|
public function __construct(&$v) {
|
|
$this->prop =& $v;
|
|
}
|
|
public function __get($k) {
|
|
$this->prop = 'foo';
|
|
return array('foo' => 'gotcha', 1 => 'whoops');
|
|
}
|
|
}
|
|
function main($cond) {
|
|
$x = 1;
|
|
$o = new asshat($x);
|
|
if ($cond) {
|
|
var_dump($o->blah[$x]);
|
|
}
|
|
}
|
|
main(true);
|