Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18429 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64449 invoked by uid 1010); 25 Aug 2005 13:26:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 64434 invoked from network); 25 Aug 2005 13:26:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2005 13:26:56 -0000 X-Host-Fingerprint: 64.233.182.201 nproxy.gmail.com Received: from ([64.233.182.201:32326] helo=nproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 2C/4F-28235-F17CD034 for ; Thu, 25 Aug 2005 09:26:56 -0400 Received: by nproxy.gmail.com with SMTP id a4so107992nfc for ; Thu, 25 Aug 2005 06:26:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nKR0uWAdihw2Oi9n/IDbupx+Qk60xAZclMSclrTSM/GOc+RgLzW8V+s482tg8I9HAiFCNAICgxAGan2qHZiPlcWI7y6YBkhOm0u+XPHceX12Bbl7nBCJZC1YCvqdw+Va/rjT/Tm2hmG3KJ0FWMIHPRUqwTu0ME2EK/mq/s2XH9c= Received: by 10.48.237.17 with SMTP id k17mr99361nfh; Thu, 25 Aug 2005 06:26:51 -0700 (PDT) Received: by 10.49.1.3 with HTTP; Thu, 25 Aug 2005 06:26:51 -0700 (PDT) Message-ID: <4e7c91310508250626b296fb4@mail.gmail.com> Date: Thu, 25 Aug 2005 15:26:51 +0200 To: John Coggeshall Cc: internals@lists.php.net In-Reply-To: <1124907359.31045.54.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1124907359.31045.54.camel@localhost.localdomain> Subject: Re: [PHP-DEV] Can someone tell me ... From: svenpeter@gmail.com (Sven Peter) Hi, > Why this crashes: >=20 > php -r 'class a { function b() { return $this->b(); }} $c =3D new a(); $c= - > >b();' >=20 > and this does not? >=20 > php -r 'function a() { return a(); }' because you forgot to call a(); This also crashes: php -r "function a() { return a(); } a();" Sven