]> granicus.if.org Git - php/commitdiff
Fix build.
authorIlia Alshanetsky <iliaa@php.net>
Mon, 31 May 2004 20:25:37 +0000 (20:25 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 31 May 2004 20:25:37 +0000 (20:25 +0000)
ext/informix/ifx.ec

index 87782c7c0efc42e5aa1eaeb9e5b80286b6538a09..8372a88bd9f61c04b16a27b7a59395e5b073dbc7 100644 (file)
@@ -126,8 +126,8 @@ typedef char IFX[128];
 #define PHP_IFX_CHECK_CONNECTION(ifx)       \
         {                                   \
             if (ifx_check() < 0) {          \
+               char *ifx_err = ifx_error(ifx); \
                 IFXG(sv_sqlcode) = SQLCODE; \
-                char *ifx_err = ifx_error(ifx); \
                 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Set connection %s fails (%s)", ifx, ifx_err); \
                 efree(ifx_err);                    \
                 RETURN_FALSE;               \
@@ -289,7 +289,7 @@ EXEC SQL BEGIN DECLARE SECTION;
        PARAMETER char *link;
 EXEC SQL END DECLARE SECTION;
 {
-       char *ifx_err = null;
+       char *ifx_err = NULL;
        TSRMLS_FETCH();
 
        EXEC SQL SET CONNECTION :link;