Skip to content

Commit 4aa6ae4

Browse files
author
Daniel Beulshausen
committed
PHPAPI-ize php_var_* functions
# need this for shm*
1 parent 8934c1e commit 4aa6ae4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/standard/php_var.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ void php_var_dump(pval **struc, int level);
3030
/* typdef HashTable php_serialize_data_t; */
3131
#define php_serialize_data_t HashTable
3232

33-
void php_var_serialize(pval *buf, pval **struc, php_serialize_data_t *var_hash);
34-
int php_var_unserialize(pval **rval, const char **p, const char *max, php_serialize_data_t *var_hash);
33+
PHPAPI void php_var_serialize(pval *buf, pval **struc, php_serialize_data_t *var_hash);
34+
PHPAPI int php_var_unserialize(pval **rval, const char **p, const char *max, php_serialize_data_t *var_hash);
3535

3636
#define PHP_VAR_SERIALIZE_INIT(var_hash) \
3737
zend_hash_init(&(var_hash),10,NULL,NULL,0)

ext/standard/var.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ inline int php_add_var_hash(HashTable *var_hash, zval *var, void *var_old) {
176176
return SUCCESS;
177177
}
178178

179-
void php_var_serialize(pval *buf, pval **struc, HashTable *var_hash)
179+
PHPAPI void php_var_serialize(pval *buf, pval **struc, HashTable *var_hash)
180180
{
181181
char s[256];
182182
ulong slen;
@@ -358,7 +358,7 @@ void php_var_serialize(pval *buf, pval **struc, HashTable *var_hash)
358358
/* }}} */
359359
/* {{{ php_var_dump */
360360

361-
int php_var_unserialize(pval **rval, const char **p, const char *max, HashTable *var_hash)
361+
PHPAPI int php_var_unserialize(pval **rval, const char **p, const char *max, HashTable *var_hash)
362362
{
363363
const char *q;
364364
char *str;

0 commit comments

Comments
 (0)