From:             josef dot spangler at rz dot uni-regensburg dot de
Operating system: Windows
PHP version:      4.3.6
PHP Bug Type:     IMAP related
Bug description:  imap with ssl not working on windows

Description:
------------
The php_imap extension is unable to connect over ssl to an imap server.
The reason is because the ssl engine is not initialized: 
In php_imap.c Line 435 the function 
  ssl_onceonlyinit ();
is not called on windows systems. 

The following fix will correct this:
*** php_imap.c.org      Thu Jan 15 01:36:08 2004
--- php_imap.c  Thu May 06 13:28:30 2004
***************
*** 427,438 ****
  #ifndef PHP_WIN32
        auth_link(&auth_log);           /* link in the log authenticator */
        auth_link(&auth_md5);       /* link in the cram-md5 authenticator */ 
  #if HAVE_IMAP_KRB && defined(HAVE_IMAP_AUTH_GSS)
        auth_link(&auth_gss);           /* link in the gss authenticator */
  #endif
  
  #ifdef HAVE_IMAP_SSL
        ssl_onceonlyinit ();
- #endif
  #endif

--- 427,438 ----
  #ifndef PHP_WIN32
        auth_link(&auth_log);           /* link in the log authenticator */
        auth_link(&auth_md5);       /* link in the cram-md5 authenticator */ 
  #if HAVE_IMAP_KRB && defined(HAVE_IMAP_AUTH_GSS)
        auth_link(&auth_gss);           /* link in the gss authenticator */
  #endif
+ #endif
  
  #ifdef HAVE_IMAP_SSL
        ssl_onceonlyinit ();
  #endif



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

Reply via email to