Skip to content

Assertion failure zend_API.c:501 #17088

@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
namespace test\ns1;
var_dump(str_replace("\0", '\0', $data));

Resulted in this output (JIT 1211):

/php-src/Zend/zend_API.c:501: _Bool zend_null_arg_deprecated(const char *, uint32_t): Assertion `func->common.fn_flags & (1 << 14)' failed.
Aborted (core dumped)

#16405

PHP Version

nightly

Operating System

ubuntu 22.04

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