PHP 4.0 Bug #7513: unset not allowed in ?-if or an or

From: Date: Sat, 28 Oct 2000 12:09:20 +0000
Subject: PHP 4.0 Bug #7513: unset not allowed in ?-if or an or
Groups: php.dev 
Request: Send a blank email to php-dev+get-36255@lists.php.net to get a copy of this message
From: wico@cnh.nl 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

« previous php.dev (#36255) next »