cvs: php4 /ext/com COM.c
| From: | Harald Radi | Date: | Fri, 21 Jun 2002 10:43:45 +0000 |
| Subject: | cvs: php4 /ext/com COM.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12433@lists.php.net to get a copy of this message | ||
phanto Fri Jun 21 06:43:45 2002 EDT
Modified files:
/php4/ext/com COM.c
Log:
removed CONST_EFREE_PERSISTENT so that andi can commit his patch
# _now_ it should work
Index: php4/ext/com/COM.c
diff -u php4/ext/com/COM.c:1.82 php4/ext/com/COM.c:1.83
--- php4/ext/com/COM.c:1.82 Fri Jun 21 06:35:33 2002
+++ php4/ext/com/COM.c Fri Jun 21 06:43:45 2002
@@ -18,7 +18,7 @@
| Wez Furlong <wez@thebrainroom.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: COM.c,v 1.82 2002/06/21 10:35:33 phanto Exp $ */
+/* $Id: COM.c,v 1.83 2002/06/21 10:43:45 phanto Exp $ */
/*
* This module implements support for COM components that support the IDispatch
* interface. Both local (COM) and remote (DCOM) components can be accessed.
@@ -2222,15 +2222,14 @@
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++;
}