com php-src: Use ZEND_STRL macro for builtin_types: Zend/zend_compile.c
| From: | Andrea Faulds | Date: | Mon, 09 Nov 2015 11:15:58 +0000 |
| Subject: | com php-src: Use ZEND_STRL macro for builtin_types: Zend/zend_compile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89718@lists.php.net to get a copy of this message | ||
Commit: dae37661d9714ab07aa491ebde0258c25467ccc7
Author: Andrea Faulds <ajf@ajf.me> Mon, 9 Nov 2015 11:15:58 +0000
Parents: d70aa14f2c1617800cbab431db5c2ea021969cc6
Branches: PHP-7.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=dae37661d9714ab07aa491ebde0258c25467ccc7
Log:
Use ZEND_STRL macro for builtin_types
Changed paths:
M Zend/zend_compile.c
Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index c3e9384..7044b6b 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -190,10 +190,10 @@ typedef struct _builtin_type_info {
} builtin_type_info;
static const builtin_type_info builtin_types[] = {
- {"int", sizeof("int") - 1, IS_LONG},
- {"float", sizeof("float") - 1, IS_DOUBLE},
- {"string", sizeof("string") - 1, IS_STRING},
- {"bool", sizeof("bool") - 1, _IS_BOOL},
+ {ZEND_STRL("int"), IS_LONG},
+ {ZEND_STRL("float"), IS_DOUBLE},
+ {ZEND_STRL("string"), IS_STRING},
+ {ZEND_STRL("bool"), _IS_BOOL},
{NULL, 0, IS_UNDEF}
};