|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-04 11:45 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 03:00:01 2025 UTC |
Description: ------------ This code generates a 'parse error': try { @some_function() or throw new Exception("Error"); //parse error in this line }catch (Exception $e) { ... } But this code works ok: try { @some_function() or die("I should throw a exception here"); }catch (Exception $e) { ... } some_function(), of course returns a boolean value. I'm running this code from a CLI. Reproduce code: --------------- try { @some_function() or throw new Exception("Error"); //parse error in this line }catch (Exception $e) { ... } Expected result: ---------------- Something instead a 'Parse Error' Actual result: --------------