#45353 [Bgs]: Please Delete

From: Date: Thu, 26 Jun 2008 14:49:00 +0000
Subject: #45353 [Bgs]: Please Delete
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-126044@lists.php.net to get a copy of this message
ID: 45353 Updated by: bjori@php.net 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: . Previous Comments: ------------------------------------------------------------------------ [2008-06-25 12:01:36] null at null dot invalid n ------------------------------------------------------------------------ [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 (#126044) next »