mirror of
https://github.com/php/php-src.git
synced 2024-12-12 03:15:29 +08:00
Don't pass resource as an argument when its not being parsed.
This commit is contained in:
parent
94b90d0c0a
commit
12b06799ae
@ -2385,7 +2385,7 @@ PHP_FUNCTION(sqlite_create_function)
|
|||||||
zval *object = getThis();
|
zval *object = getThis();
|
||||||
|
|
||||||
if (object) {
|
if (object) {
|
||||||
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz|l", &zdb, &funcname, &funcname_len, &zcall, &num_args)) {
|
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz|l", &funcname, &funcname_len, &zcall, &num_args)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
DB_FROM_OBJECT(db, object);
|
DB_FROM_OBJECT(db, object);
|
||||||
|
Loading…
Reference in New Issue
Block a user