Lines Matching refs:offset

317 …*spl_fixedarray_object_read_dimension_helper(spl_fixedarray_object *intern, zval *offset) /* {{{ */  in spl_fixedarray_object_read_dimension_helper()  argument
323 if (!offset) { in spl_fixedarray_object_read_dimension_helper()
328 if (Z_TYPE_P(offset) != IS_LONG) { in spl_fixedarray_object_read_dimension_helper()
329 index = spl_offset_convert_to_long(offset); in spl_fixedarray_object_read_dimension_helper()
331 index = Z_LVAL_P(offset); in spl_fixedarray_object_read_dimension_helper()
345 static int spl_fixedarray_object_has_dimension(zval *object, zval *offset, int check_empty);
347 static zval *spl_fixedarray_object_read_dimension(zval *object, zval *offset, int type, zval *rv) /… in spl_fixedarray_object_read_dimension() argument
353 if (type == BP_VAR_IS && !spl_fixedarray_object_has_dimension(object, offset, 0)) { in spl_fixedarray_object_read_dimension()
359 if (!offset) { in spl_fixedarray_object_read_dimension()
361 offset = &tmp; in spl_fixedarray_object_read_dimension()
363 SEPARATE_ARG_IF_REF(offset); in spl_fixedarray_object_read_dimension()
365 …ll_method_with_1_params(object, intern->std.ce, &intern->fptr_offset_get, "offsetGet", rv, offset); in spl_fixedarray_object_read_dimension()
366 zval_ptr_dtor(offset); in spl_fixedarray_object_read_dimension()
373 return spl_fixedarray_object_read_dimension_helper(intern, offset); in spl_fixedarray_object_read_dimension()
377 …array_object_write_dimension_helper(spl_fixedarray_object *intern, zval *offset, zval *value) /* {… in spl_fixedarray_object_write_dimension_helper() argument
381 if (!offset) { in spl_fixedarray_object_write_dimension_helper()
387 if (Z_TYPE_P(offset) != IS_LONG) { in spl_fixedarray_object_write_dimension_helper()
388 index = spl_offset_convert_to_long(offset); in spl_fixedarray_object_write_dimension_helper()
390 index = Z_LVAL_P(offset); in spl_fixedarray_object_write_dimension_helper()
407 static void spl_fixedarray_object_write_dimension(zval *object, zval *offset, zval *value) /* {{{ */ in spl_fixedarray_object_write_dimension() argument
415 if (!offset) { in spl_fixedarray_object_write_dimension()
417 offset = &tmp; in spl_fixedarray_object_write_dimension()
419 SEPARATE_ARG_IF_REF(offset); in spl_fixedarray_object_write_dimension()
422 …_with_2_params(object, intern->std.ce, &intern->fptr_offset_set, "offsetSet", NULL, offset, value); in spl_fixedarray_object_write_dimension()
424 zval_ptr_dtor(offset); in spl_fixedarray_object_write_dimension()
428 spl_fixedarray_object_write_dimension_helper(intern, offset, value); in spl_fixedarray_object_write_dimension()
432 …spl_fixedarray_object_unset_dimension_helper(spl_fixedarray_object *intern, zval *offset) /* {{{ */ in spl_fixedarray_object_unset_dimension_helper() argument
436 if (Z_TYPE_P(offset) != IS_LONG) { in spl_fixedarray_object_unset_dimension_helper()
437 index = spl_offset_convert_to_long(offset); in spl_fixedarray_object_unset_dimension_helper()
439 index = Z_LVAL_P(offset); in spl_fixedarray_object_unset_dimension_helper()
452 static void spl_fixedarray_object_unset_dimension(zval *object, zval *offset) /* {{{ */ in spl_fixedarray_object_unset_dimension() argument
459 SEPARATE_ARG_IF_REF(offset); in spl_fixedarray_object_unset_dimension()
460 …ethod_with_1_params(object, intern->std.ce, &intern->fptr_offset_del, "offsetUnset", NULL, offset); in spl_fixedarray_object_unset_dimension()
461 zval_ptr_dtor(offset); in spl_fixedarray_object_unset_dimension()
465 spl_fixedarray_object_unset_dimension_helper(intern, offset); in spl_fixedarray_object_unset_dimension()
470 …edarray_object_has_dimension_helper(spl_fixedarray_object *intern, zval *offset, int check_empty) … in spl_fixedarray_object_has_dimension_helper() argument
475 if (Z_TYPE_P(offset) != IS_LONG) { in spl_fixedarray_object_has_dimension_helper()
476 index = spl_offset_convert_to_long(offset); in spl_fixedarray_object_has_dimension_helper()
478 index = Z_LVAL_P(offset); in spl_fixedarray_object_has_dimension_helper()
501 static int spl_fixedarray_object_has_dimension(zval *object, zval *offset, int check_empty) /* {{{ … in spl_fixedarray_object_has_dimension() argument
511 SEPARATE_ARG_IF_REF(offset); in spl_fixedarray_object_has_dimension()
512 …ethod_with_1_params(object, intern->std.ce, &intern->fptr_offset_has, "offsetExists", &rv, offset); in spl_fixedarray_object_has_dimension()
513 zval_ptr_dtor(offset); in spl_fixedarray_object_has_dimension()
519 return spl_fixedarray_object_has_dimension_helper(intern, offset, check_empty); in spl_fixedarray_object_has_dimension()
1071 spl_handler_SplFixedArray.offset = XtOffsetOf(spl_fixedarray_object, std); in PHP_MINIT_FUNCTION()