|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-08-20 03:38 UTC] sniper@php.net
[2000-09-04 19:33 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 22:00:02 2025 UTC |
When I call a simple script <? dl("mylib.dll"); ?> 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; or int module_number; unsigned char zend_debug; unsigned char zts; unsigned char rez[2]; unsigned int zend_api; ??