Edit report at https://bugs.php.net/bug.php?id=61529&edit=1
ID: 61529 User updated by: asserte at gmail dot com Reported by: asserte at gmail dot com Summary: Parsing error Status: Open Type: Bug -Package: *Compile Issues +Package: Scripting Engine problem Operating System: Debian PHP Version: 5.4.0 Block user comment: N Private report: N New Comment: Move to SE problems Previous Comments: ------------------------------------------------------------------------ [2012-03-27 13:45:26] asserte at gmail dot com Description: ------------ isset() && unset() PHP Parse error: syntax error, unexpected 'unset' (T_UNSET), expecting ')' in /tmp/isset.php on line 4 Tested on PHP 5.4.0-3 (cli) (built: Mar 22 2012 07:59:57) Test script: --------------- $> cat /tmp/isset.php 1 <?php 2 3 $entity = array('id' => 1, 'name' => 'example'); 4 isset( $entity['id'] ) && unset( $entity['id'] ); $> php /tmp/isset.php PHP Parse error: syntax error, unexpected 'unset' (T_UNSET), expecting ')' in /tmp/isset.php on line 3 Expected result: ---------------- unset should works. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61529&edit=1