xref: /PHP-8.2/Zend/tests/constants_002.phpt (revision 53aed48e)
1--TEST--
2Defining constants with non-scalar values
3--FILE--
4<?php
5
6define('foo', new stdClass);
7var_dump(foo);
8
9define('bar', fopen(__FILE__, 'r'));
10var_dump(bar);
11
12?>
13--EXPECTF--
14object(stdClass)#1 (0) {
15}
16resource(%d) of type (stream)
17