]> granicus.if.org Git - php/commitdiff
fix incompatible pointer type
authorAnatol Belski <ab@php.net>
Wed, 11 Feb 2015 11:03:35 +0000 (12:03 +0100)
committerAnatol Belski <ab@php.net>
Wed, 11 Feb 2015 11:03:35 +0000 (12:03 +0100)
ext/standard/string.c

index 197ed185f2e18acebc3c652bea1bdd33d6a01591..b7e71283b9d2c1fe7f55c426502ca47c90a36844 100644 (file)
@@ -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++;