From: Daniel Beulshausen Date: Sun, 1 Jul 2001 20:18:51 +0000 (+0000) Subject: PHPAPI-ize php_var_* functions X-Git-Tag: PRE_TSRM_MERGE_PATCH~298 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4aa6ae493ef8a9aa3cb047ec3db2459de546afd2;p=php PHPAPI-ize php_var_* functions # need this for shm* --- diff --git a/ext/standard/php_var.h b/ext/standard/php_var.h index 7e2391adc3..86bd50c549 100644 --- a/ext/standard/php_var.h +++ b/ext/standard/php_var.h @@ -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) diff --git a/ext/standard/var.c b/ext/standard/var.c index dc240cf7ad..a1e61b3581 100644 --- a/ext/standard/var.c +++ b/ext/standard/var.c @@ -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;