[php-src] PR #16693: Prevent unexpected array entry conversion when reading key

From: Date: Sun, 03 Nov 2024 21:02:37 +0000
Subject: [php-src] PR #16693: Prevent unexpected array entry conversion when reading key
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-29498@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/16693 Author: nielsdos When passing an array, the key entry can get converted to a string if it is an object, but this actually modifies the original array entry. The test originally outputted: ``` array(2) { [0]=> string(...) => ... [1]=> string(0) "" } ``` This is unexpected. Use zval_try_get_string() to prevent this behaviour. Perhaps it's best to only apply this to master?

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