clifgriffin / simple-ldap-login

Integrate WordPress logins with LDAP. Simply.
63 stars 56 forks source link

Deprecated Warning: Array and string offset access syntax using curly braces is deprecated #63

Open mkormendy opened 3 years ago

mkormendy commented 3 years ago

Subject says all, see pull request #62 for fix. Tested on PHP 7.4.12 but should work all the way back to before PHP 5.1 (2008) when the deprecation warning was initially intended.

tmuka commented 2 years ago

for what it's worth, in php 8.1 this is now a fatal error. Thanks for linking the patch, @mkormendy applying that change to line 2267 in the latest file fixed the fatal.

PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/example.com/htdocs/wp-content/plugins/simple-ldap-login/includes/adLDAP.php on line 2267
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /var/www/example.com/htdocs/wp-content/plugins/simple-ldap-login/includes/adLDAP.php on line 2267