-
Notifications
You must be signed in to change notification settings - Fork 715
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
Smarty is not compatible with PHP 8.1 #671
Comments
what's really nasty is that fixing the class to work with 8.1 makes it break for < 8.1. the only fix I see is to either conditionally define the class depending on PHP version or alternatively renaming the property and using the changed name instead. Which one would you prefer? I can do a PR for both. |
I have created a copy of Smarty.class.php - and the code is
|
Is this the same as the issue that was raised on PHP internals list? |
I guess so |
It has now been discussed a little on the PHP internals list: |
See #678 |
Any news? |
if the problem being |
Just started with running our test site on PHP 8.1 and the RFC https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_arg about passing null to internal functions is generating deprecation warnings, e.g. in plugin modifier.truncate.php for mb_substr function. |
https://github.com/php/php-src/blob/php-8.1.0/UPGRADING
https://www.php.net/index.php#id2021-07-22-1
For example, this patch causes a fatal error
The expected error is
The text was updated successfully, but these errors were encountered: