]> granicus.if.org Git - php/commitdiff
MFH reverted fix for #26777
authorArd Biesheuvel <abies@php.net>
Sun, 15 Feb 2004 18:43:46 +0000 (18:43 +0000)
committerArd Biesheuvel <abies@php.net>
Sun, 15 Feb 2004 18:43:46 +0000 (18:43 +0000)
ext/interbase/interbase.c

index 70abb42eaf2ad456e86be14eb9ec2f02e494e1d6..2a0ebbb4e639fbaab98d483a60b507f88f207181 100644 (file)
@@ -1214,6 +1214,12 @@ static int _php_ibase_bind(XSQLDA *sqlda, zval **b_vars, BIND_BUF *buf, ibase_qu
                var->sqlind = &buf[i].sqlind;
                
                if (Z_TYPE_P(b_var) == IS_NULL) {
+
+                       if ((var->sqltype & 1) != 1) {
+                               _php_ibase_module_error("Parameter %d must have a value" TSRMLS_CC, i+1);
+                               rv = FAILURE;
+                       }
+
                        buf[i].sqlind = -1;
                } else {
                        buf[i].sqlind = 0;