mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
removed CONST_EFREE_PERSISTENT so that andi can commit his patch
# _now_ it should work
This commit is contained in:
parent
5dbd205bf7
commit
5a6a5bc609
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
php_variant_to_pval(pVarDesc->lpvarValue, &value, codepage TSRMLS_CC);
|
||||||
/* we only import enumerations (=int) */
|
/* we only import enumerations (=int) */
|
||||||
if (value.type == IS_LONG) {
|
if (Z_TYPE(value) == IS_LONG) {
|
||||||
c.flags = mode;
|
c.flags = mode;
|
||||||
c.value.type = IS_LONG;
|
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 */
|
c.module_number = 0; /* the module number is not available here */
|
||||||
|
|
||||||
zend_register_constant(&c TSRMLS_CC);
|
zend_register_constant(&c TSRMLS_CC);
|
||||||
}
|
}
|
||||||
efree(value);
|
|
||||||
|
|
||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue