#45353 [Opn->Bgs]: += Operand Empties Variable

From: Date: Wed, 25 Jun 2008 11:58:03 +0000
Subject: #45353 [Opn->Bgs]: += Operand Empties Variable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-126005@lists.php.net to get a copy of this message
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

« previous php.bugs (#126005) next »