Skip to content

Zend API: Negative indices in HashTable #18872

Closed as not planned
Closed as not planned
@kakserpom

Description

@kakserpom

Description

zend_hash_index_add_new and zend_hash_index_update take zend_ulong h so I can't set a negative index from Zend API whereas [-1 => 1] works in PHP.

PHP Version

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions