Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61465 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38037 invoked from network); 19 Jul 2012 09:58:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jul 2012 09:58:14 -0000 Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:37204] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/12-25752-53AD7005 for ; Thu, 19 Jul 2012 05:58:14 -0400 Received: by lbgc1 with SMTP id c1so3831116lbg.29 for ; Thu, 19 Jul 2012 02:58:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to:x-mailer; bh=tFhMfDzbdx6kHTABeD8PoOvuZCoKnRh94Oh04faS3Qk=; b=pcoUyyBrZfAxtDTL4VQTN4tf3lUBzWEPb9zw3ApmcFKDfupr3FkK8HzMlmgAHxgZin Cbzymcxg1AQUxmuVh08R4DVKImiIIZ7QItS97Wadl2joJ2ravWfCUPVEzINA6hqnS/Bi wMi9PUnHavnMUM57olJLviArS2AlnYu8Z6ztLluBs+dJSQX1goBixyF4wSdb7iiqt4wA vwGkcRkvoJYcq/UTrD78NRIjtmwlHlTuoFaFbHKRs65sXsPHub0GReHWIKySj50wqzaD AuS+rMLNmhG/CQaFIBXpmUEqUx5J3q7XwFDDz2YjAX/RAIMFuJ6rpJW3V90YdehWQz5c sDfg== Received: by 10.112.101.97 with SMTP id ff1mr841289lbb.69.1342691890000; Thu, 19 Jul 2012 02:58:10 -0700 (PDT) Received: from [10.0.1.7] ([93.185.190.227]) by mx.google.com with ESMTPS id gd9sm389147lbb.15.2012.07.19.02.58.07 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 Jul 2012 02:58:08 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: multipart/signed; boundary="Apple-Mail=_26B3788D-5051-471B-8400-BA52EEBE8877"; protocol="application/pgp-signature"; micalg=pgp-sha1 In-Reply-To: Date: Thu, 19 Jul 2012 13:58:05 +0400 Cc: ivan.enderlin@hoa-project.net, internals@lists.php.net Message-ID: <248D358E-CB43-4B54-870B-775491C21165@gmail.com> References: <5007D707.2070100@hoa-project.net> To: Paul Dragoonis X-Mailer: Apple Mail (2.1278) Subject: Re: [PHP-DEV] Make try/catch brackets optinal From: indeyets@gmail.com (Alexey Zakhlestin) --Apple-Mail=_26B3788D-5051-471B-8400-BA52EEBE8877 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=windows-1252 On 19.07.2012, at 13:49, Paul Dragoonis wrote: > 2) Try with only one line in it to throw an exception doesn't seem > like a realistic situation. It could be something like this: try $object->method(); catch (\Exception $e) return false; and ->method(), obviously, can have quite a long and complex structure --Apple-Mail=_26B3788D-5051-471B-8400-BA52EEBE8877 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) iQEcBAEBAgAGBQJQB9ouAAoJEM8kLGy4PJ4JS3AH/0jJVc5SIFqoOYsZ+kKL4vZp VbI0AyzpSPlQuM0vxsqj9kcNd7I+kA7FqCc4jIN+vsGShpoAWWU+NJOc2+NIEmXH NFje17gMNJcMOs3a7LIyHvLW0/Qy2nlwb2VkcY7oyWwUiZWoDan+QV5xLfUnHIVB 1XvRW3m6oxV8WT4vZioVpg2A8azkCHZakDbRyz1vfmRcDacnz6mcy1aaIpUI58p3 Qjf2N1BXz7JicNoD6ry85hIdYNjrK6FYPEJ/TkflraBA1eDv4cRZ6vwIVu+4wQAM FiHzO4EnmIcSWnn/RCkd9/BgH5G4bK93R2CJGTGhkShnLUuS0jBngBSJ1rwdz54= =hmDp -----END PGP SIGNATURE----- --Apple-Mail=_26B3788D-5051-471B-8400-BA52EEBE8877--