mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
- Add support for Z in zend_parse_parameters(). It will allow the extension
- to retreive the zval **, thus allowing it to use the convert_to_*_ex() - family of functions to do type conversions without effecting the value in - the engine itself. (Josh Fuhs <fuhs@purdue.edu>)
This commit is contained in:
parent
2deb3c224d
commit
939ab68637
@ -430,7 +430,16 @@ static char *zend_parse_arg_impl(zval **arg, va_list *va, char **spec TSRMLS_DC)
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 'Z':
|
||||
{
|
||||
zval ***p = va_arg(*va, zval ***);
|
||||
if (Z_TYPE_PP(arg) == IS_NULL && return_null) {
|
||||
*p = NULL;
|
||||
} else {
|
||||
*p = arg;
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return "unknown";
|
||||
}
|
||||
@ -476,7 +485,7 @@ static int zend_parse_va_args(int num_args, char *type_spec, va_list *va, int fl
|
||||
case 's': case 'b':
|
||||
case 'r': case 'a':
|
||||
case 'o': case 'O':
|
||||
case 'z':
|
||||
case 'z': case 'Z':
|
||||
max_num_args++;
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user