[php-src] Issue #18872: Zend API: Negative indices in HashTable

From: Date: Wed, 18 Jun 2025 07:29:47 +0000
Subject: [php-src] Issue #18872: Zend API: Negative indices in HashTable
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-250273@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/18872 Author: kakserpom ### Description [zend_hash_index_update](https://github.com/php/php-src/blob/master/Zend/zend_hash.h#L137) take zend_ulong h so I can't set a negative index from Zend API whereas [-1 => 1] works in PHP. ### PHP Version ```plain PHP 8.4.7 (cli) (built: May 6 2025 12:31:58) (ZTS) Copyright (c) The PHP Group Built by Shivam Mathur Zend Engine v4.4.7, Copyright (c) Zend Technologies with Zend OPcache v8.4.7, Copyright (c), by Zend Technologies ``` ### Operating System _No response_

« previous php.bugs (#250273) next »