#38974 [Bgs]: String is not properly overwritten in
| From: | hendlerman at yahoo dot com | Date: | Wed, 27 Sep 2006 15:48:06 +0000 |
| Subject: | #38974 [Bgs]: String is not properly overwritten in | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-102827@lists.php.net to get a copy of this message | ||
ID: 38974
User updated by: hendlerman at yahoo dot com
Reported By: hendlerman at yahoo dot com
Status: Bogus
Bug Type: Arrays related
Operating System: windows XP
PHP Version: 5.1.6
New Comment:
OK.
I can see how this is not a "bug" and expected.
But I think the behaviour should be different. Maybe just:
1. don't loose keys
I can't post to php-dev ATM, but is that the proper place to have this
discussion?
Previous Comments:
------------------------------------------------------------------------
[2006-09-27 15:45:14] tony2001@php.net
It's autoconverted to integer, i.e. 0.
------------------------------------------------------------------------
[2006-09-27 15:37:37] hendlerman at yahoo dot com
the code you've outlined is not the same as the code I have.
what happens to the key in the array called "count"?
------------------------------------------------------------------------
[2006-09-27 15:34:44] tony2001@php.net
# php -r '$s = "string"; $s[0] = 3; var_dump($s);'
string(6) "3tring"
This is expected behaviour.
------------------------------------------------------------------------
[2006-09-27 15:34:04] hendlerman at yahoo dot com
edit title
------------------------------------------------------------------------
[2006-09-27 15:32:43] hendlerman at yahoo dot com
Changing title and re-opening so it gets reviewed again.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/38974
--
Edit this bug report at http://bugs.php.net/?id=38974&edit=1