File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ PHP NEWS
14
14
. Fixed bug #79947 (Memory leak on invalid offset type in compound
15
15
assignment). (Nikita)
16
16
17
+ - COM:
18
+ . Fixed bug #48585 (com_load_typelib holds reference, fails on second call).
19
+ (cmb)
20
+
17
21
- Gettext:
18
22
. Fixed bug #70574 (Tests fail due to relying on Linux fallback behavior for
19
23
gettext()). (Florian Engelhardt)
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ PHP_FUNCTION(com_create_instance)
248
248
TL = php_com_load_typelib_via_cache (typelib_name , obj -> code_page , & cached );
249
249
250
250
if (TL ) {
251
- if (COMG (autoreg_on ) && ! cached ) {
251
+ if (COMG (autoreg_on )) {
252
252
php_com_import_typelib (TL , mode , obj -> code_page );
253
253
}
254
254
@@ -840,9 +840,7 @@ PHP_FUNCTION(com_load_typelib)
840
840
php_com_initialize ();
841
841
pTL = php_com_load_typelib_via_cache (name , codepage , & cached );
842
842
if (pTL ) {
843
- if (cached ) {
844
- RETVAL_TRUE ;
845
- } else if (php_com_import_typelib (pTL , cs ? CONST_CS : 0 , codepage ) == SUCCESS ) {
843
+ if (php_com_import_typelib (pTL , cs ? CONST_CS : 0 , codepage ) == SUCCESS ) {
846
844
RETVAL_TRUE ;
847
845
}
848
846
Original file line number Diff line number Diff line change @@ -251,9 +251,7 @@ static PHP_INI_MH(OnTypeLibFileUpdate)
251
251
}
252
252
253
253
if ((pTL = php_com_load_typelib_via_cache (typelib_name , COMG (code_page ), & cached )) != NULL ) {
254
- if (!cached ) {
255
- php_com_import_typelib (pTL , mode , COMG (code_page ));
256
- }
254
+ php_com_import_typelib (pTL , mode , COMG (code_page ));
257
255
ITypeLib_Release (pTL );
258
256
}
259
257
}
You can’t perform that action at this time.
0 commit comments