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:10
Avg. Score:4.3 ± 0.9
Reproduced:10 of 10 (100.0%)
Same Version:8 (80.0%)
Same OS:8 (80.0%)
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: steppinghat at gmail dot com
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 15:01:32 2024 UTC