mirror of
https://github.com/php/php-src.git
synced 2026-04-24 08:28:26 +02:00
PHPAPI-ize php_var_* functions
# need this for shm*
This commit is contained in:
@@ -30,8 +30,8 @@ void php_var_dump(pval **struc, int level);
|
||||
/* typdef HashTable php_serialize_data_t; */
|
||||
#define php_serialize_data_t HashTable
|
||||
|
||||
void php_var_serialize(pval *buf, pval **struc, php_serialize_data_t *var_hash);
|
||||
int php_var_unserialize(pval **rval, const char **p, const char *max, php_serialize_data_t *var_hash);
|
||||
PHPAPI void php_var_serialize(pval *buf, pval **struc, php_serialize_data_t *var_hash);
|
||||
PHPAPI int php_var_unserialize(pval **rval, const char **p, const char *max, php_serialize_data_t *var_hash);
|
||||
|
||||
#define PHP_VAR_SERIALIZE_INIT(var_hash) \
|
||||
zend_hash_init(&(var_hash),10,NULL,NULL,0)
|
||||
|
||||
+2
-2
@@ -176,7 +176,7 @@ inline int php_add_var_hash(HashTable *var_hash, zval *var, void *var_old) {
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
void php_var_serialize(pval *buf, pval **struc, HashTable *var_hash)
|
||||
PHPAPI void php_var_serialize(pval *buf, pval **struc, HashTable *var_hash)
|
||||
{
|
||||
char s[256];
|
||||
ulong slen;
|
||||
@@ -358,7 +358,7 @@ void php_var_serialize(pval *buf, pval **struc, HashTable *var_hash)
|
||||
/* }}} */
|
||||
/* {{{ php_var_dump */
|
||||
|
||||
int php_var_unserialize(pval **rval, const char **p, const char *max, HashTable *var_hash)
|
||||
PHPAPI int php_var_unserialize(pval **rval, const char **p, const char *max, HashTable *var_hash)
|
||||
{
|
||||
const char *q;
|
||||
char *str;
|
||||
|
||||
Reference in New Issue
Block a user