From: Sterling Hughes Date: Wed, 25 Jun 2003 17:22:31 +0000 (+0000) Subject: Don't pass resource as an argument when its not being parsed. X-Git-Tag: RELEASE_1_0_2~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12b06799ae7d4e5a96c36aface2cef2dfc29feab;p=php Don't pass resource as an argument when its not being parsed. --- diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c index d97715dbd8..1a26049dfe 100644 --- a/ext/sqlite/sqlite.c +++ b/ext/sqlite/sqlite.c @@ -2385,7 +2385,7 @@ PHP_FUNCTION(sqlite_create_function) zval *object = getThis(); 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; } DB_FROM_OBJECT(db, object);