From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version: 4.2.3
PHP Bug Type: Strings related
Bug description: I can't concat a string with +=
Hi! I have the following code:
$a_data = array("a","b","c");
$s_data = "";
foreach($a_data as $data){
$s_data += $data;
}
echo $s_data;
I was trying to make $s_data contain "abc" but instead I get a 0. It seems
that += cube of types returns an int ignoring that the user is trying to
concat an string.
--
Edit bug report at http://bugs.php.net/?id=20448&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20448&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20448&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20448&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20448&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20448&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20448&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20448&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20448&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20448&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20448&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20448&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20448&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20448&r=isapi