File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug65291.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 08:02:49 2013 UTC (11 years, 6 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, HEAD
v 5.4.20

    1: --TEST--
    2: Bug #65291 - get_defined_constants() causes PHP to crash in a very limited case.
    3: --FILE--
    4: <?php
    5: 
    6: trait TestTrait
    7: {
    8: 	public static function testStaticFunction()
    9: 	{
   10: 		return __CLASS__;
   11: 	}
   12: }
   13: class Tester
   14: {
   15: 	use TestTrait;
   16: }
   17: 
   18: $foo = Tester::testStaticFunction();
   19: get_defined_constants();
   20: get_defined_constants(true);
   21: 
   22: echo $foo;
   23: ?>
   24: --EXPECT--
   25: Tester

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>