diff options
Diffstat (limited to 'ext/com/conversion.c')
| -rw-r--r-- | ext/com/conversion.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/com/conversion.c b/ext/com/conversion.c index 9c7feaaa2c..1b523a59b5 100644 --- a/ext/com/conversion.c +++ b/ext/com/conversion.c @@ -127,7 +127,7 @@ PHPAPI void php_pval_to_variant(pval *pval_arg, VARIANT *var_arg, int codepage) if(NULL == safeArray) { php_error( E_WARNING,"Unable to convert php array to VARIANT array - %s", numberOfElements ? "" : "(Empty input array)"); - ZVAL_RESET(pval_arg); + ZVAL_BOOL(pval_arg, 0); } else { @@ -473,7 +473,7 @@ PHPAPI int php_variant_to_pval(VARIANT *var_arg, pval *pval_arg, int persistent, if (1 != (Dims = SafeArrayGetDim(array))) { php_error(E_WARNING,"Unsupported: multi-dimensional (%d) SafeArrays", Dims); - ZVAL_RESET(pval_arg); + ZVAL_BOOL(pval_arg, 0); return FAILURE; } SafeArrayLock( array); |
