ID: 45353 User updated by: phpbugs dot mp7jir at stevenroddis dot com Reported By: phpbugs dot mp7jir at stevenroddis dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows XP PHP Version: 5.2.6 New Comment:
n Previous Comments: ------------------------------------------------------------------------ [2008-06-25 11:53:28] phpbugs dot mp7jir at stevenroddis dot com Description: ------------ += operand empties variable, see code for more details. Reproduce code: --------------- <?php //Running PHP Version 5.2.6 on Windows XP $foo = '_123'; $bar = ''; $foo += $bar; echo $foo; ?> Expected result: ---------------- _123 Actual result: -------------- <nothing> Checked with a debugger, $foo += $bar; makes $foo = null; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45353&edit=1