dis-bench / src /php /php-src /Zend /tests /constants /constants_002.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
237 Bytes
--TEST--
Defining constants with non-scalar values
--FILE--
<?php
define('foo', new stdClass);
var_dump(foo);
define('bar', fopen(__FILE__, 'r'));
var_dump(bar);
?>
--EXPECTF--
object(stdClass)#1 (0) {
}
resource(%d) of type (stream)