|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #15036 PHP should be able to control module load order.
Submitted: 2002-01-14 22:14 UTC Modified: 2017-10-23 00:02 UTC
Avg. Score:3.7 ± 1.2
Reproduced:5 of 5 (100.0%)
Same Version:3 (60.0%)
Same OS:1 (20.0%)
From: Assigned:
Status: Open Package: Dynamic loading
PHP Version: 4.1.0 or later OS: Any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2002-01-14 22:14 UTC]
Reminder for module loading issue.
PHP should be able to control module load order with smart way to intialize module who has dependency correctly.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-15 01:23 UTC]
It's not a bug, but a feature request. Changing status and Category

 [2002-01-16 00:34 UTC]
This is actually a bug from 4.1.0 :) It would be a feature request for 4.0.6 or less.

Fixing this will likely require API change, configuration file changes, etc. I think the bug should fixed before PHP5. Change category and status.

Problem Description:

PHP module loader does not take into account module dependency. Therefore, there are problems with session and related modules since 4.1.0. The cause is session was made an internal module and initilized at first while older versions initilize session module later.

Currently, session and related modules have this problem AFAIK. However, this proplem would be more serious issue when PECL module became a standard place for extensions. 

IMHO, it is important to discuss and fixing this problem ASAP.

(BTW, this issue is not only applicable to dynamic loading, but also static module init)
 [2010-12-03 17:51 UTC]
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: jani
 [2010-12-03 17:51 UTC]
This has been fixed in 5.x, if it doesn't work, open new report for the specific issue.
 [2010-12-03 17:51 UTC]
-Package: *General Issues +Package: Dynamic loading
 [2010-12-03 17:56 UTC]
-Status: Closed +Status: Re-Opened
 [2010-12-03 17:56 UTC]
Build deps are fixed, not ext dependencies. Loading order works, manually ordering it in php.ini.
 [2010-12-03 18:00 UTC]
-Status: Re-Opened +Status: Assigned -Assigned To: jani +Assigned To: pajoye
 [2010-12-03 18:00 UTC]
"18<Jani> ZEND_API int zend_startup_module_ex(zend_module_entry *module TSRMLS_DC) /* {{{ */
18<Jani> See that one and look for 'module->deps'"

Will take a look and see if it actually works, on all platforms :)
 [2017-10-23 00:02 UTC]
-Status: Assigned +Status: Open -Assigned To: pajoye +Assigned To:
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Apr 19 13:01:25 2021 UTC