[php-src] PR #22331: ext/intl: Fix argument positions in transliterator_transliterate()

From: Date: Tue, 16 Jun 2026 09:52:10 +0000
Subject: [php-src] PR #22331: ext/intl: Fix argument positions in transliterator_transliterate()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36456@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22331 Author: LamentXU123 A missed-case for #22044 ```php <?php $tr = Transliterator::create('latin'); try { transliterator_transliterate($tr, 'abc', 2, 1); } catch (ValueError $e) { echo $e->getMessage(), "\n"; } ``` returns ``` transliterator_transliterate(): Argument #2 ($string) must be less than or equal to argument #3 ($end) ``` but I expect ``` transliterator_transliterate(): Argument #3 ($start) must be less than or equal to argument #4 ($end) ``` [reproduce here](https://onlinephp.io?s=VYy9CsJAEIT7QN5hCIG7wFloGf8qSzuxEmQ9llzguITNWoj47uawUKeaGWa-zX4MY1kAtQq2OAmlKfbKQjpI23phUrYmkvbJNOuyyFuVB57ZZOnf5fob2c5UB0M3bxxWDstMAF7wpD7Anine-SAyCGpuvkz2YZibxa5jPfI0Uce2caguqfoA3g%2C%2C&v=8.4.21) Now I think there won't be similar cases in the code base after this fix.

« previous php.git-pulls (#36456) next »