Skip to content

Segmentation fault in zend observer #16811

Open
@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
function bar() {}
var_dump(ini_set("zend_test.observer.observe_function_names", "bar"));

Resulted in this output:

/php-src/Zend/zend_observer.c:184:53: runtime error: applying zero offset to null pointer

But I expected this output instead:

-d "zend_test.observer.enabled=1"

PHP Version

nightly

Operating System

ubuntu 22.04

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions