]> granicus.if.org Git - php/commitdiff
WS
authorMarcus Boerger <helly@php.net>
Sat, 7 Jun 2003 11:38:03 +0000 (11:38 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 7 Jun 2003 11:38:03 +0000 (11:38 +0000)
ext/sqlite/sqlite.c

index 2c49b5078f161d593084422e207037b8639eaa93..40e71c8298e203a26b802a8da9ae11a15afd4ca0 100644 (file)
@@ -694,9 +694,9 @@ static struct php_sqlite_db *php_sqlite_open(char *filename, int mode, char *per
         * then fail with a busy status code */
        sqlite_busy_timeout(sdb, 500);
 
-       /* authorizer hook so we can enforce safe mode.
-     * Note: the declaration of php_sqlite_authorizer is correct for 2.8.2 of libsqlite,
-     * and IS backwards binary compatible with earlier versions */
+       /* authorizer hook so we can enforce safe mode
+        * Note: the declaration of php_sqlite_authorizer is correct for 2.8.2 of libsqlite,
+        * and IS backwards binary compatible with earlier versions */
        sqlite_set_authorizer(sdb, php_sqlite_authorizer, NULL);
        
        db->rsrc_id = ZEND_REGISTER_RESOURCE(return_value, db, persistent_id ? le_sqlite_pdb : le_sqlite_db);
@@ -1029,9 +1029,9 @@ PHP_FUNCTION(sqlite_query)
                db->last_err_code = sqlite_exec(db->db, sql, NULL, NULL, &errtext);
 
                if (db->last_err_code != SQLITE_OK) {
-               php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", errtext);
-               sqlite_freemem(errtext);
-       }
+                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", errtext);
+                       sqlite_freemem(errtext);
+               }
                return;
        }