8d25c0f6f2
The debugger client now accepts feedback from the the debugger server about whether a breakpoint can be hit, absent further loads of files, classes or functions.
59 linhas
887 B
PHP
59 linhas
887 B
PHP
<?php
|
|
|
|
// Warning: line numbers are sensitive, do not change
|
|
|
|
namespace {
|
|
|
|
class MyException extends Exception { }
|
|
class NotAnException { }
|
|
|
|
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();
|
|
}
|
|
|
|
}
|