php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74832 Loading PHP extension with already registered function name leads to a crash
Submitted: 2017-06-29 18:21 UTC Modified: 2017-06-29 18:21 UTC
From: jpauli@php.net Assigned: jpauli (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 7.0.20 OS: *
Private report: No CVE-ID: None
 [2017-06-29 18:21 UTC] jpauli@php.net
Description:
------------
If you register an extension that declares a function name already in use (f.e reset()) , the engine crashes.

This is because the engine dlclose() the .so but forgets to remove the extension from the module_registry. Hence a crash when it comes to sort modules.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-06-29 18:21 UTC] jpauli@php.net
-Assigned To: +Assigned To: jpauli
 [2017-06-29 18:27 UTC] jpauli@php.net
Automatic comment on behalf of jpauli
Revision: http://git.php.net/?p=php-src.git;a=commit;h=3f4340a79630579e06cf95603687f792bd133332
Log: Fix bug #74832, crash in extension loading
 [2017-06-29 18:27 UTC] jpauli@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC