From c7f6efd0e9d1ed21e616911dc1757bb727e5d8f3 Mon Sep 17 00:00:00 2001 From: andot Date: Fri, 6 Mar 2015 12:38:44 +0800 Subject: [PATCH] Fixed a serialize notice. --- php5/HproseSerialize.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/php5/HproseSerialize.php b/php5/HproseSerialize.php index a28693cc..603e1943 100644 --- a/php5/HproseSerialize.php +++ b/php5/HproseSerialize.php @@ -14,7 +14,7 @@ * * * hprose serialize library for php5. * * * - * LastModified: Feb 27, 2015 * + * LastModified: Mar 6, 2015 * * Author: Ma Bingyao * * * \**********************************************************/ @@ -253,7 +253,8 @@ function hprose_fast_serialize(&$v, $ro) { } return $s . '}'; } - $h = hprose_hash(map($v), $ro); + $_v = map($v); + $h = hprose_hash($_v, $ro); if (array_key_exists($h, $ro->r)) { return 'r' . $ro->r[$h] . ';'; }