Edit report at https://bugs.php.net/bug.php?id=69846&edit=1
ID: 69846
Updated by: ab@php.net
Reported by: jan dot slabon at setasign dot com
Summary: Segmenation fault (access violation) when iterating
over DOMNodeList
-Status: Assigned
+Status: Closed
Type: Bug
Package: Reproducible crash
Operating System: Windows 7 Pro (x64)
PHP Version: 7.0.0alpha1
Assigned To: ab
Block user comment: N
Private report: N
New Comment:
Thanks for the quick feedback.
Yep, the correct out in that snippet is "1112", so three iterations. That means this
ticket is through with both the crash and the reassignment in foreach, the behavior should be the
same as in PHP5.
Cheers.
Previous Comments:
------------------------------------------------------------------------
[2015-06-19 10:36:07] jan dot slabon at setasign dot com
Looks good with http://windows.php.net/downloads/snaps/master/rd079a1c/php-master-nts-windows-vc14-x86-rd079a1c.zip
now!
Also this one seems to be fixed: http://3v4l.org/MNakn
Anyhow I encounter several other failed unit tests now (nearly all related to DOM). I am going to
investigate further to see what's the problem now. The one I send you went through now...
Thanks Anatol!
------------------------------------------------------------------------
[2015-06-19 09:57:54] ab@php.net
Ups, it wasn't supposed to close the ticket.
Jan, could you please check yet again? http://windows.php.net/downloads/snaps/master/rd079a1c/
. It's still building and we miss x64 yet, but x86 should be sufficient, too. I can also
produce a handmade snapshot if you wish.
Thanks.
------------------------------------------------------------------------
[2015-06-19 09:24:44] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d079a1c9ea16ff2c5f40f82bd558355f78f103cf
Log: better approach to fix bug #69846
------------------------------------------------------------------------
[2015-06-19 06:24:52] jan dot slabon at setasign dot com
Hi Anatol,
Thanks! But the test case I send you still ends in a segmentation fault.
Cheers,
Jan
------------------------------------------------------------------------
[2015-06-19 04:59:04] ab@php.net
Jan,
I was able to issue a partial fix, the crash should be gone now. Please check any snapshot starting
with http://windows.php.net/downloads/snaps/master/rbb4454b/
. I think the case with reassigning in the loop should become a separate ticket. But please check
first.
Thanks
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=69846
--
Edit this bug report at https://bugs.php.net/bug.php?id=69846&edit=1