Skip to content

zlib extension incorrectly handles object arguments #17745

Closed

Description

@YuanchengJiang

Description

The following code:

<?php
$doc = new DomDocument();
$doc->load(__DIR__ . DIRECTORY_SEPARATOR . 'bug69753ç§ã¯ã¬ã©ã¹ã飹ããã¾ã.xml');
$fusion = libxml_get_last_error();
deflate_init($error,$fusion);

Resulted in this output:

php: /home/phpfuzz/WorkSpace/flowfusion/php-src/Zend/zend_operators.c:965: zend_long zval_get_long_func(const zval *, _Bool): Assertion `0' failed.
Aborted (core dumped)

PHP Version

nightly

Operating System

No response

Activity

  1. devnexen commented on Feb 9, 2025

    @devnexen
    Member

    Could not reproduce it even creating the file. Does ithe xml have a different content than the bug69753.xml one ?

  2. ndossche commented on Feb 9, 2025

    @ndossche
    Member

    Reproduced on NTS, x86 gcc build on Linux

  3. self-assigned this
    on Feb 9, 2025
  4. changed the title [-]Assertion failure Zend/zend_operators.c:965: zend_long zval_get_long_func[/-] [+]zlib extension mishandles object arguments[/+] on Feb 9, 2025
  5. changed the title [-]zlib extension mishandles object arguments[/-] [+]zlib extension incorrectly handles object arguments[/+] on Feb 9, 2025
  6. added a commit that references this issue on Feb 9, 2025
  7. added a commit that references this issue on Feb 11, 2025
    4b5c29e
  8. added 2 commits that reference this issue on Feb 11, 2025
    0e0d2d2
    34e1c59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions