#45353 [Bgs]: Please Delete

From: Date: Wed, 25 Jun 2008 12:01:36 +0000
Subject: #45353 [Bgs]: Please Delete
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-126007@lists.php.net to get a copy of this message
ID: 45353 User updated by: null at null dot invalid -Summary: += Operand Empties Variable Reported By: null at null dot invalid 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:59:02] null at null dot invalid n ------------------------------------------------------------------------ [2008-06-25 11:58:03] phpbugs dot mp7jir at stevenroddis dot com n ------------------------------------------------------------------------ [2008-06-25 11:53:28] null at null dot invalid 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 (#126007) next »