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

From: Date: Thu, 10 Jan 2019 21:28:09 +0000
Subject: Bug #77440 [NEW]: ldap_bind using ldaps or ldap_start_tls()=exception in libcrypto-1_1-x64.dll
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218890@lists.php.net to get a copy of this message
From: tsimmons at gmail dot com Operating system: Windows 2008 R2, 64-bit PHP version: 7.2.14 Package: OpenSSL related Bug Type: Bug Bug description:ldap_bind using ldaps or ldap_start_tls()=exception in libcrypto-1_1-x64.dll 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 bug report at https://bugs.php.net/bug.php?id=77440&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77440&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77440&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77440&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77440&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77440&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77440&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77440&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77440&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77440&r=support Expected behavior: https://bugs.php.net/fix.php?id=77440&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77440&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77440&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77440&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77440&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77440&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77440&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77440&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77440&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77440&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77440&r=mysqlcfg

« previous php.bugs (#218890) next »