Skip to content
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

get / set magic_quotes_runtime removed in PHP 8.0 / 7.0 #64

Closed
jofranz opened this issue Apr 14, 2023 · 2 comments
Closed

get / set magic_quotes_runtime removed in PHP 8.0 / 7.0 #64

jofranz opened this issue Apr 14, 2023 · 2 comments

Comments

@jofranz
Copy link
Member

jofranz commented Apr 14, 2023

phpcs -p . --standard=PHPCompatibility --extensions=php --runtime-set testVersion 7.4-8.1

FILE: CiviProxy/proxy/libs/Cache/Lite.php
---------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
---------------------------------------------------------------------------------------------------------
 758 | ERROR | Function get_magic_quotes_runtime() is deprecated since PHP 7.4 and removed since PHP 8.0
 760 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
 776 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
 837 | ERROR | Function get_magic_quotes_runtime() is deprecated since PHP 7.4 and removed since PHP 8.0
 839 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
 843 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
---------------------------------------------------------------------------------------------------------

internal reference: 19712

@jofranz jofranz mentioned this issue Apr 14, 2023
2 tasks
@pbatroff
Copy link
Contributor

I can confirm this, I just ran into this problem. Unfortunately the caching Library isn't maintained since 2019 and there aren't any solutions with that particular Library

@bjendres Imo we need a solution here, and I am curious that noone else ran into this

#21 is related

@pbatroff pbatroff added this to the CiviProxy 1.0.0 milestone Jan 17, 2024
@pbatroff
Copy link
Contributor

pbatroff commented May 24, 2024

Functions will only be called if function exists as far as I can see. General PHP8 compatibility is handled in #62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants