From: zbowden at vt dot edu
Operating system: Windows 2003
PHP version: 5.0.5
PHP Bug Type: LDAP related
Bug description: LDAP Searches cause Access Violation when connecting via LDAPS
Description:
------------
After moving to 5.0.5 from 5.0.4 I can no longer do ldap searches when
connecting via LDAPS URI -> ldap_connect(ldaps://server.com). I'm only
using Windows 2003/IIS6/ISAPI but it might occur on other platforms.
Replacing the libeay32.dll and ssleay32.dll with the versions distributed
with 5.0.4 fix the problem.
On the LDAP Server side I've tested against a Windows 2000 Active
Directory LDAP server and an OpenLDAP server and get the same results.
Reproduce code:
---------------
$host = "ldaps://server.com";
$ldap = ldap_connect($host);
$baseDn = "ou=accounts,dc=com";
// access violation will occur here
$result = ldap_search($ldap, $baseDn, "name=user", array('dn'));
Expected result:
----------------
PHP has encountered an Access Violation at _____
--
Edit bug report at http://bugs.php.net/?id=34482&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34482&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=34482&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=34482&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34482&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34482&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34482&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34482&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34482&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34482&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34482&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=34482&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=34482&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34482&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34482&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34482&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34482&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34482&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34482&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34482&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34482&r=mysqlcfg