]> granicus.if.org Git - php/commitdiff
removed CONST_EFREE_PERSISTENT so that andi can commit his patch
authorHarald Radi <phanto@php.net>
Fri, 21 Jun 2002 10:43:45 +0000 (10:43 +0000)
committerHarald Radi <phanto@php.net>
Fri, 21 Jun 2002 10:43:45 +0000 (10:43 +0000)
# _now_ it should work

ext/com/COM.c

index cb315d35bc192d184c39250b8a6e69aa108475f2..5bbab1a4cec5d39c90eb83de15d8dbf7a60c7428 100644 (file)
@@ -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++;
                        }