|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4562 Can't load library with dl()
Submitted: 2000-05-23 13:39 UTC Modified: 2000-09-04 19:33 UTC
From: konon at relex dot ru Assigned:
Status: Closed Package: Dynamic loading
PHP Version: 4.0.0 Release OS: WindowsNT 4.0
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:
From: konon at relex dot ru
New email:
PHP Version: OS:


 [2000-05-23 13:39 UTC] konon at relex dot ru
When I call a simple script
I received:
Warning: PHP Linter SQL Server extension: Unable to initialize module
Module compiled with debug=46, thread-safety=49 module API=0
PHP compiled with debug=0, thread-safety=1 module API=20000401 These options need to match in Unknown on line 0
My library has been built with new php header files(php 4.0.0) and 1-byte struct alignment

As I think the problem is with alignment
The tail of zend_module_entry is :
	int module_number;
	unsigned char zend_debug;
	unsigned char zts;
	unsigned int zend_api;

and if php4ts.dll is compiled with 4-byte alignment we'll have this problem

May be better to use such tail:
	int module_number;
	unsigned short zend_debug;
	unsigned short zts;
	unsigned int zend_api;
	int module_number;
	unsigned char zend_debug;
	unsigned char zts;
        unsigned char rez[2];
	unsigned int zend_api;



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-20 03:38 UTC]
Does this problem still persist with more recent version of php (from CVS or ??

 [2000-09-04 19:33 UTC]
No feedback. Please try php4.0.2 or latest CVS or snapshot from and reopen this bug report if problem still exists.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Feb 28 12:01:24 2021 UTC