Error 500 on Log in #15
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: evolix/evoadmin-mail#15
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When login with unknown login, we have an error 500 with PHP error:
PHP Fatal error: Uncaught TypeError: ldap_get_entries(): Argument #2 ($result) must be of type LDAP\\Result, bool given in /usr/share/evoadmin-mail/lib/LdapServer.php:80\nStack trace:\n#0 /usr/share/evoadmin-mail/lib/LdapServer.php(80): ldap_get_entries()\n#1 /usr/share/evoadmin-mail/index.php(31): LdapServer->login()\n#2 {main}\n thrown in /usr/share/evoadmin-mail/lib/LdapServer.php on line 80
PHP 7.4 did not produce a fatal error but gave us these messages :
@gcolpart @dprevot This seems to fix the issue:
Changes were introduced to
ldap_get_entries()
(and otherldap_*()
functions) in PHP 8.1 and it broke our error handling code.There is now a pull request right here
Fixed in 1.0.12, thanks!