Skip to content

Commit efb8c74

Browse files
committed
Setup handlers
1 parent 2c21995 commit efb8c74

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

src/BSON/PackedArray.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,8 @@ void php_phongo_packedarray_unset_dimension(zend_object* object, zval* offset)
566566
phongo_throw_exception(PHONGO_ERROR_LOGIC, "Cannot unset %s offset", ZSTR_VAL(php_phongo_packedarray_ce->name));
567567
}
568568

569+
PHONGO_GET_PROPERTY_HANDLERS(packedarray, Z_OBJ_PACKEDARRAY);
570+
569571
void php_phongo_packedarray_init_ce(INIT_FUNC_ARGS)
570572
{
571573
php_phongo_packedarray_ce = register_class_MongoDB_BSON_PackedArray(zend_ce_aggregate, zend_ce_arrayaccess, php_phongo_type_ce, zend_ce_stringable);
@@ -576,6 +578,11 @@ void php_phongo_packedarray_init_ce(INIT_FUNC_ARGS)
576578
php_phongo_handler_packedarray.clone_obj = php_phongo_packedarray_clone_object;
577579
php_phongo_handler_packedarray.get_debug_info = php_phongo_packedarray_get_debug_info;
578580
php_phongo_handler_packedarray.get_properties = php_phongo_packedarray_get_properties;
581+
php_phongo_handler_packedarray.read_property = php_phongo_packedarray_read_property;
582+
php_phongo_handler_packedarray.write_property = php_phongo_packedarray_write_property;
583+
php_phongo_handler_packedarray.has_property = php_phongo_packedarray_has_property;
584+
php_phongo_handler_packedarray.unset_property = php_phongo_packedarray_unset_property;
585+
php_phongo_handler_packedarray.get_property_ptr_ptr = php_phongo_packedarray_get_property_ptr_ptr;
579586
php_phongo_handler_packedarray.free_obj = php_phongo_packedarray_free_object;
580587
php_phongo_handler_packedarray.read_dimension = php_phongo_packedarray_read_dimension;
581588
php_phongo_handler_packedarray.write_dimension = php_phongo_packedarray_write_dimension;

src/BSON/UTCDateTime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ static HashTable* php_phongo_utcdatetime_get_properties(zend_object* object)
365365
return php_phongo_utcdatetime_get_properties_hash(object, false);
366366
}
367367

368-
PHONGO_GET_PROPERTY_HANDLERS(utc_datetime, Z_OBJ_UTCDATETIME);
368+
PHONGO_GET_PROPERTY_HANDLERS(utcdatetime, Z_OBJ_UTCDATETIME);
369369

370370
void php_phongo_utcdatetime_init_ce(INIT_FUNC_ARGS)
371371
{

src/MongoDB/ReadConcern.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ static HashTable* php_phongo_readconcern_get_properties(zend_object* object)
218218
return php_phongo_readconcern_get_properties_hash(object, false);
219219
}
220220

221-
PHONGO_GET_PROPERTY_HANDLERS(read_concern, Z_OBJ_READCONCERN);
221+
PHONGO_GET_PROPERTY_HANDLERS(readconcern, Z_OBJ_READCONCERN);
222222

223223
void php_phongo_readconcern_init_ce(INIT_FUNC_ARGS)
224224
{

0 commit comments

Comments
 (0)