php5rc3 empty() behaviour on $$name
| From: | Andreas Goetz | Date: | Wed, 09 Jun 2004 17:47:43 +0000 |
| Subject: | php5rc3 empty() behaviour on $$name | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-18163@lists.php.net to get a copy of this message | ||
<?php
$test = '';
$var = 'test';
if (empty($test)) {
echo 'test empty';
}
// test empty
if (empty($$var)) {
echo 'test empty';
}
// expected result: test empty
// actual result:
?>
Comments?