Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35031 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60984 invoked by uid 1010); 30 Jan 2008 16:32:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 60960 invoked from network); 30 Jan 2008 16:32:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2008 16:32:38 -0000 Authentication-Results: pb1.pair.com header.from=lars@strojny.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=lars@strojny.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain strojny.net designates 85.10.204.248 as permitted sender) X-PHP-List-Original-Sender: lars@strojny.net X-Host-Fingerprint: 85.10.204.248 milch.schokokeks.org Received: from [85.10.204.248] ([85.10.204.248:51998] helo=milch.schokokeks.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/6D-14302-E96A0A74 for ; Wed, 30 Jan 2008 11:32:34 -0500 Received: from [10.22.2.133] (colt-d53d2146.colt.mediaventures.de [::ffff:213.61.33.70]) (AUTH: PLAIN lars@schokokeks.org, SSL: TLSv1/SSLv3,256bits,CAMELLIA256-SHA) by milch.schokokeks.org with esmtp; Wed, 30 Jan 2008 17:32:25 +0100 id 0000000000020004.0000000047A0A69A.00004D1D To: php-dev Date: Wed, 30 Jan 2008 16:30:39 +0100 Message-ID: <1201707040.4710.3.camel@localhost> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=_milch.schokokeks.org-19741-1201710746-0001-2" X-Mailer: Evolution 2.21.5 Subject: A moving instance From: lars@strojny.net (Lars Strojny) --=_milch.schokokeks.org-19741-1201710746-0001-2 Content-Type: multipart/mixed; boundary="=-xB0882eQxpc7E3EvhGha" --=-xB0882eQxpc7E3EvhGha Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I've recently stumbled upon the following issue: when calling a non-static function statically from a non-static class, the instance magically moves to the called class. It throws a strict warning, but I wonder if this is enough. The attached example produces "Foo". cu, Lars --=20 =C2=BBDie Glorifizierung der pr=C3=A4chtigen underdogs l=C3=A4uft auf die des pr=C3=A4chtigen Systems heraus, das sie dazu macht.=C2=AB -- Theodor W. Adorno, =C2=BBMinima Moralia=C2=AB: They, the people Lars Strojny Nie=C3=9Fenstr. 36 51103 Cologne Jabber/Mail: lars@strojny.net Weblog: http://usrportage.de --=-xB0882eQxpc7E3EvhGha Content-Disposition: attachment; filename=moving-instance.php Content-Type: application/x-php; name=moving-instance.php Content-Transfer-Encoding: base64 PD9waHAKY2xhc3MgRm9vCnsKCXB1YmxpYyBmdW5jdGlvbiB0ZXN0KCkKCXsKCQlCYXI6OnRlc3Qo KTsKCX0KfQoKY2xhc3MgQmFyCnsKCXB1YmxpYyBmdW5jdGlvbiB0ZXN0KCkKCXsKCQllY2hvIGdl dF9jbGFzcygkdGhpcyk7Cgl9Cn0KCiRmb28gPSBuZXcgRm9vKCk7CiRmb28tPnRlc3QoKTsK --=-xB0882eQxpc7E3EvhGha-- --=_milch.schokokeks.org-19741-1201710746-0001-2 Content-Type: application/pgp-signature; name="signature.asc" Content-Transfer-Encoding: 7bit Content-Description: Dies ist ein digital signierter Nachrichtenteil -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (GNU/Linux) iQIcBAABAgAGBQJHoJgfAAoJECQPF+sCY6wH5YAP/1TPVn1bJfMPvS7JEQSQ2McT 8tdYLVfP6z8sQ/0CJf+qcmf0qqtzzDvQBAKVdoIBLeNaI/rRe63VfS+pb7GzBwhQ WAPzPsjMc4NHO4MiZdJQy6klbXg/lHmWgmcsqcOXLEwI2EB2CSO/QKO/0x/P+JhB O/s8Gs9v/cAO5NRGWzCOLg9fvajfp+OrC64LtFxdad29Hwfah4dU+zukrynYAJhJ SVTE39njiOXUPEqhpowMfM6v78Qx8xj3cq9ratnJo4RYYiuWRocu2BR7T94F8OOM JbuVafFXGOQxchxnK7yWs3C+gVB6KoQaEKDWvSfB/67r7NLYw59bne8kgy1XnA8O LpW1vFUJl9PqW2swbAbntJ4nfcRpCg0icTmU+uETFzoSwxe7Hrg8hVTTqSZWvjlK BF175BP2resGouzOCwut2gyYgotNDRod3/LLS+R6BCeOHOFfPWxCLL5ydCXK94yh VSpD0ARFzDjsE9H3DyTmNB6ZuAcgyzDs7VNaj2wTv5LMjqGd4ILzu55mjMpTCwIC PPNkH/s54VWzDfqgw8duPeX24NagMAw++2xLMCQpa/XM0yMaljUCIdjO9vAQMqfq U1lKhQ2JZ6WOturKuVbNk0IE6b59ffghEiLG4B4FeW/kDb5HzzX6w+yKOuxzyMnu LGCfmqHy0iPlfmHcxdM0 =T+sc -----END PGP SIGNATURE----- --=_milch.schokokeks.org-19741-1201710746-0001-2--