Return to bug47857.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / general_functions |
1.1 misho 1: --TEST-- 2: Bug #47851 (is_callable throws fatal error) 3: --FILE-- 4: <?php 5: class foo { 6: function bar() { 7: echo "ok\n"; 8: } 9: } 10: var_dump(is_callable(array('foo','bar'))); 11: foo::bar(); 12: var_dump(is_callable(array('Exception','getMessage'))); 13: Exception::getMessage(); 14: ?> 15: --EXPECTF-- 16: bool(true) 17: 18: Strict Standards: Non-static method foo::bar() should not be called statically in %sbug47857.php on line %d 19: ok 20: bool(false) 21: 22: Fatal error: Non-static method Exception::getMessage() cannot be called statically in %sbug47857.php on line %d 23: