[PHP-DEV] PHP 4.0 Bug #9202 Updated: Parse error when using terniary (?:) and unset()
ID: 9202 Updated by: jmcastagnetto Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Documentation problem Assigned To: Comments: Documentation fixed Previous Comments: --- [2001-02-09 22:45:12] [EMAIL PROTECTED] 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 --- [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 --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9202edit=2 -- 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]
[PHP-DEV] PHP 4.0 Bug #9202 Updated: Parse error when using terniary (?:) and unset()
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]