summaryrefslogtreecommitdiff
path: root/Zend/tests/bug65291.phpt
blob: 7bc76331c0a858d9c82f0a6458f1dd9665be48ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
Bug #65291 - get_defined_constants() causes PHP to crash in a very limited case.
--FILE--
<?php

trait TestTrait
{
	public static function testStaticFunction()
	{
		return __CLASS__;
	}
}
class Tester
{
	use TestTrait;
}

$foo = Tester::testStaticFunction();
get_defined_constants();
get_defined_constants(true);

echo $foo;
?>
--EXPECT--
Tester