Arquivos
hhvm/hphp/test/quick/string-cse.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

25 linhas
455 B
PHP

<?php
// Copyright 2004-present Facebook. All Rights Reserved.
class c {
private static $thing;
private static $otherthing;
public static function doit($id, $value) {
self::$thing[(string)$id] = $value;
self::$otherthing[(string)$id] = $value;
}
public static function dump() {
var_dump(self::$thing, self::$otherthing);
}
}
function main() {
c::doit(0, 'hello');
c::dump();
}
echo "Calling main\n";
main();
echo "Done\n";