From b6ed045746d5bcc1f3f9bc0f1b835c8f4940bc3d Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Sat, 26 Aug 2023 01:36:05 +0200 Subject: [PATCH] `strrchr()`: `$before_needle` parameter Refs: php/php-src#11430 --- dictionaries/CallMap.php | 2 +- dictionaries/CallMap_83_delta.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dictionaries/CallMap.php b/dictionaries/CallMap.php index bbd5ab345..8c77bba52 100644 --- a/dictionaries/CallMap.php +++ b/dictionaries/CallMap.php @@ -12987,7 +12987,7 @@ return [ 'strpbrk' => ['string|false', 'string'=>'string', 'characters'=>'string'], 'strpos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int'], 'strptime' => ['array|false', 'timestamp'=>'string', 'format'=>'string'], -'strrchr' => ['string|false', 'haystack'=>'string', 'needle'=>'string'], +'strrchr' => ['string|false', 'haystack'=>'string', 'needle'=>'string', 'before_needle='=>'bool'], 'strrev' => ['string', 'string'=>'string'], 'strripos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int'], 'strrpos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int'], diff --git a/dictionaries/CallMap_83_delta.php b/dictionaries/CallMap_83_delta.php index 75266c16c..8a4a76077 100644 --- a/dictionaries/CallMap_83_delta.php +++ b/dictionaries/CallMap_83_delta.php @@ -113,6 +113,10 @@ return [ 'old' => ['?bool', 'text'=>'string'], 'new' => ['bool', 'text'=>'string'], ], + 'strrchr' => [ + 'old' => ['string|false', 'haystack'=>'string', 'needle'=>'string'], + 'new' => ['string|false', 'haystack'=>'string', 'needle'=>'string', 'before_needle='=>'bool'], + ], ], 'removed' => [