[php-src] Issue #7734: IntlPartsIterator key is wrong for KEY_LEFT/KEY_RIGHT

From: Date: Tue, 07 Dec 2021 21:51:37 +0000
Subject: [php-src] Issue #7734: IntlPartsIterator key is wrong for KEY_LEFT/KEY_RIGHT
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-238271@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7734 Author: TRowbotham ### Description When creating an IntlPartsIterator with a type of IntlPartsIterator::KEY_LEFT or IntlPartsIterator::KEY_RIGHT, the returned key value is off by one after the first key. So for the string "ABC" you would get 0, 2, 3, instead of the expected 0, 1, 2. https://3v4l.org/O8374 https://3v4l.org/SNUAX Originally filed as https://bugs.php.net/bug.php?id=78308 Initial fix attempt https://github.com/php/php-src/pull/4446 ### PHP Version 8.1.0 ### Operating System _No response_

« previous php.bugs (#238271) next »