浏览代码

Fixes #144 - Zend_JsonTest::testDecodingInvalidJsonShouldRaiseAnException

Siad Ardroumli 12 年之前
父节点
当前提交
9a6fd1147e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      library/Zend/Json.php

+ 1 - 1
library/Zend/Json.php

@@ -77,7 +77,7 @@ class Zend_Json
 
             // php < 5.3
             if (!function_exists('json_last_error')) {
-                if ($decode === $encodedValue) {
+                if ($decode === null) {
                     require_once 'Zend/Json/Exception.php';
                     throw new Zend_Json_Exception('Decoding failed');
                 }