php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_var.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Copyright (c) The PHP Group |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.01 of the PHP license, |
6 | that is bundled with this package in the file LICENSE, and is |
7 | available through the world-wide-web at the following url: |
8 | https://www.php.net/license/3_01.txt |
9 | If you did not receive a copy of the PHP license and are unable to |
10 | obtain it through the world-wide-web, please send a note to |
11 | license@php.net so we can mail you a copy immediately. |
12 +----------------------------------------------------------------------+
13 | Author: Jani Lehtimäki <jkl@njet.net> |
14 +----------------------------------------------------------------------+
15*/
16
17#ifndef PHP_VAR_H
18#define PHP_VAR_H
19
22
24
25PHPAPI void php_var_dump(zval *struc, int level);
26PHPAPI void php_var_export(zval *struc, int level);
28
29PHPAPI void php_debug_zval_dump(zval *struc, int level);
30
32typedef struct php_unserialize_data *php_unserialize_data_t;
33
35PHPAPI int php_var_unserialize(zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash);
36PHPAPI int php_var_unserialize_ref(zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash);
37PHPAPI int php_var_unserialize_intern(zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash);
38
49
50#define PHP_VAR_SERIALIZE_INIT(d) \
51 (d) = php_var_serialize_init()
52
53#define PHP_VAR_SERIALIZE_DESTROY(d) \
54 php_var_serialize_destroy(d)
55
56#define PHP_VAR_UNSERIALIZE_INIT(d) \
57 (d) = php_var_unserialize_init()
58
59#define PHP_VAR_UNSERIALIZE_DESTROY(d) \
60 php_var_unserialize_destroy(d)
61
62PHPAPI void php_unserialize_with_options(zval *return_value, const char *buf, const size_t buf_len, HashTable *options, const char* function_name);
63
68
69#endif /* PHP_VAR_H */
#define max(a, b)
Definition exif.c:60
zval * val
Definition ffi.c:4262
zend_ffi_ctype_name_buf buf
Definition ffi.c:4685
#define PHP_MINIT_FUNCTION
Definition php.h:400
#define PHPAPI
Definition php.h:71
PHP_JSON_API size_t int options
Definition php_json.h:102
PHPAPI int php_var_unserialize_intern(zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash)
PHPAPI void php_var_serialize_destroy(php_serialize_data_t d)
Definition var.c:1344
PHPAPI zend_long php_var_unserialize_get_cur_depth(php_unserialize_data_t d)
struct php_unserialize_data * php_unserialize_data_t
Definition php_var.h:32
PHPAPI zend_long php_var_unserialize_get_max_depth(php_unserialize_data_t d)
struct php_serialize_data * php_serialize_data_t
Definition php_var.h:31
PHPAPI int php_var_unserialize_ref(zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash)
PHPAPI void var_replace(php_unserialize_data_t *var_hash, zval *ozval, zval *nzval)
PHPAPI void php_var_export(zval *struc, int level)
Definition var.c:682
PHPAPI void php_unserialize_with_options(zval *return_value, const char *buf, const size_t buf_len, HashTable *options, const char *function_name)
Definition var.c:1380
PHPAPI HashTable * php_var_unserialize_get_allowed_classes(php_unserialize_data_t d)
PHPAPI zend_result php_var_export_ex(zval *struc, int level, smart_str *buf)
Definition var.c:510
PHPAPI zval * var_tmp_var(php_unserialize_data_t *var_hashx)
PHPAPI void php_debug_zval_dump(zval *struc, int level)
Definition var.c:295
PHPAPI void php_var_unserialize_set_allowed_classes(php_unserialize_data_t d, HashTable *classes)
PHPAPI php_serialize_data_t php_var_serialize_init(void)
Definition var.c:1326
PHPAPI int php_var_unserialize(zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash)
PHPAPI void var_push_dtor(php_unserialize_data_t *var_hash, zval *val)
PHPAPI php_unserialize_data_t php_var_unserialize_init(void)
PHPAPI void php_var_serialize(smart_str *buf, zval *struc, php_serialize_data_t *data)
Definition var.c:1319
PHPAPI void var_destroy(php_unserialize_data_t *var_hash)
PHPAPI void php_var_unserialize_set_max_depth(php_unserialize_data_t d, zend_long max_depth)
PHPAPI void php_var_unserialize_destroy(php_unserialize_data_t d)
PHPAPI void php_var_unserialize_set_cur_depth(php_unserialize_data_t d, zend_long cur_depth)
PHPAPI void php_var_dump(zval *struc, int level)
Definition var.c:103
zend_constant * data
p
Definition session.c:1105
php_unserialize_data_t var_hash
Definition session.c:964
struct _zval_struct zval
int32_t zend_long
Definition zend_long.h:42
struct _zend_array HashTable
Definition zend_types.h:386
ZEND_RESULT_CODE zend_result
Definition zend_types.h:64
zval * return_value