mirror of
https://github.com/php/php-src.git
synced 2026-04-28 10:43:30 +02:00
Made ibase_gen_id() bail out on incorrect args
This commit is contained in:
@@ -1210,7 +1210,10 @@ PHP_FUNCTION(ibase_gen_id)
|
||||
|
||||
RESET_ERRMSG;
|
||||
|
||||
zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lr", &generator, &gen_len, &inc, &link);
|
||||
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lr", &generator, &gen_len,
|
||||
&inc, &link)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
PHP_IBASE_LINK_TRANS(link, ib_link, trans);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user