Explorar el Código

Fixes #144 - Zend_JsonTest::testDecodingInvalidJsonShouldRaiseAnException

Siad Ardroumli hace 12 años
padre
commit
9a6fd1147e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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');
                 }