summaryrefslogtreecommitdiff
path: root/ext/com_dotnet/com_misc.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-05-03 20:10:58 +0000
committerWez Furlong <wez@php.net>2004-05-03 20:10:58 +0000
commit173cf836298c9d09d43b300569f4b5f9bb939cea (patch)
treeea1bdf9dc177f7673b85b915f7ee1c4aa670dd2d /ext/com_dotnet/com_misc.c
parent92d87a6a8d100ea361af3344192410630c75accd (diff)
downloadphp-git-173cf836298c9d09d43b300569f4b5f9bb939cea.tar.gz
Enable writing to SafeArray dimensions.
Diffstat (limited to 'ext/com_dotnet/com_misc.c')
-rw-r--r--ext/com_dotnet/com_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/com_dotnet/com_misc.c b/ext/com_dotnet/com_misc.c
index 641935ff25..f46c606713 100644
--- a/ext/com_dotnet/com_misc.c
+++ b/ext/com_dotnet/com_misc.c
@@ -118,7 +118,7 @@ PHPAPI int php_com_safearray_get_elem(VARIANT *array, VARIANT *dest, LONG dim1 T
/* check bounds */
if (dim1 < lbound || dim1 > ubound) {
- php_com_throw_exception(E_INVALIDARG, "index out of bounds" TSRMLS_CC);
+ php_com_throw_exception(DISP_E_BADINDEX, "index out of bounds" TSRMLS_CC);
return 0;
}