Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83041 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75219 invoked from network); 18 Feb 2015 11:08:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2015 11:08:31 -0000 Authentication-Results: pb1.pair.com header.from=inefedor@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=inefedor@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.172 as permitted sender) X-PHP-List-Original-Sender: inefedor@gmail.com X-Host-Fingerprint: 209.85.214.172 mail-ob0-f172.google.com Received: from [209.85.214.172] ([209.85.214.172:58888] helo=mail-ob0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/09-18888-EA274E45 for ; Wed, 18 Feb 2015 06:08:31 -0500 Received: by mail-ob0-f172.google.com with SMTP id nt9so666705obb.3 for ; Wed, 18 Feb 2015 03:08:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UEBH6jhA0T7glOx+Wd5NYimNIWO3CgaMuRExMiytNwQ=; b=e21R75nLGZFtE5uPNagQtLSvAcj9cPFokw1vqb+oZFa9y/mmal189WZwxCkXhWQrhX jDxB2KsJ18yIwe1QvfFjbKJFyJACDkOrVB1q/74/SZvY4jdSEL6ksdOneGNnbPSNFApn htpIcDR0r/uDtvb8gMqMDAEkE+MEx0vwYBQBKfjkSshdcEojUFVDzS/vi8x4lmM21rqa lMvMS8zV8w14iWSqm9UcR8J8R51qV0J6kgsvBXtV8ox8dFyYum62bH6MHFKfygrEs1hU f6H61kZZb0SyfoY6s0eSYZzh7gcNzEcQBuUZDR7mHTGufNLHGM0P/0gL0FKkjzz4Y2gB 6mjw== MIME-Version: 1.0 X-Received: by 10.202.214.206 with SMTP id n197mr20629226oig.2.1424257707692; Wed, 18 Feb 2015 03:08:27 -0800 (PST) Received: by 10.202.59.10 with HTTP; Wed, 18 Feb 2015 03:08:27 -0800 (PST) Received: by 10.202.59.10 with HTTP; Wed, 18 Feb 2015 03:08:27 -0800 (PST) In-Reply-To: References: <54E12349.7070806@gmail.com> <16.9B.05176.AE1C1E45@pb1.pair.com> <54E1C993.1070609@gmail.com> <37.20.01961.31113E45@pb1.pair.com> <54E32CAA.5030600@gmail.com> Date: Wed, 18 Feb 2015 15:08:27 +0400 Message-ID: To: Tony Marston Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a113adb72bc5b7d050f5ad634 Subject: Re: [PHP-DEV] [RFC] Exceptions in the engine From: inefedor@gmail.com (Nikita Nefedov) --001a113adb72bc5b7d050f5ad634 Content-Type: text/plain; charset=UTF-8 On 18 Feb 2015 13:53, "Tony Marston" wrote: > > Could it be restricted to the current scope? In your example the call to fopen() exists in the load_data() function and is not in a try ... catch block within *that* function, so the fact that the call to load_data() is within a try ... catch block should be irrelevant as it is in a different scope. Hi Tony, This sounds very hacky. If you want exceptions with file/stream functions I suggest you to find some open library out there that can handle your user case or you can use SplFileObject. --001a113adb72bc5b7d050f5ad634--