hiphop-php /hphp/test/zend/good/ext/reflection/tests/bug53915.php

Language PHP Lines 19
MD5 Hash fb34ee6743fc67a787343d02f0d04045 Estimated Cost $306 (why?)
Repository git://github.com/facebook/hiphop-php.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
<?php
Class Foo
{
	const A = 1;
	const B = self::A;
}

$rc = new ReflectionClass('Foo');
print_r($rc->getConstants());

Class Foo2
{
        const A = 1;
        const B = self::A;
}

$rc = new ReflectionClass('Foo2');
print_r($rc->getConstant('B'));
Back to Top