Arquivos
hhvm/hphp/test/quick/debugger/break3.php
T
Herman Venter 4ed56d8a1d Parse nested namespaces in break point specifications.
Changed the parser for break point specifications to allow nested namespace qualifiers. Also extended this to the exception command.
2013-06-15 19:33:45 -07:00

37 linhas
606 B
PHP

<?php
namespace TestNs;
// Warning: line numbers are sensitive, do not change
function foo($x) {
$y = $x.'_TestNs';
\error_log($y);
}
class cls {
public function pubObj($x) {
\error_log("pubObj:".$x);
}
public static function pubCls($x) {
\error_log("pubCls:".$x);
}
}
namespace TestNs\Nested;
function foo($x) {
$y = $x.'_TestNs\Nested';
\error_log($y);
}
class cls {
public function pubObj($x) {
\error_log("pubObj:".$x.'_TestNs\Nested');
}
public static function pubCls($x) {
\error_log("pubCls:".$x.'_TestNs\Nested');
}
}
\error_log('break3.php loaded');