From 7645343c4a93c26aeb6720c8c57ae77c720bcd64 Mon Sep 17 00:00:00 2001 From: Shane Caraveo Date: Sun, 4 Aug 2002 23:45:38 +0000 Subject: [PATCH] need to export var_replace and var_destroy for win32 --- ext/standard/php_var.h | 4 ++-- ext/standard/var_unserializer.c | 4 ++-- ext/standard/var_unserializer.re | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ext/standard/php_var.h b/ext/standard/php_var.h index 50bd124d61..55d0a8c84b 100644 --- a/ext/standard/php_var.h +++ b/ext/standard/php_var.h @@ -55,8 +55,8 @@ PHPAPI int php_var_unserialize(zval **rval, const char **p, const char *max, php #define PHP_VAR_UNSERIALIZE_DESTROY(var_hash) \ var_destroy(&(var_hash)) -void var_replace(php_unserialize_data_t *var_hash, zval *ozval, zval **nzval); -void var_destroy(php_unserialize_data_t *var_hash); +PHPAPI void var_replace(php_unserialize_data_t *var_hash, zval *ozval, zval **nzval); +PHPAPI void var_destroy(php_unserialize_data_t *var_hash); #define PHP_VAR_UNSERIALIZE_ZVAL_CHANGED(var_hash, ozval, nzval) \ var_replace((var_hash), (ozval), &(nzval)) diff --git a/ext/standard/var_unserializer.c b/ext/standard/var_unserializer.c index 428321d366..95667c3384 100644 --- a/ext/standard/var_unserializer.c +++ b/ext/standard/var_unserializer.c @@ -36,7 +36,7 @@ static inline void var_push(php_unserialize_data_t *var_hashx, zval **rval) var_hash->data[var_hash->used_slots++] = *rval; } -void var_replace(php_unserialize_data_t *var_hashx, zval *ozval, zval **nzval) +PHPAPI void var_replace(php_unserialize_data_t *var_hashx, zval *ozval, zval **nzval) { int i; var_entries *var_hash = var_hashx->first; @@ -70,7 +70,7 @@ static int var_access(php_unserialize_data_t *var_hashx, int id, zval ***store) return SUCCESS; } -void var_destroy(php_unserialize_data_t *var_hashx) +PHPAPI void var_destroy(php_unserialize_data_t *var_hashx) { void *next; var_entries *var_hash = var_hashx->first; diff --git a/ext/standard/var_unserializer.re b/ext/standard/var_unserializer.re index 859809e3aa..457c5bf83d 100644 --- a/ext/standard/var_unserializer.re +++ b/ext/standard/var_unserializer.re @@ -34,7 +34,7 @@ static inline void var_push(php_unserialize_data_t *var_hashx, zval **rval) var_hash->data[var_hash->used_slots++] = *rval; } -void var_replace(php_unserialize_data_t *var_hashx, zval *ozval, zval **nzval) +PHPAPI void var_replace(php_unserialize_data_t *var_hashx, zval *ozval, zval **nzval) { int i; var_entries *var_hash = var_hashx->first; @@ -68,7 +68,7 @@ static int var_access(php_unserialize_data_t *var_hashx, int id, zval ***store) return SUCCESS; } -void var_destroy(php_unserialize_data_t *var_hashx) +PHPAPI void var_destroy(php_unserialize_data_t *var_hashx) { void *next; var_entries *var_hash = var_hashx->first; -- 2.50.1