com php-src: Added missing zend_parse_parameters_none( ) to mb_list_encodings(): ext/mbstring/mbstri ng.c
| From: | Kalle Sommer Nielsen | Date: | Sun, 03 Apr 2016 00:28:39 +0000 |
| Subject: | com php-src: Added missing zend_parse_parameters_none( ) to mb_list_encodings(): ext/mbstring/mbstri ng.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91585@lists.php.net to get a copy of this message | ||
Commit: fcc6bdebc29687c78538a3ec0268e31ba54c84fa
Author: Kalle Sommer Nielsen <kalle@php.net> Sun, 3 Apr 2016 02:28:39 +0200
Parents: bb198ec9a6d37cd467795199d33c8fa4e0d754e6
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fcc6bdebc29687c78538a3ec0268e31ba54c84fa
Log:
Added missing zend_parse_parameters_none() to mb_list_encodings()
Changed paths:
M ext/mbstring/mbstring.c
Diff:
diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c
index 796c482..514c4fc 100644
--- a/ext/mbstring/mbstring.c
+++ b/ext/mbstring/mbstring.c
@@ -3443,6 +3443,10 @@ PHP_FUNCTION(mb_list_encodings)
const mbfl_encoding *encoding;
int i;
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
+ }
+
array_init(return_value);
i = 0;
encodings = mbfl_get_supported_encodings();