mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
Add directories for tests relating to - halting the compiler - `declare()` usage - exception handlers - `get_class_methods()` - `get_class_vars()` - `isset()` - name collisions As well as organizing a couple of tests into existing sub directories along the way Work towards GH-15631
19 lines
327 B
PHP
19 lines
327 B
PHP
--TEST--
|
|
Bug #40815 (using strings like "class::func" and static methods in set_exception_handler() might result in crash).
|
|
--FILE--
|
|
<?php
|
|
|
|
class ehandle{
|
|
static public function exh ($ex) {
|
|
echo 'foo';
|
|
}
|
|
}
|
|
|
|
set_exception_handler("ehandle::exh");
|
|
|
|
throw new Exception ("Whiii");
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECT--
|
|
foo
|