Arquivos
hhvm/hphp/test/quick/pinit.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

20 linhas
373 B
PHP

<?php
// This is to trigger a specific refcounting bug in the VM, to do with object
// initialization templates. #668149
class Fub {
const FLUB = 'flub';
// This depends on a class constant, which means it will need a 86pinit().
public $dub = array(
self::FLUB => array(123)
);
}
$f = new Fub;
var_dump($f->dub);
unset($f);
$f = new Fub;
var_dump($f->dub);