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 (10 years, 11 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

--TEST--
Bug #63468 (wrong called method as callback with inheritance)
--FILE--
<?php
class Foo
{
	public function run()
	{
		return call_user_func(array('Bar', 'getValue'));
	}

	private static function getValue()
	{
		return 'Foo';
	}
}

class Bar extends Foo
{
	public static function getValue()
	{
		return 'Bar';
	}
}

$x = new Bar;
var_dump($x->run());
--EXPECT--
string(3) "Bar"


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