Bug #77440 [Com]: ldap_bind using ldaps or ldap_start_tls()=exception in libcrypto-1_1-x64.dll

From: Date: Thu, 10 Jan 2019 23:25:10 +0000
Subject: Bug #77440 [Com]: ldap_bind using ldaps or ldap_start_tls()=exception in libcrypto-1_1-x64.dll
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218893@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77440&edit=1 ID: 77440 Comment by: jbrady at sbccd dot org Reported by: tsimmons at gmail dot com Summary: ldap_bind using ldaps or ldap_start_tls()=exception in libcrypto-1_1-x64.dll Status: Open Type: Bug Package: OpenSSL related Operating System: Windows 2008 R2, 64-bit PHP Version: 7.2.14 Block user comment: N Private report: N New Comment: Was just going to post this. I'm having this issue as well. Exact same setup. Previous Comments: ------------------------------------------------------------------------ [2019-01-10 21:28:08] tsimmons at gmail dot com Description: ------------ When trying to either ldap_bind() to a server that was connected using ldap_connect("ldaps://ldapserver:636") syntax, or by using the ldap_start_tls() function, you get an unhandled exception in libcrypto-1_1-x64.dll. Code works fine in PHP 7.2.13. This error occurs with the downloaded PHP 7.2.14 NTS, x64. Test script: --------------- $server = "ldaps://ldapserver:636"; putenv('LDAPTLS_REQCERT=allow'); $con = ldap_connect($server); if(!$con) { ldap_get_option($con, LDAP_OPT_DIAGNOSTIC_MESSAGE, $err); return(false); } ldap_set_option($con, LDAP_OPT_PROTOCOL_VERSION, 3); ldap_set_option($con, LDAP_OPT_REFERRALS, 0); $ldaprdn = "ldapuser@domain.local"; $ldapbind = ldap_bind($con, $ldaprdn, $oldPassword); // THIS LINE CRASHES WITH: Unhandled exception at 0x000007FEE4153708 (libcrypto-1_1-x64.dll) in php.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF. Expected result: ---------------- Should bind without error. Actual result: -------------- Unhandled exception at 0x000007FEE4153708 (libcrypto-1_1-x64.dll) in php.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF. Exception thrown at 0x000007FEE4153708 (libcrypto-1_1-x64.dll) in php.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF. The program '[4264] php.exe' has exited with code 0 (0x0). ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77440&edit=1

« previous php.bugs (#218893) next »