Bug #76367 [Opn->Csd]: NoRewindIterator segfault 11

From: Date: Wed, 23 May 2018 06:46:42 +0000
Subject: Bug #76367 [Opn->Csd]: NoRewindIterator segfault 11
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215334@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76367&edit=1 ID: 76367 Updated by: laruence@php.net Reported by: pyscht at gmail dot com Summary: NoRewindIterator segfault 11 -Status: Open +Status: Closed Type: Bug Package: SPL related Operating System: linux/macOS PHP Version: 7.2.5 Block user comment: N Private report: N New Comment: Automatic comment on behalf of laruence@gmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=8f221bdec0e1a81ef4471f926cf0b0f23724204c Log: Fixed bug #76367 (NoRewindIterator segfault 11) Previous Comments: ------------------------------------------------------------------------ [2018-05-22 17:21:05] pyscht at gmail dot com Description: ------------ Segmentation fault when trying to get the current from an invalid iterator Test script: --------------- $arr = [1,3,55,66,43,6]; $iter = new NoRewindIterator(new ArrayIterator($arr)); while($iter->valid()) { $iter->next(); } var_dump($iter->current()); //Segmentation fault: 11 here! Actual result: -------------- Segmentation fault: 11 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76367&edit=1

« previous php.bugs (#215334) next »