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

2001-02-09 Thread mlr
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" :

Re: [PHP-DEV] PHP 4.0 Bug #9202: Parse error when using terniary (?:) and unset()

2001-02-09 Thread Zeev Suraski
unset() is not a function, but a statement. It returns no value, and thus, you can't use it as an expression for the ? operator. Zeev At 03:29 10/2/2001, [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Operating system: Linux 2.2.14-5.0smp PHP version: 4.0.3pl1 PHP Bug Type: