From: andrew+bugsphp at wimpyprogrammer dot com Operating system: Windows Server 2008 R2 x64 PHP version: 5.4Git-2013-02-21 (snap) Package: LDAP related Bug Type: Bug Bug description:ldap_bind crash for ldaps://
Description: ------------ (I am using PHP 5.4.12 NTS, but it's not an option in the version menu. I tried grabbing a Windows snapshot but the 5.4 links on http://windows.php.net/snapshots/ are broken.) Calling ldap_bind() with an ldaps:// resource causes PHP via FastCGI to crash: HTTP Error 500.0 - Internal Server Error C:\PROGRA~2\PHP\PHP_5_4_12_NTS_x86\php-cgi.exe - The FastCGI process exited unexpectedly If the resource is ldap://, the connection succeeds. If I change my PHP version to 5.4.11 with the same PHP INI, both methods succeed. Test script: --------------- <?php // From http://php.net/manual/en/function.ldap-bind.php#example-4224. $ldaprdn = 'uname'; $ldappass = 'password'; // connect to ldap server $ldapconn = ldap_connect("ldaps://ldap.example.com") or die("Could not connect to LDAP server."); if ($ldapconn) { $ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass); if ($ldapbind) { echo "LDAP bind successful..."; } else { echo "LDAP bind failed..."; } } Expected result: ---------------- LDAP bind successful... Actual result: -------------- Error Summary HTTP Error 500.0 - Internal Server Error C:\PROGRA~2\PHP\PHP_5_4_12_NTS_x86\php-cgi.exe - The FastCGI process exited unexpectedly Detailed Error Information Module FastCgiModule Notification ExecuteRequestHandler Handler PHP 5.4.12 NTS x86 via FastCGI Error Code 0x000000ff Requested URL [Redacted] Physical Path [Redacted] Logon Method Anonymous Logon User Anonymous -- Edit bug report at https://bugs.php.net/bug.php?id=64267&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64267&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64267&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64267&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64267&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64267&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64267&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64267&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64267&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64267&r=support Expected behavior: https://bugs.php.net/fix.php?id=64267&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64267&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64267&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64267&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64267&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64267&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64267&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64267&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64267&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64267&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64267&r=mysqlcfg