shannah / xataface

Framework for building data-driven web applications in PHP and MySQL
http://xataface.com
GNU General Public License v2.0
138 stars 58 forks source link

Xataface not working on php7.4 #121

Closed mike-at-acs closed 3 years ago

mike-at-acs commented 3 years ago

Our service provider is updating to php 7.4 shortly. Testing Xataface (2.2.5?) on 7.4 doesn't provide the login screen and gives multiple deprecated warnings. Are there any plans to update Xataface for php 7.4? Example warnings below:

Deprecated: Array and string offset access syntax with curly braces is deprecated in /.../xataface/public-api.php on line 781

Deprecated: Function get_magic_quotes_gpc() is deprecated in /.../xataface/config.inc.php on line 58

Deprecated: Array and string offset access syntax with curly braces is deprecated in /.../xataface/Dataface/Application.php on line 943

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Dataface_ConfigTool has a deprecated constructor in /.../xataface/Dataface/ConfigTool.php on line 33

Deprecated: Array and string offset access syntax with curly braces is deprecated in /.../xataface/Dataface/Table.php on line 2772

Deprecated: Array and string offset access syntax with curly braces is deprecated in /.../xataface/Dataface/Record.php on line 2594

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Dataface_Record has a deprecated constructor in /.../xataface/Dataface/Record.php on line 100

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Dataface_RecordIterator has a deprecated constructor in /.../xataface/Dataface/Record.php on line 4852

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Dataface_RelationshipIterator has a deprecated constructor in /.../xataface/Dataface/Record.php on line 4889

Deprecated: Array and string offset access syntax with curly braces is deprecated in /.../xataface/Dataface/LinkTool.php on line 48

Deprecated: Array and string offset access syntax with curly braces is deprecated in /.../xataface/Dataface/QueryTool.php on line 167

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Dataface_QueryTool has a deprecated constructor in /.../xataface/Dataface/QueryTool.php on line 36
shannah commented 3 years ago

The latest in github master should work.

airdrummer commented 3 years ago

it does, steve, u shd rilly update http://xataface.com/ from v2.1.2 & https://github.com/shannah/xataface/releases from 2.2.5;-)

mike-at-acs commented 3 years ago

Thanks for the quick replies. I see in version.txt I have 2.2.3 4808 (latest release when I started in Oct 2019). Is it okay to use the github master or should I use the latest github release (2.2.5)?

mike-at-acs commented 3 years ago

Yep, github master (version 3.0.0) is working fine on php 7.4. Thanks.