php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45353 Please Delete
Submitted: 2008-06-25 11:53 UTC Modified: 2008-06-26 14:49 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: null at null dot invalid Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.6 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: null at null dot invalid
New email:
PHP Version: OS:

 

 [2008-06-25 11:53 UTC] 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;

Patches

Pull Requests

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 09:01:32 2025 UTC