Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Jan 22, 2024
1 parent 5c87947 commit b843fb9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions include/phpy.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ zend_class_entry *phpy_object_get_ce();
zend_class_entry *phpy_sequence_get_ce();
zend_class_entry *phpy_iter_get_ce();
zend_class_entry *phpy_dict_get_ce();
zend_class_entry *phpy_mapping_get_ce();

void phpy_object_ctor(zval *zobject, PyObject *object);
/**
Expand Down Expand Up @@ -232,7 +231,6 @@ void new_module(zval *zv, PyObject *pv);
void new_object(zval *zv, PyObject *pv);
void new_object(zval *zv, PyObject *pv, zend_class_entry *ce);
void new_dict(zval *zv, PyObject *pv);
void new_mapping(zval *zv, PyObject *pv);
void new_list(zval *zv, PyObject *pv);
void new_tuple(zval *zv, PyObject *pv);
void new_set(zval *zv, PyObject *pv);
Expand Down
2 changes: 1 addition & 1 deletion src/php/object.cc
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ int php_class_object_init(INIT_FUNC_ARGS) {
INIT_CLASS_ENTRY(ce, "PyObject", class_PyObject_methods);
PyObject_ce = zend_register_internal_class_ex(&ce, NULL);
PyObject_ce->ce_flags |= ZEND_ACC_NO_DYNAMIC_PROPERTIES | ZEND_ACC_NOT_SERIALIZABLE;
zend_class_implements(PyObject_ce, 3, zend_ce_iterator, zend_ce_arrayaccess, zend_ce_countable``);
zend_class_implements(PyObject_ce, 3, zend_ce_iterator, zend_ce_arrayaccess, zend_ce_countable);

PyObject_ce->create_object = phpy_object_create_object;

Expand Down

0 comments on commit b843fb9

Please sign in to comment.