Bug 1374431

Summary: phpldapad does not work with php >= 5.5
Product: [Fedora] Fedora EPEL Reporter: Victoriano Giralt <victoriano>
Component: phpldapadminAssignee: Dmitry Butskoy <dmitry>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: el6CC: dmitry
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: phpldapadmin-1.2.3-2.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-09 14:48:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Victoriano Giralt 2016-09-08 16:10:30 UTC
Description of problem:
There is function name collision between PHP from 5.5 on and phpLDAPadmin: password_hash that was reported and solved in bug 974928 three years ago for Fedora 19 and 20 but has not appeared yet in EPEL.

Version-Release number of selected component (if applicable):
1.2.3-1.el6

How reproducible:
Always

Steps to Reproduce:
1. Update phpldapadmin to 1.2.3-1.el6 and php to anything from 5.5
2. Try to use /phpldapadmin via browser

Actual results:
PHP Fatal error:  Cannot redeclare password_hash() in /usr/share/phpldapadmin/lib/functions.php on line 2236

Expected results:
phpLDAPadmin start page

Additional info:
There is a patch and a new package in Fedora from 19 on.

Comment 1 Victoriano Giralt 2016-09-08 16:15:54 UTC
This error also manifests itself, at least with php 5.6:

preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

Comment 2 Fedora Update System 2016-09-23 23:46:58 UTC
phpldapadmin-1.2.3-2.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-bcea25fbda

Comment 3 Fedora Update System 2016-10-09 14:48:13 UTC
phpldapadmin-1.2.3-2.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.