Page 1 of 1

FlatPress 1.3.1 - PHP 8.4.0 Alpha 1

Posted: Sun Jul 07, 2024 7:25 am
by laborix
FlatPress 1.3.1 Quick&Dirty Test

Test Server Environment:
Apache 2.4 with FastCGI Interface and PHP 8.4.0 Alpha 1

Code: Select all

PHP Deprecated:  Smarty_Internal_Method_GetTemplateVars::getTemplateVars(): Implicitly marking parameter $_ptr as nullable is deprecated, the explicit nullable type must be used instead in .../fp-includes/smarty-4.3.1/libs/sysplugins/smarty_internal_method_gettemplatevars.php on line 34
PHP Deprecated:  Smarty_Internal_Method_GetTemplateVars::_getVariable(): Implicitly marking parameter $_ptr as nullable is deprecated, the explicit nullable type must be used instead in .../fp-includes/smarty-4.3.1/libs/sysplugins/smarty_internal_method_gettemplatevars.php on line 87
PHP Deprecated:  Smarty_Internal_TemplateCompilerBase::compileTemplate(): Implicitly marking parameter $parent_compiler as nullable is deprecated, the explicit nullable type must be used instead in .../fp-includes/smarty-4.3.1/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 386
PHP Deprecated:  Smarty_Internal_TemplateCompilerBase::compileTemplateSource(): Implicitly marking parameter $parent_compiler as nullable is deprecated, the explicit nullable type must be used instead in .../fp-includes/smarty-4.3.1/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 417
PHP Deprecated:  Smarty_Internal_Runtime_CodeFrame::create(): Implicitly marking parameter $compiler as nullable is deprecated, the explicit nullable type must be used instead in .../fp-includes/smarty-4.3.1/libs/sysplugins/smarty_internal_runtime_codeframe.php on line 28
PHP Deprecated:  Smarty_Resource_Custom::populate(): Implicitly marking parameter $_template as nullable is deprecated, the explicit nullable type must be used instead in .../fp-includes/smarty-4.3.1/libs/sysplugins/smarty_resource_custom.php on line 48

Re: FlatPress 1.3.1 - PHP 8.4.0 Alpha 1

Posted: Tue Jul 09, 2024 9:01 pm
by fraenkiman
Hello Laborix,

Thank you for the quick & dirty test. That was to be expected. I have recorded it here. Smatry 4 (including Smarty 4.5.3) only supports PHP 7.1 to PHP 8.3. We will have to get used to Smarty 5 in the near future.

With best regards
Frank

Re: FlatPress 1.3.1 - PHP 8.4.0 Alpha 1

Posted: Sat Jul 27, 2024 2:15 pm
by fraenkiman
Hello everyone,

Since PHP 8.4 will be released in October this year, it is necessary to switch from Smarty 4 to Smarty 5 in FlatPress.
I have created a branch on GitHub and have already started to replace Smarty methods and properties. Unfortunately, the work is not finished yet. I am therefore looking forward to your active support and pull requests.

A to-do list can be found here.

With best regards
Frank

Re: FlatPress 1.3.1 - PHP 8.4.0 Alpha 1

Posted: Sun Jul 28, 2024 4:02 pm
by laborix
fraenkiman wrote: Sat Jul 27, 2024 2:15 pm... Since PHP 8.4 will be released in October this year, it is necessary to switch from Smarty 4 to Smarty 5 in FlatPress. ...
Quick info, PHP 8.4 is planned for November 21, 2024.

Regardless of this, PHP 8.3 will be provided with security patches until December 31, 2027. So there should actually be plenty of time.
I will still test FlatPress 1.3.1 with PHP 8.4 Alpha 3, from beta development onwards, mostly only bugs are fixed.

Re: FlatPress 1.3.1 - PHP 8.4.0 Alpha 1

Posted: Fri Aug 02, 2024 4:09 pm
by laborix
laborix wrote: Sun Jul 28, 2024 4:02 pm... I will still test FlatPress 1.3.1 with PHP 8.4 Alpha 3, ...
The PHP 8.4.0 alpha 3 was surprisingly skipped and a PHP 8.4.0 alpha 4 was released instead.
Before anything happens again I'll wait for the PHP 8.4.0 feature freeze and then do the mentioned test with PHP 8.4.0 beta 1.
Better to wait before anything else happens ...