Lines Matching refs:offset

1393 	zend_long offset;  in zend_check_string_offset()  local
1422 offset = zval_get_long_func(dim); in zend_check_string_offset()
1424 offset = Z_LVAL_P(dim); in zend_check_string_offset()
1427 return offset; in zend_check_string_offset()
1562 zend_long offset; in zend_assign_to_string_offset() local
1564 offset = zend_check_string_offset(dim, BP_VAR_W EXECUTE_DATA_CC); in zend_assign_to_string_offset()
1571 if (offset < -(zend_long)Z_STRLEN_P(str)) { in zend_assign_to_string_offset()
1573 zend_error(E_WARNING, "Illegal string offset: " ZEND_LONG_FMT, offset); in zend_assign_to_string_offset()
1607 if (offset < 0) { /* Handle negative offset */ in zend_assign_to_string_offset()
1608 offset += (zend_long)Z_STRLEN_P(str); in zend_assign_to_string_offset()
1611 if ((size_t)offset >= Z_STRLEN_P(str)) { in zend_assign_to_string_offset()
1614 ZVAL_NEW_STR(str, zend_string_extend(Z_STR_P(str), offset + 1, 0)); in zend_assign_to_string_offset()
1615 memset(Z_STRVAL_P(str) + old_len, ' ', offset - old_len); in zend_assign_to_string_offset()
1616 Z_STRVAL_P(str)[offset+1] = 0; in zend_assign_to_string_offset()
1626 Z_STRVAL_P(str)[offset] = c; in zend_assign_to_string_offset()
1975 …atic zend_never_inline ZEND_COLD void ZEND_FASTCALL zend_undefined_index(const zend_string *offset) in zend_undefined_index() argument
1977 zend_error(E_NOTICE, "Undefined index: %s", ZSTR_VAL(offset)); in zend_undefined_index()
2000 HashTable *ht, zend_string *offset) in zend_undefined_index_write() argument
2007 zend_undefined_index(offset); in zend_undefined_index_write()
2405 zend_long offset; in zend_fetch_dimension_address_read() local
2439 offset = zval_get_long_func(dim); in zend_fetch_dimension_address_read()
2441 offset = Z_LVAL_P(dim); in zend_fetch_dimension_address_read()
2444 if (UNEXPECTED(Z_STRLEN_P(container) < ((offset < 0) ? -(size_t)offset : ((size_t)offset + 1)))) { in zend_fetch_dimension_address_read()
2446 zend_error(E_NOTICE, "Uninitialized string offset: " ZEND_LONG_FMT, offset); in zend_fetch_dimension_address_read()
2455 real_offset = (UNEXPECTED(offset < 0)) /* Handle negative offset */ in zend_fetch_dimension_address_read()
2456 ? (zend_long)Z_STRLEN_P(container) + offset : offset; in zend_fetch_dimension_address_read()
2524 static zend_never_inline zval* ZEND_FASTCALL zend_find_array_dim_slow(HashTable *ht, zval *offset E… in zend_find_array_dim_slow()
2528 if (Z_TYPE_P(offset) == IS_DOUBLE) { in zend_find_array_dim_slow()
2529 hval = zend_dval_to_lval(Z_DVAL_P(offset)); in zend_find_array_dim_slow()
2532 } else if (Z_TYPE_P(offset) == IS_NULL) { in zend_find_array_dim_slow()
2535 } else if (Z_TYPE_P(offset) == IS_FALSE) { in zend_find_array_dim_slow()
2538 } else if (Z_TYPE_P(offset) == IS_TRUE) { in zend_find_array_dim_slow()
2541 } else if (Z_TYPE_P(offset) == IS_RESOURCE) { in zend_find_array_dim_slow()
2542 hval = Z_RES_HANDLE_P(offset); in zend_find_array_dim_slow()
2544 } else if (/*OP2_TYPE == IS_CV &&*/ Z_TYPE_P(offset) == IS_UNDEF) { in zend_find_array_dim_slow()
2553 static zend_never_inline int ZEND_FASTCALL zend_isset_dim_slow(zval *container, zval *offset EXECUT… in zend_isset_dim_slow()
2555 if (/*OP2_TYPE == IS_CV &&*/ UNEXPECTED(Z_TYPE_P(offset) == IS_UNDEF)) { in zend_isset_dim_slow()
2556 offset = ZVAL_UNDEFINED_OP2(); in zend_isset_dim_slow()
2560 return Z_OBJ_HT_P(container)->has_dimension(container, offset, 0); in zend_isset_dim_slow()
2564 if (EXPECTED(Z_TYPE_P(offset) == IS_LONG)) { in zend_isset_dim_slow()
2565 lval = Z_LVAL_P(offset); in zend_isset_dim_slow()
2577 ZVAL_DEREF(offset); in zend_isset_dim_slow()
2579 if (Z_TYPE_P(offset) < IS_STRING /* simple scalar types */ in zend_isset_dim_slow()
2580 || (Z_TYPE_P(offset) == IS_STRING /* or numeric string */ in zend_isset_dim_slow()
2581 && IS_LONG == is_numeric_string(Z_STRVAL_P(offset), Z_STRLEN_P(offset), NULL, NULL, 0))) { in zend_isset_dim_slow()
2582 lval = zval_get_long(offset); in zend_isset_dim_slow()
2592 static zend_never_inline int ZEND_FASTCALL zend_isempty_dim_slow(zval *container, zval *offset EXEC… in zend_isempty_dim_slow()
2594 if (/*OP2_TYPE == IS_CV &&*/ UNEXPECTED(Z_TYPE_P(offset) == IS_UNDEF)) { in zend_isempty_dim_slow()
2595 offset = ZVAL_UNDEFINED_OP2(); in zend_isempty_dim_slow()
2599 return !Z_OBJ_HT_P(container)->has_dimension(container, offset, 1); in zend_isempty_dim_slow()
2603 if (EXPECTED(Z_TYPE_P(offset) == IS_LONG)) { in zend_isempty_dim_slow()
2604 lval = Z_LVAL_P(offset); in zend_isempty_dim_slow()
2616 ZVAL_DEREF(offset); in zend_isempty_dim_slow()
2618 if (Z_TYPE_P(offset) < IS_STRING /* simple scalar types */ in zend_isempty_dim_slow()
2619 || (Z_TYPE_P(offset) == IS_STRING /* or numeric string */ in zend_isempty_dim_slow()
2620 && IS_LONG == is_numeric_string(Z_STRVAL_P(offset), Z_STRLEN_P(offset), NULL, NULL, 0))) { in zend_isempty_dim_slow()
2621 lval = zval_get_long(offset); in zend_isempty_dim_slow()
4594 #define ZEND_VM_SET_RELATIVE_OPCODE(opline, offset) \ argument
4595 ZEND_VM_SET_OPCODE(ZEND_OFFSET_TO_OPLINE(opline, offset))