-
-
Notifications
You must be signed in to change notification settings - Fork 181
Test PHP 7.3 and 7.4 #224
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
Test PHP 7.3 and 7.4 #224
Conversation
…alse on newer versions and is deprecated since PHP 7.4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lib/request/sfWebRequest.class.php
Outdated
|
|
||
| // GET parameters | ||
| $this->getParameters = get_magic_quotes_gpc() ? sfToolkit::stripslashesDeep($_GET) : $_GET; | ||
| if (version_compare(PHP_VERSION, '5.4', '<') && get_magic_quotes_gpc()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend to use 7.4.0-dev instead of 7.4.
Note that pre-release versions, such as 5.3.0-dev, are considered lower than their final release counterparts (like 5.3.0).
source https://www.php.net/manual/en/function.version-compare.php
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alquerci you mean 5.4.0-dev, right? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha, yes.
I through that patch is related to PHP 7.4 support. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the hint. Adjusted to 5.4.0-dev
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
I don't make a point in having my PR in — this one does the same and beyond 👍— I'll close #216 . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
get_magic_quotes_gpc()only for PHP < 5.4. It always returned false since PHP 5.4 and is deprecated since PHP 7.4