From: Marcus Boerger Date: Sun, 18 May 2003 12:04:34 +0000 (+0000) Subject: Fix unserialize X-Git-Tag: BEFORE_FD_REVERT~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9719a22ff85cff47cacde31589c49a57f70915bd;p=php Fix unserialize --- diff --git a/ext/standard/var_unserializer.re b/ext/standard/var_unserializer.re index 1e6dcd078c..8ad0985619 100644 --- a/ext/standard/var_unserializer.re +++ b/ext/standard/var_unserializer.re @@ -91,7 +91,7 @@ PHPAPI void var_destroy(php_unserialize_data_t *var_hashx) /*!re2c iv = [+-]? [0-9]+; -nv = [+-]? ([0-9]* "." [0-9]+|[0-9]+ "." [0-9]+); +nv = [+-]? ([0-9]* "." [0-9]+|[0-9]+ "." [0-9]*); nvexp = (iv | nv) [eE] [+-]? iv; any = [\000-\277]; */ @@ -394,7 +394,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER) elements = object_common1(UNSERIALIZE_PASSTHRU, ce); if (incomplete_class) { - php_store_class_name(*rval, class_name, len2); + php_store_class_name(*rval, class_name, len2 TSRMLS_CC); efree(class_name); }