On Monday, October 27, 2003, at 02:22 AM, Marcus BXrger wrote:
Hello George,
intersting code :-)
You can also avoid that by using $arr[(string)$book] = 1; instead of $arr["$book"] = 1;
marcus
Yeah, I know I can avoid it, but I shouldn't have to. In more complex examples it also seems to cause SIGBUS errors on OSX.
An ickier example would be something like this
<params> <description>Home Page HTTP Check</description> <url>http://www.schlossnagle.org/~george</url> <timeout>30</timeout> <frequency>900</frequency </params>
parsed by something like this
public function __construct($params) { foreach($params as $k => $v) { $k = "$k"; $this->$k = "$v"; } }
That has really high WTF factor.
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php