Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60490 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72990 invoked from network); 6 May 2012 10:16:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 May 2012 10:16:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@googlemail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@googlemail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:42124] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/88-30075-29F46AF4 for ; Sun, 06 May 2012 06:16:51 -0400 Received: by lbgc1 with SMTP id c1so2026106lbg.29 for ; Sun, 06 May 2012 03:16:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=eThWTaY8AL7coVzPZHT78s9hw6AoEvtFy0BFkXDDIkw=; b=GXsqW5esLhJqpGi23EzT23i4S6in23AW/u0OOwi8UqEqMJKszP4bUwqKtVVYwEG5i1 O1gLL/cgEbkC97A3xUviYwWxRyJp98LpuDuNRGZ5fuV1D3AqhYvItRT8MQi32Ixvt7aw B9kNn+4MGzN+uLAyiUd+5x5Z4CbCxivlta1tmMj2Sdbgs10gHzh53aid4cYb1hnAAtY8 qDxhhmZlSEk+V68Wyzbdj0Xo8ymh3DkIfcUlg9w1HdlQL4IuRINsGsfEZsZmfOXwVZqF zbC2KvkpEsZPyF7iu5/wVlpsqGZI4yhKbLRfk8rWbXjcst3hPH6r4wgmMBzDsvrxFzii BJUA== MIME-Version: 1.0 Received: by 10.112.49.100 with SMTP id t4mr5591084lbn.10.1336299407984; Sun, 06 May 2012 03:16:47 -0700 (PDT) Received: by 10.152.1.196 with HTTP; Sun, 6 May 2012 03:16:47 -0700 (PDT) In-Reply-To: References: Date: Sun, 6 May 2012 12:16:47 +0200 Message-ID: To: Laruence Cc: Devis Lucato , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] catching exception using a variable passed by reference From: nikita.ppv@googlemail.com (Nikita Popov) On Sun, May 6, 2012 at 6:04 AM, Laruence wrote: > Hi: > =A0 after a deep look, =A0I think it's not a bug. > > =A0 the exception in the catch block is only a local var of that block. Not sure this makes sense to me. PHP does not have block scopes; all variables in a function are in the same scope. For example the $exception variable will also be available after the catch block. So to me it would make sense if the outer variable would be changed :) Nikita