|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-27 03:47 UTC] alexei at net24 dot co dot nz
[2005-01-27 03:49 UTC] alexei at net24 dot co dot nz
[2005-01-27 08:12 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 15:00:01 2025 UTC |
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