File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug63468.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:17 2013 UTC (11 years, 8 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

    1: --TEST--
    2: Bug #63468 (wrong called method as callback with inheritance)
    3: --FILE--
    4: <?php
    5: class Foo
    6: {
    7: 	public function run()
    8: 	{
    9: 		return call_user_func(array('Bar', 'getValue'));
   10: 	}
   11: 
   12: 	private static function getValue()
   13: 	{
   14: 		return 'Foo';
   15: 	}
   16: }
   17: 
   18: class Bar extends Foo
   19: {
   20: 	public static function getValue()
   21: 	{
   22: 		return 'Bar';
   23: 	}
   24: }
   25: 
   26: $x = new Bar;
   27: var_dump($x->run());
   28: --EXPECT--
   29: string(3) "Bar"
   30: 

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