com php-src: fix incompatible pointer type: ext/standard/string.c
| From: | Anatol Belski | Date: | Wed, 11 Feb 2015 11:03:35 +0000 |
| Subject: | com php-src: fix incompatible pointer type: ext/standard/string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84805@lists.php.net to get a copy of this message | ||
Commit: 52f5cb914eaf1a6474cb3e9c807d131b7c34b5c5
Author: Anatol Belski <ab@php.net> Wed, 11 Feb 2015 12:03:35 +0100
Parents: 61d85cedd591c7f299181ff0fbf710bddb481f9b
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=52f5cb914eaf1a6474cb3e9c807d131b7c34b5c5
Log:
fix incompatible pointer type
Changed paths:
M ext/standard/string.c
Diff:
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 197ed18..b7e7128 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++;