/php-src/ext/standard/ |
H A D | image.c | 77 if (php_stream_read(stream, (char*)dim, sizeof(dim)) != sizeof(dim)) in php_handle_gif() 99 if (php_stream_read(stream, (char*)dim, sizeof(dim)) != sizeof(dim)) in php_handle_psd() 103 …ight = (((unsigned int)dim[0]) << 24) + (((unsigned int)dim[1]) << 16) + (((unsigned int)dim[2]… in php_handle_psd() 104 …dth = (((unsigned int)dim[4]) << 24) + (((unsigned int)dim[5]) << 16) + (((unsigned int)dim[6]… in php_handle_psd() 120 if (php_stream_read(stream, (char*)dim, sizeof(dim)) != sizeof(dim)) in php_handle_bmp() 123 …ize = (((unsigned int)dim[ 3]) << 24) + (((unsigned int)dim[ 2]) << 16) + (((unsigned int)dim[ 1… in php_handle_bmp() 131 …h = (((unsigned int)dim[ 7]) << 24) + (((unsigned int)dim[ 6]) << 16) + (((unsigned int)dim[ 5… in php_handle_bmp() 284 if((php_stream_read(stream, (char*)dim, sizeof(dim))) < sizeof(dim)) in php_handle_png() 288 …>width = (((unsigned int)dim[0]) << 24) + (((unsigned int)dim[1]) << 16) + (((unsigned int)dim[2]… in php_handle_png() 289 …>height = (((unsigned int)dim[4]) << 24) + (((unsigned int)dim[5]) << 16) + (((unsigned int)dim[6]… in php_handle_png() [all …]
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit_helpers.c | 384 dim = Z_REFVAL_P(dim); in zend_jit_fetch_dim_r_helper() 526 dim = Z_REFVAL_P(dim); in zend_jit_fetch_dim_is_helper() 666 dim = Z_REFVAL_P(dim); in zend_jit_fetch_dim_isset_helper() 772 dim = Z_REFVAL_P(dim); in zend_jit_fetch_dim_rw_helper() 904 dim = Z_REFVAL_P(dim); in zend_jit_fetch_dim_w_helper() 1061 dim = Z_REFVAL_P(dim); in zend_check_string_offset() 1139 dim = Z_REFVAL_P(dim); in zend_jit_fetch_dim_str_is_helper() 1383 if (dim && UNEXPECTED(Z_ISUNDEF_P(dim))) { in zend_jit_fetch_dim_obj_helper() 1488 if (dim && UNEXPECTED(Z_TYPE_P(dim) == IS_UNDEF)) { in zend_jit_assign_dim_helper() 1561 if (dim && UNEXPECTED(Z_TYPE_P(dim) == IS_UNDEF)) { in zend_jit_assign_dim_helper() [all …]
|
H A D | zend_jit_vm_helpers.c | 201 zval *dim; in zend_jit_undefined_long_key() local 204 dim = RT_CONSTANT(opline, opline->op2); in zend_jit_undefined_long_key() 206 dim = EX_VAR(opline->op2.var); in zend_jit_undefined_long_key() 208 ZEND_ASSERT(Z_TYPE_P(dim) == IS_LONG); in zend_jit_undefined_long_key() 217 zval *dim; in zend_jit_undefined_string_key() local 221 dim = RT_CONSTANT(opline, opline->op2); in zend_jit_undefined_string_key() 223 dim = EX_VAR(opline->op2.var); in zend_jit_undefined_string_key() 791 zval *arr, *dim, *val; local 797 dim = EX_VAR(opline->op2.var); 800 if (Z_TYPE_P(dim) == IS_LONG || Z_TYPE_P(dim) == IS_STRING) { [all …]
|
/php-src/ext/standard/tests/strings/ |
H A D | parse_str_basic3.phpt | 50 echo "\nTest string with 2-dim array with numeric keys\n"; 55 echo "\nTest string with 2-dim array with null keys\n"; 60 echo "\nTest string with 2-dim array with non-numeric keys\n"; 65 echo "\nTest string with 3-dim array with numeric keys\n"; 162 Test string with 2-dim array with numeric keys 177 Test string with 2-dim array with null keys 195 Test string with 2-dim array with non-numeric keys 213 Test string with 3-dim array with numeric keys
|
/php-src/Zend/ |
H A D | zend_execute.c | 1645 switch(Z_TYPE_P(dim)) { in zend_check_string_offset() 1647 return Z_LVAL_P(dim); in zend_check_string_offset() 1672 dim = Z_REFVAL_P(dim); in zend_check_string_offset() 2305 Z_RES_HANDLE_P(dim), Z_RES_HANDLE_P(dim)); in zend_use_resource_as_offset() 2485 hval = Z_LVAL_P(dim); in zend_fetch_dimension_address_inner() 2534 dim = Z_REFVAL_P(dim); in zend_fetch_dimension_address_inner() 2587 if (dim == NULL) { in zend_fetch_dimension_address() 2626 if (dim == NULL) { in zend_fetch_dimension_address() 2639 dim++; in zend_fetch_dimension_address() 2806 dim = Z_REFVAL_P(dim); in zend_fetch_dimension_address_read() [all …]
|
H A D | zend_vm_execute.h | 6459 dim++; in ZEND_FETCH_DIM_R_SPEC_CONST_CONST_HANDLER() 8822 dim++; in ZEND_FETCH_DIM_R_INDEX_SPEC_CONST_TMPVARCV_HANDLER() 8979 dim++; in ZEND_FETCH_DIM_R_SPEC_CONST_TMPVAR_HANDLER() 11366 dim++; in ZEND_FETCH_DIM_R_SPEC_CONST_CV_HANDLER() 15767 dim++; in ZEND_FETCH_DIM_R_SPEC_TMPVAR_CONST_HANDLER() 16638 dim++; in ZEND_FETCH_DIM_R_INDEX_SPEC_TMPVAR_CONST_HANDLER() 16693 dim++; in ZEND_FETCH_DIM_R_INDEX_SPEC_TMPVAR_TMPVARCV_HANDLER() 17212 dim++; in ZEND_FETCH_DIM_R_SPEC_TMPVAR_TMPVAR_HANDLER() 18572 dim++; in ZEND_FETCH_DIM_R_SPEC_TMPVAR_CV_HANDLER() 44676 dim++; in ZEND_FETCH_DIM_R_INDEX_SPEC_CV_CONST_HANDLER() [all …]
|
H A D | zend_vm_def.h | 1155 zval *value, *container, *dim; variable 1215 dim++; 1905 zval *container, *dim, *value; variable 1925 dim++; 2365 zval *container, *dim; variable 2561 zval *dim; variable 2639 dim = ZVAL_UNDEFINED_OP2(); 2641 dim++; 10050 zval *container, *dim, *value; variable 10059 offset = Z_LVAL_P(dim); [all …]
|
H A D | zend_execute.h | 67 ZEND_API ZEND_COLD void ZEND_FASTCALL zend_use_resource_as_offset(const zval *dim); 407 ZEND_API void zend_fetch_dimension_const(zval *result, zval *container, zval *dim, int type);
|
H A D | zend_compile.c | 11075 zval *container, *dim; in zend_eval_const_expr() local 11098 dim = zend_ast_get_zval(ast->child[1]); in zend_eval_const_expr() 11102 if (Z_TYPE_P(dim) == IS_LONG) { in zend_eval_const_expr() 11103 el = zend_hash_index_find(Z_ARR_P(container), Z_LVAL_P(dim)); in zend_eval_const_expr() 11109 } else if (Z_TYPE_P(dim) == IS_STRING) { in zend_eval_const_expr() 11110 el = zend_symtable_find(Z_ARR_P(container), Z_STR_P(dim)); in zend_eval_const_expr() 11122 if (Z_TYPE_P(dim) == IS_LONG) { in zend_eval_const_expr() 11123 offset = Z_LVAL_P(dim); in zend_eval_const_expr() 11124 …} else if (Z_TYPE_P(dim) != IS_STRING || is_numeric_string(Z_STRVAL_P(dim), Z_STRLEN_P(dim), &offs… in zend_eval_const_expr()
|
/php-src/Zend/tests/ |
H A D | assign_dim_ref_free.phpt | 2 Assigning rc=1 reference to next dim
|
H A D | assign_dim_obj_null_return.phpt | 2 Various null return conditions of dim/obj assignments
|
/php-src/Zend/tests/gh10168/ |
H A D | assign_dim.phpt | 2 GH-10168: Assign dim
|
H A D | assign_dim_ref.phpt | 2 GH-10168: Assign dim ref
|
H A D | assign_dim_with_prop_ref.phpt | 2 GH-10168: Assign dim with prop ref
|
H A D | assign_dim_ref_with_prop_ref.phpt | 2 GH-10168: Assign dim ref with prop ref
|
/php-src/Zend/tests/nullsafe_operator/ |
H A D | 034.phpt | 2 Test nullsafe operator on delayed dim
|
/php-src/sapi/phpdbg/tests/ |
H A D | match_breakpoints_003.phpt | 2 Test match default breakpoint with dim assignment
|
/php-src/ext/opcache/tests/jit/ |
H A D | assign_dim_undef_exception.phpt | 2 Undef to exception for assign dim offset
|
/php-src/ext/ffi/ |
H A D | ffi.c | 1374 zend_long dim = zval_get_long(offset); in zend_ffi_cdata_read_dim() local 1380 if (UNEXPECTED((zend_ulong)(dim) >= (zend_ulong)type->array.length) in zend_ffi_cdata_read_dim() 1381 && (UNEXPECTED(dim < 0) || UNEXPECTED(type->array.length != 0))) { in zend_ffi_cdata_read_dim() 1402 ptr = (void*)(((char*)cdata->ptr) + dim_type->size * dim); in zend_ffi_cdata_read_dim() 1417 ptr = (void*)((*(char**)cdata->ptr) + dim_type->size * dim); in zend_ffi_cdata_read_dim() 1432 zend_long dim; in zend_ffi_cdata_write_dim() local 1441 dim = zval_get_long(offset); in zend_ffi_cdata_write_dim() 1443 if (UNEXPECTED((zend_ulong)(dim) >= (zend_ulong)type->array.length) in zend_ffi_cdata_write_dim() 1444 && (UNEXPECTED(dim < 0) || UNEXPECTED(type->array.length != 0))) { in zend_ffi_cdata_write_dim() 1457 ptr = (void*)(((char*)cdata->ptr) + type->size * dim); in zend_ffi_cdata_write_dim() [all …]
|
/php-src/ext/fileinfo/tests/ |
H A D | magic私はガラスを食べられます | 29717 >>0 use nifti1-dim-le 29726 >>0 use \^nifti1-dim-le 29741 >>0 use nifti2-dim-le 29750 >>0 use \^nifti2-dim-le 29785 0 name nifti1-dim-le 29787 >40 leshort <0 \b, INVALID dim[0]=%d 29788 >40 leshort >7 \b, INVALID dim[0]=%d 29815 0 name nifti2-dim-le 29817 >16 lequad <0 \b, INVALID dim[0]=%lld 29818 >16 lequad >7 \b, INVALID dim[0]=%lld
|
H A D | magic | 29717 >>0 use nifti1-dim-le 29726 >>0 use \^nifti1-dim-le 29741 >>0 use nifti2-dim-le 29750 >>0 use \^nifti2-dim-le 29785 0 name nifti1-dim-le 29787 >40 leshort <0 \b, INVALID dim[0]=%d 29788 >40 leshort >7 \b, INVALID dim[0]=%d 29815 0 name nifti2-dim-le 29817 >16 lequad <0 \b, INVALID dim[0]=%lld 29818 >16 lequad >7 \b, INVALID dim[0]=%lld
|