]> granicus.if.org Git - php/commitdiff
- Bugfix #31342: SQLite OO interface with Exceptions (hugo dot pl at gmail dot com)
authorMarcus Boerger <helly@php.net>
Mon, 10 Jan 2005 07:16:25 +0000 (07:16 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 10 Jan 2005 07:16:25 +0000 (07:16 +0000)
ext/sqlite/sqlite.c

index 9037d10cdfd0eaf5d6d2b57c9e09cb7aa401fa6a..2f8e0ce61fa47a259b0789df4c984da94ec0c7c4 100644 (file)
@@ -1593,8 +1593,8 @@ PHP_FUNCTION(sqlite_fetch_column_types)
                DB_FROM_OBJECT(db, object);
        } else {
                if (FAILURE == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET,
-                               ZEND_NUM_ARGS() TSRMLS_CC, "sr", &tbl, &tbl_len, &zdb) && 
-                       FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &zdb, &tbl, &tbl_len)) {
+                               ZEND_NUM_ARGS() TSRMLS_CC, "sr|l", &tbl, &tbl_len, &zdb, &result_type) && 
+                       FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs|l", &zdb, &tbl, &tbl_len, &result_type)) {
                        return;
                }
                DB_FROM_ZVAL(db, &zdb);