diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2014-04-10 18:08:11 +0400 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2014-04-10 18:08:11 +0400 |
| commit | 6bfedfd22eb8521cd0f38ab45fca3c877ee724ca (patch) | |
| tree | 6ae29b07403feff676f049dd75efe030c1ea2218 /ext/standard/php_var.h | |
| parent | 6df6006769733e6ec925d3ca59f40ec78251cf6f (diff) | |
| download | php-git-6bfedfd22eb8521cd0f38ab45fca3c877ee724ca.tar.gz | |
Fixed unserialize()
Diffstat (limited to 'ext/standard/php_var.h')
| -rw-r--r-- | ext/standard/php_var.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/php_var.h b/ext/standard/php_var.h index 2472ebf57c..4ecdd09dd7 100644 --- a/ext/standard/php_var.h +++ b/ext/standard/php_var.h @@ -51,6 +51,7 @@ typedef struct php_unserialize_data* php_unserialize_data_t; PHPAPI void php_var_serialize(smart_str *buf, zval *struc, php_serialize_data_t *var_hash TSRMLS_DC); PHPAPI int php_var_unserialize(zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash TSRMLS_DC); +PHPAPI int php_var_unserialize_ref(zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash TSRMLS_DC); PHPAPI int php_var_unserialize_intern(zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash TSRMLS_DC); #define PHP_VAR_SERIALIZE_INIT(var_hash_ptr) \ @@ -114,6 +115,7 @@ do { \ } \ } while (0) +PHPAPI void var_replace(php_unserialize_data_t *var_hash, zval *ozval, zval *nzval); PHPAPI void var_push_dtor(php_unserialize_data_t *var_hash, zval *val); PHPAPI void var_push_dtor_no_addref(php_unserialize_data_t *var_hashx, zval *rval); PHPAPI void var_destroy(php_unserialize_data_t *var_hash); |
