Skip to content

Assertion error in shm_put_var #16591

Closed
Closed
@chibinz

Description

@chibinz

Description

The following code:

<?php


class C {
    function __serialize() {
        global $mem;
        shm_detach($mem);
    }
}

$mem = shm_attach(1);
shm_put_var($mem, 1, new C);

Resulted in this output:

php: /tmp/php-asan/ext/sysvshm/sysvshm.c:398: zend_long php_check_shm_data(sysvshm_chunk_head *, zend_long): Assertion `ptr' failed.

PHP Version

PHP 8.5.0-dev

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