Bug #48585 [Ana->Csd]: com_load_typelib holds reference, fails on second call
| From: | cmb@php.net | Date: | Tue, 11 Aug 2020 09:29:29 +0000 |
| Subject: | Bug #48585 [Ana->Csd]: com_load_typelib holds reference, fails on second call | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-228505@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=48585&edit=1
ID: 48585
Updated by: cmb@php.net
Reported by: robert dot johnson at icap dot com
Summary: com_load_typelib holds reference, fails on second
call
-Status: Analyzed
+Status: Closed
Type: Bug
Package: COM related
Operating System: Win XP sp3
PHP Version: 5.2.9
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=dc108feab8d88f62d7fcba3d2c9a058432463118
Log: Fix #48585: com_load_typelib holds reference, fails on second call
Previous Comments:
------------------------------------------------------------------------
[2020-08-04 16:29:58] cmb@php.net
The following pull request has been associated:
Patch Name: Fix #48585: com_load_typelib holds reference, fails on second call
On GitHub: https://github.com/php/php-src/pull/5934
Patch: https://github.com/php/php-src/pull/5934.patch
------------------------------------------------------------------------
[2020-08-04 14:32:45] cmb@php.net
The problem is that while the type library is properly cached, the
actual import is not.
------------------------------------------------------------------------
[2014-03-04 12:50:48] melvingroenhoff at gmail dot com
As of PHP 5.4.24 this is still true
------------------------------------------------------------------------
[2011-12-19 09:56:48] hendri dot cacem at gmail dot com
Same to my version:
PHP Version: 5.3.1
XAMPP 1.7.3
------------------------------------------------------------------------
[2010-02-03 19:03:46] marc at parknpool dot com
I am having the same problem. I use com_load_typelib to load COM constants. The result of calling
com_load_typelib always returns true. However, the constants are defined on the first call and
undefined for each subsequent call to the page I am testing. This is true when I go away from the
page or switch browsers.
Apparently restarting the web server (Apache) resets the system state and I can see the constants
again, but on the first call only.
OS: Windows Server 2008
PHP Version: 5.2.6
In php.ini:
com.allow_dcom = true
com.autoregister_typelib = true
com.autoregister_casesensitive = false
com.autoregister_verbose = true
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=48585
--
Edit this bug report at https://bugs.php.net/bug.php?id=48585&edit=1