Lines Matching refs:struc

81 PHPAPI void php_var_dump(zval *struc, int level) /* {{{ */  in php_var_dump()  argument
97 switch (Z_TYPE_P(struc)) { in php_var_dump()
108 php_printf("%sint(" ZEND_LONG_FMT ")\n", COMMON, Z_LVAL_P(struc)); in php_var_dump()
111 php_printf("%sfloat(%.*G)\n", COMMON, (int) EG(precision), Z_DVAL_P(struc)); in php_var_dump()
114 php_printf("%sstring(%zd) \"", COMMON, Z_STRLEN_P(struc)); in php_var_dump()
115 PHPWRITE(Z_STRVAL_P(struc), Z_STRLEN_P(struc)); in php_var_dump()
119 myht = Z_ARRVAL_P(struc); in php_var_dump()
147 if (Z_IS_RECURSIVE_P(struc)) { in php_var_dump()
151 Z_PROTECT_RECURSION_P(struc); in php_var_dump()
153 myht = Z_OBJDEBUG_P(struc, is_temp); in php_var_dump()
154 class_name = Z_OBJ_HANDLER_P(struc, get_class_name)(Z_OBJ_P(struc)); in php_var_dump()
155 …php_printf("%sobject(%s)#%d (%d) {\n", COMMON, ZSTR_VAL(class_name), Z_OBJ_HANDLE_P(struc), myht ?… in php_var_dump()
175 Z_UNPROTECT_RECURSION_P(struc); in php_var_dump()
178 const char *type_name = zend_rsrc_list_get_rsrc_type(Z_RES_P(struc)); in php_var_dump()
179 …php_printf("%sresource(%d) of type (%s)\n", COMMON, Z_RES_P(struc)->handle, type_name ? type_name … in php_var_dump()
184 if (Z_REFCOUNT_P(struc) > 1) { in php_var_dump()
187 struc = Z_REFVAL_P(struc); in php_var_dump()
253 PHPAPI void php_debug_zval_dump(zval *struc, int level) /* {{{ */ in php_debug_zval_dump() argument
269 switch (Z_TYPE_P(struc)) { in php_debug_zval_dump()
280 php_printf("%sint(" ZEND_LONG_FMT ")\n", COMMON, Z_LVAL_P(struc)); in php_debug_zval_dump()
283 php_printf("%sfloat(%.*G)\n", COMMON, (int) EG(precision), Z_DVAL_P(struc)); in php_debug_zval_dump()
286 php_printf("%sstring(%zd) \"", COMMON, Z_STRLEN_P(struc)); in php_debug_zval_dump()
287 PHPWRITE(Z_STRVAL_P(struc), Z_STRLEN_P(struc)); in php_debug_zval_dump()
288 php_printf("\" refcount(%u)\n", Z_REFCOUNTED_P(struc) ? Z_REFCOUNT_P(struc) : 1); in php_debug_zval_dump()
291 myht = Z_ARRVAL_P(struc); in php_debug_zval_dump()
303 …f("%sarray(%d) refcount(%u){\n", COMMON, count, Z_REFCOUNTED_P(struc) ? Z_REFCOUNT_P(struc) - 1 : … in php_debug_zval_dump()
323 myht = Z_OBJDEBUG_P(struc, is_temp); in php_debug_zval_dump()
331 class_name = Z_OBJ_HANDLER_P(struc, get_class_name)(Z_OBJ_P(struc)); in php_debug_zval_dump()
332 … COMMON, ZSTR_VAL(class_name), Z_OBJ_HANDLE_P(struc), myht ? zend_array_count(myht) : 0, Z_REFCOUN… in php_debug_zval_dump()
350 const char *type_name = zend_rsrc_list_get_rsrc_type(Z_RES_P(struc)); in php_debug_zval_dump()
351 …ype (%s) refcount(%u)\n", COMMON, Z_RES_P(struc)->handle, type_name ? type_name : "Unknown", Z_REF… in php_debug_zval_dump()
356 if (Z_REFCOUNT_P(struc) > 1) { in php_debug_zval_dump()
359 struc = Z_REFVAL_P(struc); in php_debug_zval_dump()
448 PHPAPI void php_var_export_ex(zval *struc, int level, smart_str *buf) /* {{{ */ in php_var_export_ex() argument
458 switch (Z_TYPE_P(struc)) { in php_var_export_ex()
471 if (Z_LVAL_P(struc) == ZEND_LONG_MIN) { in php_var_export_ex()
476 smart_str_append_long(buf, Z_LVAL_P(struc)); in php_var_export_ex()
479 php_gcvt(Z_DVAL_P(struc), (int)PG(serialize_precision), '.', 'E', tmp_str); in php_var_export_ex()
487 if (zend_finite(Z_DVAL_P(struc)) && NULL == strchr(tmp_str, '.')) { in php_var_export_ex()
492 ztmp = php_addcslashes(Z_STR_P(struc), "'\\", 2); in php_var_export_ex()
503 myht = Z_ARRVAL_P(struc); in php_var_export_ex()
533 myht = Z_OBJPROP_P(struc); in php_var_export_ex()
549 if (Z_OBJCE_P(struc) == zend_standard_class_def) { in php_var_export_ex()
552 smart_str_append(buf, Z_OBJCE_P(struc)->name); in php_var_export_ex()
565 if (Z_OBJCE_P(struc) == zend_standard_class_def) { in php_var_export_ex()
573 struc = Z_REFVAL_P(struc); in php_var_export_ex()
584 PHPAPI void php_var_export(zval *struc, int level) /* {{{ */ in php_var_export() argument
587 php_var_export_ex(struc, level, &buf); in php_var_export()
620 static void php_var_serialize_intern(smart_str *buf, zval *struc, php_serialize_data_t var_hash);
686 static inline zend_bool php_var_serialize_class_name(smart_str *buf, zval *struc) /* {{{ */ in php_var_serialize_class_name() argument
690 PHP_SET_CLASS_ATTRIBUTES(struc); in php_var_serialize_class_name()
701 static int php_var_serialize_call_sleep(zval *retval, zval *struc) /* {{{ */ in php_var_serialize_call_sleep() argument
708 res = call_user_function(CG(function_table), struc, &fname, retval, 0, 0); in php_var_serialize_call_sleep()
752 static void php_var_serialize_class(smart_str *buf, zval *struc, zval *retval_ptr, php_serialize_da… in php_var_serialize_class() argument
754 zend_class_entry *ce = Z_OBJCE_P(struc); in php_var_serialize_class()
759 php_var_serialize_class_name(buf, struc); in php_var_serialize_class()
766 propers = Z_OBJPROP_P(struc); in php_var_serialize_class()
835 static void php_var_serialize_intern(smart_str *buf, zval *struc, php_serialize_data_t var_hash) /*… in php_var_serialize_intern() argument
844 if (var_hash && (var_already = php_add_var_hash(var_hash, struc))) { in php_var_serialize_intern()
849 } else if (Z_ISREF_P(struc)) { in php_var_serialize_intern()
854 } else if (Z_TYPE_P(struc) == IS_OBJECT) { in php_var_serialize_intern()
863 switch (Z_TYPE_P(struc)) { in php_var_serialize_intern()
877 php_var_serialize_long(buf, Z_LVAL_P(struc)); in php_var_serialize_intern()
883 php_gcvt(Z_DVAL_P(struc), (int)PG(serialize_precision), '.', 'E', tmp_str); in php_var_serialize_intern()
890 php_var_serialize_string(buf, Z_STRVAL_P(struc), Z_STRLEN_P(struc)); in php_var_serialize_intern()
894 zend_class_entry *ce = Z_OBJCE_P(struc); in php_var_serialize_intern()
901 …if (ce->serialize(struc, &serialized_data, &serialized_length, (zend_serialize_data *)var_hash) ==… in php_var_serialize_intern()
903 smart_str_append_unsigned(buf, ZSTR_LEN(Z_OBJCE_P(struc)->name)); in php_var_serialize_intern()
905 smart_str_append(buf, Z_OBJCE_P(struc)->name); in php_var_serialize_intern()
915 (zend_ulong) (zend_uintptr_t) Z_COUNTED_P(struc)); in php_var_serialize_intern()
927 ZVAL_COPY(&tmp, struc); in php_var_serialize_intern()
950 if (Z_TYPE_P(struc) == IS_ARRAY) { in php_var_serialize_intern()
952 myht = Z_ARRVAL_P(struc); in php_var_serialize_intern()
955 incomplete_class = php_var_serialize_class_name(buf, struc); in php_var_serialize_intern()
956 myht = Z_OBJPROP_P(struc); in php_var_serialize_intern()
991 || UNEXPECTED(Z_TYPE_P(struc) == IS_ARRAY && Z_ARR_P(data) == Z_ARR_P(struc))) { in php_var_serialize_intern()
992 php_add_var_hash(var_hash, struc); in php_var_serialize_intern()
1012 struc = Z_REFVAL_P(struc); in php_var_serialize_intern()
1021 PHPAPI void php_var_serialize(smart_str *buf, zval *struc, php_serialize_data_t *data) /* {{{ */ in php_var_serialize() argument
1023 php_var_serialize_intern(buf, struc, *data); in php_var_serialize()
1061 zval *struc; in PHP_FUNCTION() local
1066 Z_PARAM_ZVAL(struc) in PHP_FUNCTION()
1070 php_var_serialize(&buf, struc, &var_hash); in PHP_FUNCTION()