diff options
author | Harald Radi <phanto@php.net> | 2002-06-21 10:43:45 +0000 |
---|---|---|
committer | Harald Radi <phanto@php.net> | 2002-06-21 10:43:45 +0000 |
commit | 5a6a5bc609708c7bcd9ea80b040fffaba23291a3 (patch) | |
tree | f1d08a367882f5df6da2694cded0f909e9785403 | |
parent | 5dbd205bf761512b333868e13c477e1b53e31954 (diff) | |
download | php-git-5a6a5bc609708c7bcd9ea80b040fffaba23291a3.tar.gz |
removed CONST_EFREE_PERSISTENT so that andi can commit his patch
# _now_ it should work
-rw-r--r-- | ext/com/COM.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/com/COM.c b/ext/com/COM.c index cb315d35bc..5bbab1a4ce 100644 --- a/ext/com/COM.c +++ b/ext/com/COM.c @@ -2222,15 +2222,14 @@ PHPAPI int php_COM_load_typelib(ITypeLib *TypeLib, int mode TSRMLS_DC) php_variant_to_pval(pVarDesc->lpvarValue, &value, codepage TSRMLS_CC); /* we only import enumerations (=int) */ - if (value.type == IS_LONG) { + if (Z_TYPE(value) == IS_LONG) { c.flags = mode; c.value.type = IS_LONG; - c.value.value.lval = value.value.lval; + c.value.value.lval = Z_LVAL(value); c.module_number = 0; /* the module number is not available here */ zend_register_constant(&c TSRMLS_CC); } - efree(value); j++; } |