diff options
| author | Ard Biesheuvel <abies@php.net> | 2004-02-15 18:43:46 +0000 |
|---|---|---|
| committer | Ard Biesheuvel <abies@php.net> | 2004-02-15 18:43:46 +0000 |
| commit | bc117251886f9856491ff29cc6b7228ef0039bce (patch) | |
| tree | 73c73754ebb65dd67be449285445dff40fb4d3e6 | |
| parent | 938e964beb550701d7a710c284c3bba62d0195d0 (diff) | |
| download | php-git-bc117251886f9856491ff29cc6b7228ef0039bce.tar.gz | |
MFH reverted fix for #26777
| -rw-r--r-- | ext/interbase/interbase.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/interbase/interbase.c b/ext/interbase/interbase.c index 70abb42eaf..2a0ebbb4e6 100644 --- a/ext/interbase/interbase.c +++ b/ext/interbase/interbase.c @@ -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; |
