What's new

Welcome to xCrud Community - Data Management and extended PHP CRUD

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

xCRUD on PHP 8.2

FILSILVA81

New member
Joined
Feb 3, 2022
Messages
29
Reaction score
2
Points
3
Location
Portugal
Hello everyone.

Is it possible to run XCRUD on PHP 8.2.

A lot of errors.

Can anyone share the fixed code please?
 

andyrav

New member
Joined
Mar 19, 2023
Messages
27
Reaction score
0
Points
1
Location
Uk
why pdocrud? this not been updated in since 16 November 2021
 

Damo

New member
Joined
Dec 9, 2021
Messages
3
Reaction score
0
Points
1
Location
London
Hello everyone.

Is it possible to run XCRUD on PHP 8.2.

A lot of errors.

Can anyone share the fixed code please?

XCRUD works fine on PHP 8.2.

The only real fix you need to undertake is to get rid of any lines in xcrud.php that relate to magic_quotes.

The only other issue you'll have is that Xcrud makes use of Dynamic Properties, which are deprecated in php8.2.

You can either suppress these via your ini config or via the xcrud.php file - Dynamic Properties won't be truly removed until 9.x.

That said, if you want to fix you really just have to make sure properties are declared at the top of the class, which is a pretty simple change.
 

Damo

New member
Joined
Dec 9, 2021
Messages
3
Reaction score
0
Points
1
Location
London
do not use xcrud it is best to use pdocrud
PDOCrud lacks so much customisation compared with XCRUD. Even basic stuff like passing variables programatically is a right pain in PDOCRUD, whereas in XCRUD it's easy. And don't get me started on the horror of session conflicts in PDOCRUD.

I tried shifting to PDOCRUD back when the original author vanished, but I find myself coming back to XCRUD time and time again.
 
Last edited:

FILSILVA81

New member
Joined
Feb 3, 2022
Messages
29
Reaction score
2
Points
3
Location
Portugal
XCRUD works fine on PHP 8.2.

The only real fix you need to undertake is to get rid of any lines in xcrud.php that relate to magic_quotes.

The only other issue you'll have is that Xcrud makes use of Dynamic Properties, which are deprecated in php8.2.

You can either suppress these via your ini config or via the xcrud.php file - Dynamic Properties won't be truly removed until 9.x.

That said, if you want to fix you really just have to make sure properties are declared at the top of the class, which is a pretty simple change.
Do you mind sharing the file updated to PHP 8?
 

alexanderm

New member
Joined
Aug 19, 2024
Messages
1
Reaction score
0
Points
1
Location
Cape Town
any further traction on this request .... Im wanting to use Joomla 5 and its not working well ... php 8.1.28
 
Last edited:

ctucker

New member
Joined
Feb 6, 2025
Messages
2
Reaction score
0
Points
1
Location
Canada
I am a nubie. How do you deal with the magic_quotes?

You say "That said, if you want to fix you really just have to make sure properties are declared at the top of the class, which is a pretty simple change". How do we do this or is there somewhere I can go for the info?
 
Top Bottom