[php-src] PR #21266: ext/standard: Add is_assoc_array() to detect associative arrays
| From: | arshidkv12 | Date: | Sat, 21 Feb 2026 02:19:08 +0000 |
| Subject: | [php-src] PR #21266: ext/standard: Add is_assoc_array() to detect associative arrays | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34968@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21266
Author: arshidkv12
Introduce a new core function is_assoc_array() that determines whether
an array is associative based on internal storage. The implementation
uses HT_IS_PACKED for fast O(1) detection.
Packed arrays are treated as non-associative, while hash-based arrays
are considered associative.