From:             [EMAIL PROTECTED]
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:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to