Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36061 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40665 invoked from network); 8 Mar 2008 15:17:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Mar 2008 15:17:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=mikespook@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mikespook@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.191 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mikespook@gmail.com X-Host-Fingerprint: 209.85.128.191 fk-out-0910.google.com Received: from [209.85.128.191] ([209.85.128.191:8125] helo=fk-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8F/E9-18442-21EA2D74 for ; Sat, 08 Mar 2008 10:17:39 -0500 Received: by fk-out-0910.google.com with SMTP id f33so812138fkf.7 for ; Sat, 08 Mar 2008 07:17:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:openpgp:content-type; bh=bIAAd7kMn7MwYpDEkLHkiZv5IXA32BWYuwXAtvyTPYs=; b=vPxfchmOuSdca0LitkibNc6DwnXTHWwJwwbU2TCszuddbBznh7Uj77MWKtni/wPybo8UV0tT31t9Qhy39ZkY8dSE1roT373hA/QmAsixtnCiibpWfJs+jNWa8tJHvlUna6vQrXXkOh8wws99QVJZbtRehwRZ4RM2ccxW5Dlo2j4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:openpgp:content-type; b=L4q+3Hl+2L7UNj69ev0HLo81cF723PaD0kQDju5aY8zmr0iVejVdIjV1Tw1sVYEXOohDm84BF82nLO2bPYKPergnDEfR69xv3v1BJGNpVEYXMrzxT9YXec2aqjmw59AToPQCO5ppU5YlEM27XWzHP56qGntDAecY7YIrBY7V29s= Received: by 10.78.190.10 with SMTP id n10mr7498305huf.16.1204989455366; Sat, 08 Mar 2008 07:17:35 -0800 (PST) Received: from ?192.168.100.103? ( [121.32.245.52]) by mx.google.com with ESMTPS id p28sm3081169hub.59.2008.03.08.07.17.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 08 Mar 2008 07:17:34 -0800 (PST) Message-ID: <47D2AE01.2050807@gmail.com> Date: Sat, 08 Mar 2008 23:17:21 +0800 User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Cristian Rodriguez CC: php-dev References: <7d5a202f0803061338jcd4fae3pecd559728443386d@mail.gmail.com> In-Reply-To: <7d5a202f0803061338jcd4fae3pecd559728443386d@mail.gmail.com> X-Enigmail-Version: 0.95.6 OpenPGP: id=9CA1E341 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB6EEBF4D4F38E12C26994992" Subject: Re: [PHP-DEV] having fun with $this From: mikespook@gmail.com (=?UTF-8?B?6YKi5YW0?=) --------------enigB6EEBF4D4F38E12C26994992 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi, $this .=3D '123'; Should be $this =3D '123'; or $this =3D ''; $this .=3D '123'; must init the variable. Not only the $this but also any one. Regards Cristian Rodriguez =E5=86=99=E9=81=93: > Hi: > > It is still possible to re-asign $this in a number of ways > > examples > > $this .=3D '123'; > var_dump($this); > //Notice: Undefined variable: this in this.php on line 3 > //string(3) "123" > > > > $this{1} =3D '123'; > var_dump($this); > /* array(1) { > [1]=3D> > string(3) "123" > } > > */ > > or .. > $this['foo'] =3D '123'; > var_dump($this); > > > In all those cases, I expect a fatal error : cannot re-asign $this. > right ? or Im missing something ? > > Thanks.. > > > > > > > > > =20 --------------enigB6EEBF4D4F38E12C26994992 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfSrgkACgkQe5zxRJyh40H/cgCgkGkiy2d9IrF+Z+5vjMVT/Clf DWwAn1JGet+TbWEEWzXDp6YH62L7jWek =9BeA -----END PGP SIGNATURE----- --------------enigB6EEBF4D4F38E12C26994992--