Skip to content

Commit

Permalink
Fixed a serialize notice.
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Mar 6, 2015
1 parent bbb42ee commit c7f6efd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions php5/HproseSerialize.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* *
* hprose serialize library for php5. *
* *
* LastModified: Feb 27, 2015 *
* LastModified: Mar 6, 2015 *
* Author: Ma Bingyao <[email protected]> *
* *
\**********************************************************/
Expand Down Expand Up @@ -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] . ';';
}
Expand Down

0 comments on commit c7f6efd

Please sign in to comment.