4ed56d8a1d
Changed the parser for break point specifications to allow nested namespace qualifiers. Also extended this to the exception command.
58 linhas
860 B
PHP
58 linhas
860 B
PHP
<?php
|
|
|
|
// Warning: line numbers are sensitive, do not change
|
|
|
|
namespace {
|
|
|
|
class MyException extends Exception { }
|
|
|
|
function throw_exception() {
|
|
throw new Exception();
|
|
}
|
|
|
|
function throw_myexception() {
|
|
throw new MyException();
|
|
}
|
|
|
|
function error_undefined_class() {
|
|
$x = new NoSuchClass();
|
|
}
|
|
|
|
}
|
|
|
|
namespace Outer {
|
|
|
|
class MyException extends \Exception { }
|
|
|
|
function throw_exception() {
|
|
throw new \Exception();
|
|
}
|
|
|
|
function throw_myexception() {
|
|
throw new MyException();
|
|
}
|
|
|
|
function error_undefined_class() {
|
|
$x = new NoSuchClass();
|
|
}
|
|
|
|
}
|
|
|
|
namespace Outer\Inner {
|
|
|
|
class MyException extends \Exception { }
|
|
|
|
function throw_exception() {
|
|
throw new \Exception();
|
|
}
|
|
|
|
function throw_myexception() {
|
|
throw new MyException();
|
|
}
|
|
|
|
function error_undefined_class() {
|
|
$x = new NoSuchClass();
|
|
}
|
|
|
|
}
|