PHP 4.0 Bug #9202: Parse error when using terniary (?:) and unset()

From: Date: Sat, 10 Feb 2001 01:29:34 +0000
Subject: PHP 4.0 Bug #9202: Parse error when using terniary (?:) and unset()
Groups: php.dev 
Request: Send a blank email to php-dev+get-46120@lists.php.net to get a copy of this message
From: mlr@mijoheto.com Operating system: Linux 2.2.14-5.0smp PHP version: 4.0.3pl1 PHP Bug Type: Scripting Engine problem Bug description: Parse error when using terniary (?:) and unset() <? $avariable = "test"; $avariable=="test" ? $avariable .=" No problem with is_bool" : is_bool($avariable); $avariable=="test" ? $avariable .=" No problem with isset" : isset($avariable); $avariable=="test" ? $avariable .=" No problem with empty" : empty($avariable); $avariable=="test" ? $avariable .=" Problem with unset" : unset($avariable); echo $avariable; ?> Output is Parse error: parse error in /home/httpd/html/mlr/unsetProblem.php on line 6 -- Edit Bug report at: http://bugs.php.net/?id=9202&edit=1

« previous php.dev (#46120) next »