#21278 [Csd]: php_mcrypt requires libmcrypt.dll with export by ordinal
| From: | philip@php.net | Date: | Mon, 30 Dec 2002 18:54:42 +0000 |
| Subject: | #21278 [Csd]: php_mcrypt requires libmcrypt.dll with export by ordinal | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-28781@lists.php.net to get a copy of this message | ||
ID: 21278
Updated by: philip@php.net
Reported By: mike42@gmx.net
Status: Closed
Bug Type: *Compile Issues
Operating System: Windows
PHP Version: 4.3.0
New Comment:
This is now documented and will eventually show up at:
http://www.php.net/mcrypt
Previous Comments:
------------------------------------------------------------------------
[2002-12-30 12:29:49] edink@php.net
There was a problem with the libmcrypt against which 4.3.0 was
compiled. I've recompiled it against fixed version of the library. All
relevant files can be found in:
http://ftp.proventum.net/pub/php/win32/misc/mcrypt/php-4.3-mcrypt.zip
Snapshots/releases will from now on be compiled with this version of
the library.
------------------------------------------------------------------------
[2002-12-29 19:21:40] mike42@gmx.net
I have downloaded binary version of php 4.3.0 for Windows.
This includes php_mcrypt module for PHP.
php_mcrypt.dll requires libmcrypt.dll.
I have searched for this (Windows) DLL. But could not find it.
Finally I downloaded the sources for Libmcrypt.dll and did
a quick and dirty port to compile it with Visual C 6.0.
The created DLL works ok with included testcase (may not be threadsafe,
but thats not important for now). Still with
php_mcrypt.dll I cannot use this DLL, because php_mcrypt imports all
functions from libmcrypt.dll by ordinal (number) instead of by name.
Without knowing which ordinal is assigned to which function it is
impossible to create a libmcrypt.dll to fit to binary php_mcrypt.dll
So I would need either:
- A module definition file (Libmcrypt.def) or text file containing
exported function names with assigned ordinals.
- Libmcrypt.lib used for linking php_mcrypt.dll
- Libmcrypt.dll itself
BTW: I also need to know the calling convention __stdcall or __cdecl
active used for calling libmcrypt from php_mcrypt.
I recommend to include Libmcrypt.dll in future binary packages. If this
is not possible because of export or licence issues please include
Libmcrypt.def file.
Thanks!!!
Michael
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21278&edit=1