diff options
| author | Xinchen Hui <laruence@gmail.com> | 2014-05-03 16:06:27 +0800 |
|---|---|---|
| committer | Xinchen Hui <laruence@gmail.com> | 2014-05-03 16:08:58 +0800 |
| commit | d8651fbe1c4caaaedc42cef1dee0dd3b3f1e447e (patch) | |
| tree | 499ace92cf766bf5cd5a1220d54498632416526f /ext/mbstring/mbstring.c | |
| parent | 5984f95d8f8d75007fff4963d67ebe65e572efea (diff) | |
| download | php-git-d8651fbe1c4caaaedc42cef1dee0dd3b3f1e447e.tar.gz | |
Make they are in the same style of Z_ISREF
Diffstat (limited to 'ext/mbstring/mbstring.c')
| -rw-r--r-- | ext/mbstring/mbstring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index 741e0e3f07..49990332ae 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -3256,7 +3256,7 @@ PHP_FUNCTION(mb_detect_encoding) /* make encoding list */ list = NULL; size = 0; - if (ZEND_NUM_ARGS() >= 2 && !ZVAL_IS_NULL(encoding_list)) { + if (ZEND_NUM_ARGS() >= 2 && !Z_ISNULL_P(encoding_list)) { switch (Z_TYPE_P(encoding_list)) { case IS_ARRAY: if (FAILURE == php_mb_parse_encoding_array(encoding_list, &list, &size, 0 TSRMLS_CC)) { |
