mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Implement typed properties
RFC: https://wiki.php.net/rfc/typed_properties_v2 This is a squash of PR #3734, which is a squash of PR #3313. Co-authored-by: Bob Weinand <bobwei9@hotmail.com> Co-authored-by: Joe Watkins <krakjoe@php.net> Co-authored-by: Dmitry Stogov <dmitry@zend.com>
This commit is contained in:
parent
fe8fdfa3bd
commit
e219ec144e
210 changed files with 22678 additions and 5594 deletions
|
@ -863,13 +863,15 @@ static void _php_mb_regex_ereg_exec(INTERNAL_FUNCTION_PARAMETERS, int icase)
|
|||
OnigOptionType options;
|
||||
char *str;
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "zs|z/", &arg_pattern, &string, &string_len, &array) == FAILURE) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "zs|z", &arg_pattern, &string, &string_len, &array) == FAILURE) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
if (array != NULL) {
|
||||
zval_ptr_dtor(array);
|
||||
array_init(array);
|
||||
array = zend_try_array_init(array);
|
||||
if (!array) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!php_mb_check_encoding(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue