iliaa           Sun Mar 22 15:07:31 2009 UTC

  Modified files:              
    /php-src/ext/sqlite sqlite.c 
  Log:
  MFB: Improved parameter parsing
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/sqlite/sqlite.c?r1=1.223&r2=1.224&diff_format=u
Index: php-src/ext/sqlite/sqlite.c
diff -u php-src/ext/sqlite/sqlite.c:1.223 php-src/ext/sqlite/sqlite.c:1.224
--- php-src/ext/sqlite/sqlite.c:1.223   Tue Mar 10 23:39:39 2009
+++ php-src/ext/sqlite/sqlite.c Sun Mar 22 15:07:31 2009
@@ -17,7 +17,7 @@
    |          Marcus Boerger <he...@php.net>                              |
    +----------------------------------------------------------------------+
 
-   $Id: sqlite.c,v 1.223 2009/03/10 23:39:39 helly Exp $
+   $Id: sqlite.c,v 1.224 2009/03/22 15:07:31 iliaa Exp $
 */
 
 #ifdef HAVE_CONFIG_H
@@ -1550,7 +1550,7 @@
 {
        php_info_print_table_start();
        php_info_print_table_header(2, "SQLite support", "enabled");
-       php_info_print_table_row(2, "PECL Module version", 
PHP_SQLITE_MODULE_VERSION " $Id: sqlite.c,v 1.223 2009/03/10 23:39:39 helly Exp 
$");
+       php_info_print_table_row(2, "PECL Module version", 
PHP_SQLITE_MODULE_VERSION " $Id: sqlite.c,v 1.224 2009/03/22 15:07:31 iliaa Exp 
$");
        php_info_print_table_row(2, "SQLite Library", sqlite_libversion());
        php_info_print_table_row(2, "SQLite Encoding", sqlite_libencoding());
        php_info_print_table_end();
@@ -2578,7 +2578,7 @@
                        return;
                }
                RES_FROM_OBJECT_RESTORE_ERH(res, object, &error_handling);
-               if (!ZEND_NUM_ARGS()) {
+               if (!class_name) {
                        ce = zend_standard_class_def;
                } else {
                        ce = zend_u_fetch_class(class_name_type, class_name, 
class_name_len, ZEND_FETCH_CLASS_AUTO TSRMLS_CC);
@@ -2589,7 +2589,7 @@
                        return;
                }
                ZEND_FETCH_RESOURCE(res, struct php_sqlite_result *, &zres, -1, 
"sqlite result", le_sqlite_result);
-               if (ZEND_NUM_ARGS() < 2) {
+               if (!class_name) {
                        ce = zend_standard_class_def;
                } else {
                        ce = zend_u_fetch_class(class_name_type, class_name, 
class_name_len, ZEND_FETCH_CLASS_AUTO TSRMLS_CC);



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to