You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php$advice = function (AopJoinPoint$joinpoint) { $joinpoint->process(); };
aop_add_around("*->*()", $advice);
thrownewException("Exceptiontext");
php fails to throw the exception, because the process() method fails with the following error:
Warning: __construct(): could not obtain parameters for parsing in D:\xampp\htdocs\index.php on line 3
Fatal error: Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]]) in D:\xampp\htdocs\index.php on line 3
However, this only occurs if there is an exception text. The following code works:
<?php$advice = function (AopJoinPoint$joinpoint) { $joinpoint->process(); };
aop_add_around("*->*()", $advice);
thrownewException();
Tested with PHP 5.3.8 on Windows and Linux.
The text was updated successfully, but these errors were encountered:
In the following code
php fails to throw the exception, because the process() method fails with the following error:
However, this only occurs if there is an exception text. The following code works:
Tested with PHP 5.3.8 on Windows and Linux.
The text was updated successfully, but these errors were encountered: