dis-bench / src /php /php-src /Zend /tests /enum /cases-refcount.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
255 Bytes
--TEST--
Enum cases increases refcount
--FILE--
<?php
enum Foo {
case Bar;
}
function callCases() {
Foo::cases();
}
callCases();
debug_zval_dump(Foo::Bar);
?>
--EXPECT--
object(Foo)#1 (1) refcount(2){
["name"]=>
string(3) "Bar" interned
}