[PHP-DEV] PHP 4.0 Bug #7513: unset not allowed in ?-if or an or From: wico <email protected>
Date: 10/28/00

From: wico <email protected>
Operating system: linux
PHP version: 4.0 Latest CVS (28/10/2000)
PHP Bug Type: Scripting Engine problem
Bug description: unset not allowed in ?-if or an or

Strange parser thingy:

// this is allowed
if ($skip_name) {
        unset($data[id], $data[name]);
} else {
        unset($data[id]);
}

// this gives parse error:
        $skip_name ? unset($data[id]) : unset($data[id], $data[name]);

$plop OR unset($plop) also makes parser unhappy

-- 
Edit Bug report at: http://bugs.php.net/?id=7513&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>