1--TEST--
2gen_stub.php: constants
3--EXTENSIONS--
4zend_test
5--FILE--
6<?php
7
8var_dump(ZEND_CONSTANT_A);
9var_dump(ZendTestNS2\ZEND_CONSTANT_A);
10var_dump(ZendTestNS2\ZendSubNS\ZEND_CONSTANT_A);
11
12?>
13--EXPECT--
14string(6) "global"
15string(10) "namespaced"
16string(10) "namespaced"
17