@@ -97,7 +97,7 @@ typedef struct {
9797 union {
9898// Boolean data type exists since FB 3.0
9999#ifdef SQL_BOOLEAN
100- FB_BOOLEAN bval ;
100+ FB_BOOLEAN bval ;
101101#endif
102102 short sval ;
103103 float fval ;
@@ -221,9 +221,9 @@ void php_ibase_query_minit(INIT_FUNC_ARGS) /* {{{ */
221221 le_statement = zend_register_list_destructors_ex (_php_ibase_free_statement , NULL ,
222222 "interbase statement" , module_number );
223223 le_result = zend_register_list_destructors_ex (_php_ibase_free_result , NULL ,
224- "interbase result" , module_number );
224+ "interbase result" , module_number );
225225 le_query = zend_register_list_destructors_ex (php_ibase_free_query_rsrc , NULL ,
226- "interbase query" , module_number );
226+ "interbase query" , module_number );
227227}
228228/* }}} */
229229
@@ -1231,7 +1231,7 @@ PHP_FUNCTION(ibase_query)
12311231 zend_long l ;
12321232
12331233 default :
1234- if (SUCCESS == zend_parse_parameters_ex (ZEND_PARSE_PARAMS_QUIET , 3 , "rrs" ,
1234+ if (SUCCESS == zend_parse_parameters_ex (ZEND_PARSE_PARAMS_QUIET , 3 , "rrs" ,
12351235 & zlink , & ztrans , & query , & query_len )) {
12361236
12371237 ib_link = (ibase_db_link * )zend_fetch_resource2_ex (zlink , LE_LINK , le_link , le_plink );
@@ -1240,7 +1240,7 @@ PHP_FUNCTION(ibase_query)
12401240 trans_res = Z_RES_P (ztrans );
12411241 bind_i = 3 ;
12421242 break ;
1243- }
1243+ }
12441244 case 2 :
12451245 if (SUCCESS == zend_parse_parameters_ex (ZEND_PARSE_PARAMS_QUIET , 2 , "rs" ,
12461246 & zlink , & query , & query_len )) {
@@ -1308,7 +1308,7 @@ PHP_FUNCTION(ibase_query)
13081308
13091309 do {
13101310 int bind_n = ZEND_NUM_ARGS () - bind_i ,
1311- expected_n = ib_query .in_sqlda ? ib_query .in_sqlda -> sqld : 0 ;
1311+ expected_n = ib_query .in_sqlda ? ib_query .in_sqlda -> sqld : 0 ;
13121312
13131313 if (bind_n != expected_n ) {
13141314 php_error_docref (NULL , (bind_n < expected_n ) ? E_WARNING : E_NOTICE ,
@@ -1898,11 +1898,11 @@ PHP_FUNCTION(ibase_free_result)
18981898 ib_result = (ibase_result * )zend_fetch_resource_ex (result_arg , LE_RESULT , le_result );
18991899 zend_list_delete (Z_RES_P (result_arg ));
19001900
1901- /*
1902- * Bugfix of issue #40
1903- * Reset pointer after freeing to NULL
1904- */
1905- Z_RES_P (result_arg )-> ptr = NULL ;
1901+ /*
1902+ * Bugfix of issue #40
1903+ * Reset pointer after freeing to NULL
1904+ */
1905+ Z_RES_P (result_arg )-> ptr = NULL ;
19061906
19071907 RETURN_TRUE ;
19081908}
@@ -2005,9 +2005,8 @@ PHP_FUNCTION(ibase_execute)
20052005 ib_query -> result_res = NULL ;
20062006 }
20072007
2008- if (FAILURE == _php_ibase_exec (INTERNAL_FUNCTION_PARAM_PASSTHRU , & result , ib_query ,
2009- args )) {
2010- break ;
2008+ if (FAILURE == _php_ibase_exec (INTERNAL_FUNCTION_PARAM_PASSTHRU , & result , ib_query , args )) {
2009+ break ;
20112010 }
20122011
20132012 /* free the query if trans handle was released */
0 commit comments