Profic
just Profic (PHP5 BetaTeam)
[xdebug2] set_exception_handler && throw = crash
Опять я мучаю xdebug... И опять оно падает...
Тони, проверь плз у себя...
Кстати мне интересно, а 'hello!' должно вывестись...
Опять я мучаю xdebug... И опять оно падает...
Код:
C:\>php -v
PHP 5.0.0-dev (cli) (built: Jun 28 2004 16:29:27)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.0-dev, Copyright (c) 1998-2004 Zend Technologies
C:\>php[php]
<?php
function except_handler () {
$args = func_get_args ();
print_r ($args);
echo 'got it!';
}
set_exception_handler ('except_handler');
throw new Exception ('Exception!');
echo 'hello!';
?>[/php]
^Z
Array
(
[0] => Exception Object
(
[message:protected] => Exception!
[string:private] =>
[code:protected] => 0
[file:protected] => C:\-
[line:protected] => 16
[trace:private] => Array
(
)
)
)
got it!
C:\>php -v
PHP 5.0.0-dev (cli) (built: Jun 28 2004 16:29:27)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.0-dev, Copyright (c) 1998-2004 Zend Technologies
with Xdebug v2.0.0dev, Copyright (c) 2002, 2003, 2004, by Derick Rethans
C:\>php[php]
<?php
function except_handler () {
$args = func_get_args ();
print_r ($args);
echo 'got it!';
}
set_exception_handler ('except_handler');
throw new Exception ('Exception!');
echo 'hello!';
?>[/php]
^Z
[b][i]crash here[/i][/b]
C:\>
Кстати мне интересно, а 'hello!' должно вывестись...