bug40815.phpt 327 B

123456789101112131415161718
  1. --TEST--
  2. Bug #40815 (using strings like "class::func" and static methods in set_exception_handler() might result in crash).
  3. --FILE--
  4. <?php
  5. class ehandle{
  6. static public function exh ($ex) {
  7. echo 'foo';
  8. }
  9. }
  10. set_exception_handler("ehandle::exh");
  11. throw new Exception ("Whiii");
  12. echo "Done\n";
  13. ?>
  14. --EXPECT--
  15. foo