Index: /fJSON.php =================================================================== --- /fJSON.php (revision 560) +++ /fJSON.php (revision 563) @@ -18,5 +18,6 @@ * @link http://flourishlib.com/fJSON * - * @version 1.0.0b3 + * @version 1.0.0b4 + * @changes 1.0.0b4 Fixed a bug with ::decode() where JSON objects could lose all but the first key: value pair [wb, 2009-05-06] * @changes 1.0.0b3 Updated the class to be consistent with PHP 5.2.9+ for encoding and decoding invalid data [wb, 2009-05-04] * @changes 1.0.0b2 Changed @ error suppression operator to `error_reporting()` calls [wb, 2009-01-26] @@ -416,5 +417,5 @@ if ($ref_match) { - $stack[] = array($type, $match); + $stack[] = array($type, &$match); $stack_end = end($stack); } @@ -457,5 +458,5 @@ } $last = $type; - + unset($match); }