diff options
author | kovacs.ferenc <kovacs.ferenc@ustream.tv> | 2013-11-18 12:12:24 +0100 |
---|---|---|
committer | kovacs.ferenc <kovacs.ferenc@ustream.tv> | 2013-11-18 12:12:24 +0100 |
commit | 2042d78fce4175c6b6b3dbc5f99bdd9caf213811 (patch) | |
tree | e2e0332e3d12bdd1fc503eb92067d8224cd09797 /ext/json/json.c | |
parent | 140a42f779b83f5c32656741f9fd26f34edc0b1b (diff) | |
parent | 91779db95b21bf23a565f9bae6025abe52e9a27c (diff) | |
download | php-git-2042d78fce4175c6b6b3dbc5f99bdd9caf213811.tar.gz |
Merge branch 'JSONCaseFix' of git://github.com/TazeTSchnitzel/php-src into TazeTSchnitzel-JSONCaseFix
Diffstat (limited to 'ext/json/json.c')
-rw-r--r-- | ext/json/json.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/json/json.c b/ext/json/json.c index c3664b9ee9..80bbef7b7c 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -712,14 +712,14 @@ PHP_JSON_API void php_json_decode_ex(zval *return_value, char *str, int str_len, RETVAL_NULL(); if (trim_len == 4) { - if (!strncasecmp(trim, "null", trim_len)) { + if (!strncmp(trim, "null", trim_len)) { /* We need to explicitly clear the error because its an actual NULL and not an error */ jp->error_code = PHP_JSON_ERROR_NONE; RETVAL_NULL(); - } else if (!strncasecmp(trim, "true", trim_len)) { + } else if (!strncmp(trim, "true", trim_len)) { RETVAL_BOOL(1); } - } else if (trim_len == 5 && !strncasecmp(trim, "false", trim_len)) { + } else if (trim_len == 5 && !strncmp(trim, "false", trim_len)) { RETVAL_BOOL(0); } |