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

From: Date: Mon, 30 Oct 2000 14:47:27 +0000
Subject: PHP 4.0 Bug #7513 Updated: unset not allowed in ?-if or an or
Groups: php.dev 
Request: Send a blank email to php-dev+get-36401@lists.php.net to get a copy of this message
ID: 7513 Updated by: stas Reported By: wico@cnh.nl Status: Closed Bug Type: Scripting Engine problem Assigned To: Comments: unset is not a function, so you cannot use it in an expression. Previous Comments: --------------------------------------------------------------------------- [2000-10-28 08:09:20] wico@cnh.nl 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 --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7513

« previous php.dev (#36401) next »