Skip to content

Commit eb22d78

Browse files
committed
allow sqlite_query() to accept the query string and database resource in
either order. Forgot to bump the package version number displayed by phpinfo()... Bump to 0.9a
1 parent 43349ea commit eb22d78

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ext/sqlite/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<license>PHP</license>
2727
<release>
2828
<state>beta</state>
29-
<version>0.9</version>
29+
<version>0.9a</version>
3030
<date>2003-04-21</date>
3131
<notes>
3232
Added:

ext/sqlite/sqlite.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "config.h"
2424
#endif
2525

26-
#define PHP_SQLITE_MODULE_VERSION "0.7"
26+
#define PHP_SQLITE_MODULE_VERSION "0.9a"
2727

2828
#include "php.h"
2929
#include "php_ini.h"
@@ -858,7 +858,9 @@ PHP_FUNCTION(sqlite_query)
858858
const char *tail;
859859
const char **rowdata, **colnames;
860860

861-
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sr", &sql, &sql_len, &zdb)) {
861+
if (FAILURE == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET,
862+
ZEND_NUM_ARGS() TSRMLS_CC, "sr", &sql, &sql_len, &zdb) &&
863+
FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &sql, &sql_len, &zdb)) {
862864
return;
863865
}
864866

0 commit comments

Comments
 (0)