diff options
Diffstat (limited to 'Zend/tests/bug50383.phpt')
-rw-r--r-- | Zend/tests/bug50383.phpt | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/Zend/tests/bug50383.phpt b/Zend/tests/bug50383.phpt index de81facd05..2f72ea51f8 100644 --- a/Zend/tests/bug50383.phpt +++ b/Zend/tests/bug50383.phpt @@ -4,34 +4,34 @@ Bug #50383 (Exceptions thrown in __call / __callStatic do not include file and l <?php class myClass { - public static function __callStatic($method, $args) { - throw new Exception("Missing static method '$method'\n"); - } - public function __call($method, $args) { - throw new Exception("Missing method '$method'\n"); - } + public static function __callStatic($method, $args) { + throw new Exception("Missing static method '$method'\n"); + } + public function __call($method, $args) { + throw new Exception("Missing method '$method'\n"); + } } function thrower() { - myClass::ThrowException(); + myClass::ThrowException(); } function thrower2() { - $x = new myClass; - $x->foo(); + $x = new myClass; + $x->foo(); } try { - thrower(); + thrower(); } catch(Exception $e) { - print $e->getMessage(); - print_r($e->getTrace()); + print $e->getMessage(); + print_r($e->getTrace()); } try { - thrower2(); + thrower2(); } catch (Exception $e) { - print $e->getMessage(); - print_r($e->getTrace()); + print $e->getMessage(); + print_r($e->getTrace()); } ?> |