-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#112: Fixing deprecated error messages by upgrading to smarty4. #151
#112: Fixing deprecated error messages by upgrading to smarty4. #151
Conversation
…marty4 php warnings. Updated documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for you review, but I don't think we can accept it like because of the lack of availability of smarty4 for now.
@@ -218,7 +218,7 @@ | |||
|
|||
# Smarty | |||
if (!defined("SMARTY")) { | |||
define("SMARTY", "/usr/share/php/smarty3/Smarty.class.php"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
.. _php-Smarty: https://pkgs.org/download/php-Smarty | ||
.. _smarty4: https://pkgs.org/download/smarty4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, you are in CentOS / RedHat section, and unfortunately, https://pkgs.org/download/smarty4 is only available for debian packages.
@@ -126,7 +126,7 @@ | |||
} | |||
|
|||
# Lock | |||
$pwdLockout = strtolower($ppolicy_entry[0]['pwdlockout'][0]) == "true" ? true : false; | |||
$pwdLockout = strtolower(isset($ppolicy_entry[0]['pwdlockout'][0])) == "true" ? true : false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No.
The value of $ppolicy_entry[0]['pwdlockout'][0]
is TRUE (or FALSE, or nonexistent)
This value is the one of pwdLockout attribute in LDAP directory
Also, please don't mix multiple features/bug fixes in the same commit or pull request.
@@ -82,6 +82,9 @@ | |||
$smarty->setCacheDir($cache_dir); | |||
$smarty->debugging = $smarty_debug; | |||
|
|||
# Muting warnings due to PHP 8+ | |||
$smarty->muteUndefinedOrNullWarnings(); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems really interesting, but:
- the method is not available on smarty 3, making service-desk crashing
- on smarty4, we still have a lot of warnings.
#112