Arquivos
hhvm/hphp/test/vm/pinit.php
T
Jordan Delong 363d1bb20f Code move src/ -> hphp/
This change is mostly for FB internal organizational reasons.
Building is not effected beyond the fact that the target now
lands in hphp/hhvm/hhvm rather than src/hhvm/hhvm.
2013-02-11 02:10:41 -08: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);