php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21278 php_mcrypt requires libmcrypt.dll with export by ordinal
Submitted: 2002-12-29 19:21 UTC Modified: 2002-12-30 14:42 UTC
From: mike42 at gmx dot net Assigned:
Status: Closed Package: mcrypt related
PHP Version: 4.3.0 OS: Windows
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mike42 at gmx dot net
New email:
PHP Version: OS:

 

 [2002-12-29 19:21 UTC] mike42 at gmx dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-30 12:29 UTC] 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-30 12:54 UTC] philip@php.net
This is now documented and will eventually show up at:
http://www.php.net/mcrypt
 [2020-02-07 06:12 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=043ff4ec30f51456043f1bb2b50d899d87ad48d9
Log: fix #21278: unpredictable results of sort
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 23:01:30 2024 UTC