]> granicus.if.org Git - php/commitdiff
Add the ZEND_ACC_NO_DYNAMIC_PROPERTIES flag to Shmop
authorMáté Kocsis <kocsismate@woohoolabs.com>
Wed, 24 Jun 2020 12:55:49 +0000 (14:55 +0200)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Wed, 24 Jun 2020 12:56:06 +0000 (14:56 +0200)
ext/shmop/shmop.c

index c1e815eeb2e68f6c4d0a783e42674f6c14ae1695..97e4491766d5643db544cf6c1b1ba6d62f160829 100644 (file)
@@ -113,7 +113,7 @@ PHP_MINIT_FUNCTION(shmop)
        zend_class_entry ce;
        INIT_CLASS_ENTRY(ce, "Shmop", class_Shmop_methods);
        shmop_ce = zend_register_internal_class(&ce);
-       shmop_ce->ce_flags |= ZEND_ACC_FINAL;
+       shmop_ce->ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES;
        shmop_ce->create_object = shmop_create_object;
        shmop_ce->serialize = zend_class_serialize_deny;
        shmop_ce->unserialize = zend_class_unserialize_deny;