Bug #77005 [NEW]: Issues with LDAP PHP 7.0+ on macOS 11.14 (Mojave)
From: steppinghat at gmail dot com
Operating system: macOS 11.14 (Mojave)
PHP version: 7.2.11
Package: LDAP related
Bug Type: Bug
Bug description:Issues with LDAP PHP 7.0+ on macOS 11.14 (Mojave)
Description:
------------
LDAP does not work with PHP compiled for Mojave. My setup includes PHP
and httpd installed and configured via homebrew and was working as per
usual without an issue until I updated to Mojave and updated PHP from
7.2.9 -> 7.2.10. The upgrade pulled down a new set of compiled PHP
components and in doing broke LDAP. The following error is received
(apache error logs) alongside a ERR_EMPTY_RESPONSE in the browser when
running the test script below:
Assertion failed: (LDAP_VALID( ld )), function ldap_unbind_ext, file
unbind.c, line 46.
[Fri Oct 12 13:58:06.122852 2018] [core:notice] [pid 34621] AH00052:
child pid 35420 exit signal Abort trap (6)
The issue continued when updating to PHP 7.2.11 and I verified that
reverting to older versions including 7.0 no longer worked, even though
I have confirmed it working on my system before.
As per the brew formula, PHP is compiled with
--with-ldap=/usr/local/opt/openldap (openldap also provided via brew).
Considering there is a failed assertion as well it is safe to assume
that openldap is successfully linked into PHP on compilation.
For further information, see the following discussion on GitHub:
https://github.com/Homebrew/homebrew-core/issues/32916
Test script:
---------------
<?php
var_dump(ldap_unbind_ext());
Actual result:
--------------
Assertion failed: (LDAP_VALID( ld )), function ldap_unbind_ext, file
unbind.c, line 46.
[Fri Oct 12 13:58:06.122852 2018] [core:notice] [pid 34621] AH00052:
child pid 35420 exit signal Abort trap (6)
--
Edit bug report at https://bugs.php.net/bug.php?id=77005&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77005&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77005&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77005&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77005&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77005&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77005&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77005&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77005&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77005&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77005&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77005&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77005&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77005&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77005&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77005&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77005&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77005&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77005&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77005&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77005&r=mysqlcfg
Thread (3 messages)
- steppinghat at gmail dot com