[php-src] PR #25369: Fix the argument named by the imageaffine() element TypeError

From: Date: Tue, 10 Nov 2026 13:35:31 +0000
Subject: [php-src] PR #25369: Fix the argument named by the imageaffine() element TypeError
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40508@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25369 Author: lacatoire imageaffine() names the wrong argument when an element of $affine has an unsupported type: the error blames $clip, but the matrix is the $affine argument. ### To reproduce ```php <?php try { imageaffine(imagecreatetruecolor(20, 20), [1, 0, null, 1, 0, 0]); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), "\n"; } ``` Before (8.4.26 and 8.5.12): ``` TypeError: imageaffine(): Argument #3 ($clip) contains invalid type for element 2 ``` After: ``` TypeError: imageaffine(): Argument #2 ($affine) contains invalid type for element 2 ```

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