bug67436_nohandler.phpt 416 B

1234567891011121314151617181920
  1. --TEST--
  2. bug67436: E_WARNING instead of custom error handler
  3. --FILE--
  4. <?php
  5. spl_autoload_register(function($classname) {
  6. if (in_array($classname, array('a','b','c'))) {
  7. require_once __DIR__ . "/{$classname}.inc";
  8. }
  9. });
  10. a::staticTest();
  11. $b = new b();
  12. $b->test();
  13. ?>
  14. --EXPECTF--
  15. Warning: The magic method b::__invoke() must have public visibility in %s on line %d
  16. b::test()
  17. a::test(c::TESTCONSTANT)