From:             [EMAIL PROTECTED]
Operating system: 
PHP version:      Irrelevant
PHP Bug Type:     SQLite related
Bug description:  sql_fetch_column_types

Description:
------------
In ext/sqlite/sqlite.c, sqlite_fetch_column_types doesn't allow the use of
the optional parameter, result_type when not using the OO "interface". 
Patch follows.

Index: sqlite.c
===================================================================
RCS file: /repository/php-src/ext/sqlite/sqlite.c,v
retrieving revision 1.151
diff -u -B -r1.151 sqlite.c
--- sqlite.c    26 Nov 2004 13:17:30 -0000      1.151
+++ sqlite.c    10 Jan 2005 05:57:01 -0000
@@ -1591,8 +1591,8 @@
                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);



-- 
Edit bug report at http://bugs.php.net/?id=31467&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31467&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31467&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31467&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31467&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31467&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31467&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31467&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31467&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31467&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31467&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31467&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31467&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31467&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31467&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31467&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31467&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31467&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31467&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31467&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31467&r=mysqlcfg

Reply via email to