PHP 8.2 compatibility

46 views
Skip to first unread message

Peter De Bodt

unread,
Mar 19, 2024, 9:55:14 AMMar 19
to Xataface
I recently upgraded my xampp test environment to PHP8.2, downloaded the latest xataface-master from https://github.com/shannah/xataface, but now I get a lot of PHP deprecated messages.
is xataface compatible with php 8.2? 

Francisco Martinez

unread,
Mar 29, 2024, 7:25:42 AMMar 29
to Xataface
Hi

I also upgraded to PHP Version 8.2.17 from PHP 8.0.x and I am getting multiple warnings of deprecated functions. My hosting company stopped support for PHP 8.0 and I will incur in premium support costs if I do not upgrade to at least 8.1.x. (warnings also show in 8.1)

Xataface is running on Linux shl-buildd-bs02 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux

I tried in index.php the following directives to hide the warnings but they still show in https://....//index.php?-table=dashboard and other pages in my app.
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE & ~E_STRICT );

The errors dissappear if I do display_errors = 0 but I am afraid of missing some more important errors.

I am sharing more details on the functions wiht warning hoping some more experienced collaborators or Steve can have a look at the compatibility issues with 8.2

Thank you

PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /homepages/../.../dataface/Dataface/SkinTool.php on line 361
PHP Deprecated:  Creation of dynamic property SQL_Parser::$commands is deprecated in /homepages/.../.../dataface/lib/SQL/Parser.php on line 110
PHP Deprecated:  Creation of dynamic property SQL_Parser::$quantifiers is deprecated in /homepages/.../.../dataface/lib/SQL/Parser.php on line 112
PHP Deprecated:  ctype_alpha(): Argument of type int will be interpreted as string in the future in /homepages/.../.../dataface/lib/SQL/Lexer.php on line 261
PHP Deprecated:  ctype_digit(): Argument of type int will be interpreted as string in the future in /homepages/.../.../dataface/lib/SQL/Lexer.php on line 273
PHP Deprecated:  ctype_alnum(): Argument of type int will be interpreted as string in the future in /homepages/.../.../dataface/lib/SQL/Lexer.php on line 346
PHP Deprecated:  Creation of dynamic property SQL_Parser::$all_tables is deprecated in /homepages/.../.../dataface/lib/SQL/Parser.php on line 1826
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /homepages/.../.../dataface/Dataface/Table.php on line 879
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /homepages/.../.../dataface/Dataface/Table.php on line 879
PHP Deprecated:  Creation of dynamic property PEAR_Error::$callback is deprecated in /homepages/.../.../dataface/PEAR.php on line 886
PHP Deprecated:  Creation of dynamic property HTML_QuickForm_Error::$callback is deprecated in /homepages/.../.../dataface/PEAR.php on line 886

And several others, I hope the above might provide background of the issue

Francisco

Steve Hannah

unread,
Mar 29, 2024, 12:19:47 PMMar 29
to xata...@googlegroups.com
Best advice for now is to not display deprecation warnings.

I do appreciate you posting them here though so I can address them.

I have a couple of apps on php 8.2 and xataface and they are working fine.  other than the deprecation warnings.



Steve Hannah
Web Lite Solutions Corp.


--
You received this message because you are subscribed to the Google Groups "Xataface" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xataface+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xataface/87f99ec2-8c81-4687-8a03-b5f9639ae8f0n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages