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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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 Dec 03 17:01:29 2024 UTC