|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77626 Persistence confusion in php_com_import_typelib()
Submitted: 2019-02-15 17:46 UTC Modified: 2019-02-15 17:46 UTC
From: Assigned: cmb (profile)
Status: Closed Package: COM related
PHP Version: 7.3Git-2019-02-15 (Git) OS: Windows
Private report: No CVE-ID: None
 [2019-02-15 17:46 UTC]
When constants are registered while loading type libraries, the
constant names are always allocated persistenly, but the constants
themselves may be allocated non-persistently.

This issue has been introduced with commit 5eb1f92, and as such
does only affect PHP-7.3+.

[1] <;a=commit;h=5eb1f92f31cafc48384f9096012f421b37f6d425>

Test script:
make test TESTS=ext\com_dotnet\tests\bug39606.phpt

Expected result:
Test succeeds even for debug builds

Actual result:
Test fails for debug builds with:

Assertion failed: !(zval_gc_flags((s)->gc.u.type_info) & (1<<7)), file zend\zend_string.h, line 290


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-02-15 17:46 UTC]
-Assigned To: +Assigned To: cmb
 [2019-02-15 17:58 UTC]
Automatic comment on behalf of
Log: Fix #77626: Persistence confusion in php_com_import_typelib()
 [2019-02-15 17:58 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 17:01:31 2024 UTC