php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77005 Issues with LDAP PHP 7.0+ on macOS 11.14 (Mojave)
Submitted: 2018-10-12 06:05 UTC Modified: 2018-11-01 07:41 UTC
Votes:9
Avg. Score:4.4 ± 0.8
Reproduced:9 of 9 (100.0%)
Same Version:7 (77.8%)
Same OS:8 (88.9%)
From: steppinghat at gmail dot com Assigned:
Status: Wont fix Package: LDAP related
PHP Version: 7.2.11 OS: macOS 11.14 (Mojave)
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2018-10-12 06:05 UTC] steppinghat at gmail dot com
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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-11-01 07:34 UTC] heiglandreas@php.net
This is not an issue within the PHP-code as it seems that the LDAP-library Mojave brings is not binary-compatible to the required libraries. See https://github.com/Homebrew/homebrew-core/issues/32916#issuecomment-429501813 for more infos on that.
 [2018-11-01 07:41 UTC] heiglandreas@php.net
-Status: Open +Status: Wont fix
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Oct 20 03:01:26 2019 UTC