summaryrefslogtreecommitdiff
path: root/ext/informix
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2003-07-01 13:34:04 +0000
committerfoobar <sniper@php.net>2003-07-01 13:34:04 +0000
commit2a8c1bb255c778b8fcbb310ddcee006bd1472cdc (patch)
tree42727c3b8bc3df2d4e8419f1ed7648e6908e6bad /ext/informix
parentef2d599f454e6ad94971aa0d6650afb950b8f449 (diff)
downloadphp-git-2a8c1bb255c778b8fcbb310ddcee006bd1472cdc.tar.gz
MFH
Diffstat (limited to 'ext/informix')
-rw-r--r--ext/informix/ifx.ec35
1 files changed, 17 insertions, 18 deletions
diff --git a/ext/informix/ifx.ec b/ext/informix/ifx.ec
index 6cc09022d6..6864ae1ff7 100644
--- a/ext/informix/ifx.ec
+++ b/ext/informix/ifx.ec
@@ -2486,9 +2486,9 @@ EXEC SQL END DECLARE SECTION;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &result) == FAILURE) {
WRONG_PARAM_COUNT;
}
-
+
IFXG(sv_sqlcode) = 0;
-
+
ZEND_FETCH_RESOURCE(Ifx_Result, IFX_RES *, result, -1, "Informix Result", le_result);
if (strcmp(Ifx_Result->cursorid, "") == 0) {
@@ -2883,7 +2883,7 @@ EXEC SQL END DECLARE SECTION;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &result) == FAILURE) {
WRONG_PARAM_COUNT;
}
-
+
IFXG(sv_sqlcode = 0);
ZEND_FETCH_RESOURCE(Ifx_Result, IFX_RES *, result, -1, "Informix Result", le_result);
@@ -2899,8 +2899,8 @@ EXEC SQL END DECLARE SECTION;
cursorid = Ifx_Result->cursorid;
statemid = Ifx_Result->statemid;
descrpid = Ifx_Result->descrpid;
-
- EXEC SQL set connection :ifx;
+
+ EXEC SQL set connection :ifx;
PHP_IFX_CHECK_CONNECTION(ifx);
EXEC SQL free :statemid;
@@ -3043,20 +3043,19 @@ static long php_intifx_create_blob(long type, long mode, char* param, long len,
if (*param && param != "") {
- /*
- * copy the filename in param to filename in loc_fname
- * otherwise we'll unlink non-temporary files
- *
- * loc_fname gets filled by php_intifx_init_blob_infile
- */
-
- if (Ifx_blob->BLOB.blob_data.loc_fname != NULL) {
- if (php_copy_file(param, Ifx_blob->BLOB.blob_data.loc_fname TSRMLS_CC) == FAILURE) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can't create blob-resource file. File copy failed: %s", param);
+ /*
+ * copy the filename in param to filename in loc_fname
+ * otherwise we'll unlink non-temporary files
+ *
+ * loc_fname gets filled by php_intifx_init_blob_infile
+ */
+ if (Ifx_blob->BLOB.blob_data.loc_fname != NULL) {
+ if (php_copy_file(param, Ifx_blob->BLOB.blob_data.loc_fname TSRMLS_CC) == FAILURE) {
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not create blob-resource file. File copy failed: %s", param);
return -1;
}
- Ifx_blob->BLOB.blob_data.loc_size = -1;
- }
+ Ifx_blob->BLOB.blob_data.loc_size = -1;
+ }
}
}
@@ -3648,7 +3647,7 @@ static long php_intifx_count_descriptors(char *p_statemid TSRMLS_DC)
if (ifx_check() >= 0) {
ret = s_da->sqld;
-
+
/*
* Thanks to DBD-Informix
*/