View Issue Details

IDProjectCategoryView StatusLast Update
0030790mantisbtldappublic2023-02-22 19:21
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version2.25.6Fixed in Version2.25.6 
Summary0030790: Deprecated conversion of false to array in ldap_api.php with PHP 8.1
Description

With PHP 8.1, when $g_login_method = LDAP Mantis triggers an error:

DEPRECATED: 'Automatic conversion of false to array is deprecated' in '/path/to/mantisbt/core/ldap_api.php' line 289

Additional Information

PR https://github.com/mantisbt/mantisbt/pull/1830

TagsPHP 8.1

Relationships

has duplicate 0031695 closeddregad Fix Automatic conversion of false to array is deprecated notice on PHP 8.1 

Activities

dregad

dregad

2023-02-13 03:43

developer   ~0067384

Updating target/fixed version, as this was actually committed to 2.25 branch before being merged to master.

Related Changesets

MantisBT: master 8929b9a6

2022-06-28 10:21

KN4CK3R

Committer: dregad


Details Diff
Automatic conversion of false to array is deprecated

Error is triggered in ldap_api.php line 289 with PHP 8.1.

Fixes 0030790, PR https://github.com/mantisbt/mantisbt/pull/1830

Signed-off-by: Damien Regad <dregad@mantisbt.org>

The original patch was modified to follow coding guidelines, and the
commit message rewritten.
Affected Issues
0030790
mod - core/ldap_api.php Diff File