#31714 [Opn]: exception suppression using @ doesnt work when php is installed asApache module

From: Date: Thu, 27 Jan 2005 02:47:42 +0000
Subject: #31714 [Opn]: exception suppression using @ doesnt work when php is installed asApache module
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72909@lists.php.net to get a copy of this message
ID: 31714 User updated by: alexei at net24 dot co dot nz Reported By: alexei at net24 dot co dot nz Status: Open Bug Type: *Web Server problem Operating System: freebsd PHP Version: 5.0.3 New Comment: correction seems that it does not work when called via CLI either all it does is hiding fatal error message but does not suppress exception Previous Comments: ------------------------------------------------------------------------ [2005-01-27 03:10:30] alexei at net24 dot co dot nz Description: ------------ When error suppression operator is used for the function where exception can be thrown it DOES suppress exception when script is called using CLI but DOES NOT do it when script is called from apache Reproduce code: --------------- <? function throw_ex() { throw new exception(); } echo 1; @throw_ex(); // suppress exception echo 2; ?> Expected result: ---------------- 12 Actual result: -------------- when called via CLI: 12 when called from apache: 1 there's also no fatal error displayed, script just silently dies ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31714&edit=1

« previous php.bugs (#72909) next »