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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Apr 19 22:01:28 2024 UTC