ID: 9202 User Update by: [EMAIL PROTECTED] Status: Open Old-Bug Type: Scripting Engine problem Bug Type: Documentation problem Description: Parse error when using terniary (?:) and unset() The documentation for Unset() states: Description int unset (mixed var [, mixed var [, ...]]) unset() destroys the specified variables and returns true. I have changed the type of this bug report to "Documentation Problem", since I have been informed that Unset is not a function. <? $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 Previous Comments: --------------------------------------------------------------------------- [2001-02-09 20:29:34] [EMAIL PROTECTED] <? $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 --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=9202 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]