php.net |  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: cmb@php.net 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] cmb@php.net
Description:
------------
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] <http://git.php.net/?p=php-src.git;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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-02-15 17:46 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2019-02-15 17:58 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=767fa3dc02f39b64015539d9948874947cf20d5d
Log: Fix #77626: Persistence confusion in php_com_import_typelib()
 [2019-02-15 17:58 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 06:01:29 2024 UTC