#37921 [NEW]: Feature?
From: justanotheruser2006 at yahoo dot com
Operating system: winxp
PHP version: 5.1.5CVS
PHP Bug Type: Feature/Change Request
Bug description: Feature?
Description:
------------
This is not a bug, but a sugestion. The codes output was not what was
expected... When adding a value to a string that has a value in the front,
should the value just increase in the front of the string and keep the
remainder of the string in tact?
Reproduce code:
---------------
<?
$a = 98;
$a += 3;
echo "<br>A = $a";
$a .= " Test";
echo "<br>String A = $a";
$a += 3;
echo "<br>Test add 3 to string A = $a";
?>
Expected result:
----------------
A = 101
String A = 101 Test
Test add 3 to string A = 104 Test
Actual result:
--------------
A = 101
String A = 101 Test
Test add 3 to string A = 104
--
Edit bug report at http://bugs.php.net/?id=37921&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37921&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37921&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37921&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37921&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37921&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37921&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37921&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37921&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37921&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37921&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37921&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37921&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37921&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37921&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37921&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37921&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37921&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37921&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37921&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37921&r=mysqlcfg
Thread (2 messages)
- justanotheruser2006 at yahoo dot com