From: Anatol Belski Date: Wed, 11 Feb 2015 11:03:35 +0000 (+0100) Subject: fix incompatible pointer type X-Git-Tag: PRE_PHP7_EREG_MYSQL_REMOVALS~186 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52f5cb914eaf1a6474cb3e9c807d131b7c34b5c5;p=php fix incompatible pointer type --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 197ed185f2..b7e71283b9 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -4542,7 +4542,7 @@ PHP_FUNCTION(setlocale) if (Z_TYPE(args[0]) == IS_ARRAY) { while (idx < Z_ARRVAL(args[0])->nNumUsed) { plocale = &Z_ARRVAL(args[0])->arData[idx].val; - if (Z_TYPE(plocale) != IS_UNDEF) { + if (Z_TYPE_P(plocale) != IS_UNDEF) { break; } idx++;