php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26405 Runtime DLL linking from extension module code (GetProcAddress)
Submitted: 2003-11-25 09:56 UTC Modified: 2003-11-25 15:10 UTC
From: torben at greystork dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.3.4 OS: Win32
Private report: No CVE-ID: None
 [2003-11-25 09:56 UTC] torben at greystork dot com
Description:
------------
This is mainly for your information, since it may shed some additional light on problems encountered by other developers, notably the creator of the w32api module.

I recently developed a custom mail server administration extension for PHP in which I access functions in a third-party (i.e. non-MFC) DLL Using LoadLibrary/GetProcAddress. The thus linked DLL functions behave predictably with the CLI version of PHP and on Apache/SAPI compiles. However, with IIS, whether it be ISAPI, CGI or FastCGI, the DLL functions do not return the expected results and may arbitrarily result in PHP engine crashes.

This is obviously an issue with IIS, although I have no ideas on what may cause this kind of problem. Attempting to get to the root of this would be a job for someone with intimate knowledge of IIS. Unfortunately, that excludes me.

Reproduce code:
---------------
This is not a PHP language issue.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-25 15:10 UTC] sniper@php.net
This is not a discussion forum, try using email next time..

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC