From: sanondysie at tc17 dot com
Operating system: Windows 98
PHP version: 4.3.6
PHP Bug Type: Dynamic loading
Bug description: php_imap.dll (and others) load failure on Windows 98
Description:
------------
This problem seems to present itself only on Win98 systems
(possibly on other Win9x as well). I have tested this on
an almost-out-of-the-box Win98 system as well a Win98 system
with all the latest MS patches including MSIE 6.0 SP1; symptoms
are identical. Systems ARE able to use the curl extension;
systems ARE able to use the gd2 extension. Systems are
NOT able to use the IMAP extension. There are many Usenet
messages about this problem as well; there doesn't seem to be
any solution that has been shown to work.
Symptoms can be demonstrated by either:
1) configure imap with php.ini, or
2) <?php dl ("php_imap.dll"); ?>
The error message returned is something like:
Unable to load dynamic library ...php_imap.dll
- A device attached to the system is not functioning.
A little bit more analysis with \windows\system\regsvr32 gives:
LoadLibrary ...php_imap.dll failed
GetLastError returns 0x0000001f.
The 0x1f (31) error maps to "device attached to the system is not
functioning"
is apparently a catch-all for errors for which the original programmers
could not be bothered supplying details. However, this is NOT the error
shown for missing DLLs (that's a 0x4xx error);
Analysis with scanbin (available from: http://www.bellamyjc.net/)
seems to show that there are two presumed problems with calls:
KERNEL32: LoadLibrarya
KERNEL32: GetProcAddress
The conclusion seems to be that the problem is inherent in
php_imap.dll itself, possibly the way in which is is built;
possibly some subtle API interface problem (with KERNEL32),
a difference between Win9x and WinNT kernels?
--
Edit bug report at http://bugs.php.net/?id=28493&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28493&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28493&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28493&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28493&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28493&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28493&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28493&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28493&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28493&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28493&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28493&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28493&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28493&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28493&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28493&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28493&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28493&r=float