Skip to content

Commit 5b9725e

Browse files
committed
Add missing zend_parse_parameters_none()
1 parent 65db340 commit 5b9725e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/intl/locale/locale_methods.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ static zend_off_t getSingletonPos(const char* str)
207207
Get default locale */
208208
PHP_NAMED_FUNCTION(zif_locale_get_default)
209209
{
210+
if (zend_parse_parameters_none() == FAILURE) {
211+
return;
212+
}
213+
210214
RETURN_STRING( intl_locale_get_default( ) );
211215
}
212216

0 commit comments

Comments
 (0)