php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72943 assign_dim on string doesn't reset hval
Submitted: 2016-08-26 08:59 UTC Modified: 2016-08-26 10:24 UTC
From: guy_theuws at hotmail dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 7.1.0beta3 OS: Windows Professional 10
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: guy_theuws at hotmail dot com
New email:
PHP Version: OS:

 

 [2016-08-26 08:59 UTC] guy_theuws at hotmail dot com
Description:
------------
PHP reference error when using loop with array. Has something to do with the 'substring' usage $string[$i] = "test";

SO question: http://stackoverflow.com/questions/39123586/php-7-arrays-undefined-index-bug-or-works-as-designed



Test script:
---------------
https://3v4l.org/YANSb


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-26 10:24 UTC] laruence@php.net
-Summary: Reference bug loop +Summary: assign_dim on string doesn't reset hval
 [2016-08-26 10:33 UTC] laruence@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=c67fa3c91d314fd932fa1c921497fe3e6a968785
Log: Fixed bug #72943 (assign_dim on string doesn't reset hval)
 [2016-08-26 10:33 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2016-10-17 10:09 UTC] bwoebi@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=c67fa3c91d314fd932fa1c921497fe3e6a968785
Log: Fixed bug #72943 (assign_dim on string doesn't reset hval)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 15 09:01:26 2024 UTC