From:             torben at greystork dot com
Operating system: Win32
PHP version:      4.3.4
PHP Bug Type:     IIS related
Bug description:  Runtime DLL linking from extension module code (GetProcAddress)

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.


-- 
Edit bug report at http://bugs.php.net/?id=26405&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26405&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26405&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26405&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26405&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26405&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=26405&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26405&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26405&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26405&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26405&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26405&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26405&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26405&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26405&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26405&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26405&r=float

Reply via email to