File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ PHP_METHOD(com, __construct)
244
244
TL = php_com_load_typelib_via_cache (typelib_name , obj -> code_page , & cached );
245
245
246
246
if (TL ) {
247
- if (COMG (autoreg_on ) && ! cached ) {
247
+ if (COMG (autoreg_on )) {
248
248
php_com_import_typelib (TL , mode , obj -> code_page );
249
249
}
250
250
@@ -834,9 +834,7 @@ PHP_FUNCTION(com_load_typelib)
834
834
php_com_initialize ();
835
835
pTL = php_com_load_typelib_via_cache (name , codepage , & cached );
836
836
if (pTL ) {
837
- if (cached ) {
838
- RETVAL_TRUE ;
839
- } else if (php_com_import_typelib (pTL , cs ? CONST_CS : 0 , codepage ) == SUCCESS ) {
837
+ if (php_com_import_typelib (pTL , cs ? CONST_CS : 0 , codepage ) == SUCCESS ) {
840
838
RETVAL_TRUE ;
841
839
}
842
840
Original file line number Diff line number Diff line change @@ -115,9 +115,7 @@ static PHP_INI_MH(OnTypeLibFileUpdate)
115
115
}
116
116
117
117
if ((pTL = php_com_load_typelib_via_cache (typelib_name , COMG (code_page ), & cached )) != NULL ) {
118
- if (!cached ) {
119
- php_com_import_typelib (pTL , mode , COMG (code_page ));
120
- }
118
+ php_com_import_typelib (pTL , mode , COMG (code_page ));
121
119
ITypeLib_Release (pTL );
122
120
}
123
121
}
You can’t perform that action at this time.
0 commit comments