A moving instance

From: Date: Wed, 30 Jan 2008 15:30:39 +0000
Subject: A moving instance
Groups: php.internals 
Request: Send a blank email to internals+get-35031@lists.php.net to get a copy of this message
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 -- »Die Glorifizierung der prächtigen underdogs läuft auf die des prächtigen Systems heraus, das sie dazu macht.« -- Theodor W. Adorno, »Minima Moralia«: They, the people Lars Strojny Nießenstr. 36 51103 Cologne Jabber/Mail: lars@strojny.net Weblog: http://usrportage.de

Attachment: [application/x-php] moving-instance.php
Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc
« previous php.internals (#35031) next »