diff options
author | Alex Dupre <ale@FreeBSD.org> | 2005-01-19 16:13:55 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2005-01-19 16:13:55 +0000 |
commit | 114b2bec5bd579940ef832e53417fa407ec84263 (patch) | |
tree | 1e59d25fdec004434490263d5737d5931f355873 /lang/php5/files/patch-ext::standard::php_var.h | |
parent | Update to 1.0 (diff) |
Speed up unserialize() and fix a serious performance issue.
Obtained from: PHP CVS
Notes
Notes:
svn path=/head/; revision=126843
Diffstat (limited to 'lang/php5/files/patch-ext::standard::php_var.h')
-rw-r--r-- | lang/php5/files/patch-ext::standard::php_var.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/php5/files/patch-ext::standard::php_var.h b/lang/php5/files/patch-ext::standard::php_var.h new file mode 100644 index 000000000000..c3b01c3a9fd7 --- /dev/null +++ b/lang/php5/files/patch-ext::standard::php_var.h @@ -0,0 +1,20 @@ +--- ext/standard/php_var.h.orig 2004/09/05 16:29:04 ++++ ext/standard/php_var.h 2005/01/15 18:18:08 +@@ -41,6 +41,7 @@ PHPAPI void php_debug_zval_dump(zval **s + + struct php_unserialize_data { + void *first; ++ void *first_dtor; + }; + + typedef struct php_unserialize_data php_unserialize_data_t; +@@ -54,7 +55,8 @@ PHPAPI int php_var_unserialize(zval **rv + zend_hash_destroy(&(var_hash)) + + #define PHP_VAR_UNSERIALIZE_INIT(var_hash) \ +- (var_hash).first = 0 ++ (var_hash).first = 0; \ ++ (var_hash).first_dtor = 0 + #define PHP_VAR_UNSERIALIZE_DESTROY(var_hash) \ + var_destroy(&(var_hash)) + |