Through a coding error of mine, I stumbled upon a "feature" of variable
variables, that is quite sickening to me. Usually php doesn't support an 
empty string or integers as variable-names, but these things are all 
possible and you won't get a single warning...shouldn't this get changed?

<?php

$varname = "";
//$varname = 6;

$$varname = new stdClass();

${""}->{""} = "bar";
//${"6"}->{"6"} = "bar";

$$varname->$varname = "foo";
?>

Regards,
Alexander

-- 
Alexander Wirtz                        |   http://www.systematics.de/  |
Systematics INTEGRATIONS GmbH          |   fon +49 2241 39778-60       |
Rathausallee 10                        |   fax +49 2241 39778-77       |
53757 St. Augustin                     |   mailto:[EMAIL PROTECTED] |


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to