Edit report at https://bugs.php.net/bug.php?id=64267&edit=1

 ID:                 64267
 Updated by:         paj...@php.net
 Reported by:        andrew+bugsphp at wimpyprogrammer dot com
 Summary:            ldap_bind crash for ldaps://
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            LDAP related
 Operating System:   Windows Server 2008 R2 x64
 PHP Version:        5.4Git-2013-02-21 (snap)
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2013-02-21 17:38:48] andrew+bugsphp at wimpyprogrammer dot com

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 this bug report at https://bugs.php.net/bug.php?id=64267&edit=1

Reply via email to