mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
Sync with ab8094c6
This commit is contained in:
parent
f374e93762
commit
6059ecee3a
@ -207,9 +207,8 @@ PHP_COM_DOTNET_API int php_com_import_typelib(ITypeLib *TL, int mode, int codepa
|
|||||||
/* register the constant */
|
/* register the constant */
|
||||||
php_com_zval_from_variant(&value, pVarDesc->lpvarValue, codepage);
|
php_com_zval_from_variant(&value, pVarDesc->lpvarValue, codepage);
|
||||||
if (Z_TYPE(value) == IS_LONG) {
|
if (Z_TYPE(value) == IS_LONG) {
|
||||||
c.flags = mode;
|
ZEND_CONSTANT_SET_FLAGS(&c, mode, 0);
|
||||||
ZVAL_LONG(&c.value, Z_LVAL(value));
|
ZVAL_LONG(&c.value, Z_LVAL(value));
|
||||||
c.module_number = 0;
|
|
||||||
zend_register_constant(&c);
|
zend_register_constant(&c);
|
||||||
}
|
}
|
||||||
ITypeInfo_ReleaseVarDesc(TypeInfo, pVarDesc);
|
ITypeInfo_ReleaseVarDesc(TypeInfo, pVarDesc);
|
||||||
|
Loading…
Reference in New Issue
Block a user