Arquivos
hhvm/hphp/test/quick/debugger/exception1.php
T
Herman Venter 8d25c0f6f2 Give feedback if breakpoints won't hit because a file is not loaded, a class is not loaded, or a function is not loaded
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.
2013-06-21 11:44:40 -07:00

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();
}
}