1
0
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:
Ard Biesheuvel
2004-05-12 13:07:35 +00:00
parent 8e52e04c30
commit ecfd014357
+4 -1
View File
@@ -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);