-
Notifications
You must be signed in to change notification settings - Fork 20
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
random_bytes
and random_int
are detected as random
extension functions and PHP 8.2 min version requirement
#372
Comments
Existing Random Number functions moved to the new random extension since PHP 8.2.0 But If you analyse a source code on previous platform like PHP 8.1 or less, the rule is that you should get expected version PHP min = 7.0.2 Component impacted is PHP CompatInfo DB that handle versionning of all elements including Doctrine ORM queries. |
@MocioF FYI : All you'll then to do is run |
Thanks @llaville, I will upgrade the software, when you will merge the update. |
ExplainsFor developers who want to learn more about this issue. Example with class AMQPExceptionvendor/bin/doctrine dbal:run-sql 'select * from classes where name = "AMQPException";'
Before fix, you should get After fix, you will have Example with constant T_BAD_CHARACTERvendor/bin/doctrine dbal:run-sql 'select * from constants where name = "T_BAD_CHARACTER";'
Before fix, you should get After fix, you will have Example with function random_intvendor/bin/doctrine dbal:run-sql 'select * from functions where name = "random_int";'
Before fix, you should get After fix, you will have |
PHP CompatInfo DB 6.4.1 has just been released ! |
PHP CompatInfo DB 6.4.2 has just been released ! And a PHP CompatInfo 7.1.3 is on way ... |
PHP CompatInfo 7.1.3 has just been released ! |
Discussed in #371
Originally posted by MocioF March 18, 2024
Hi,
I'm starting using this tool to inspect the code base of a wp plugin.
I need some help interpreting the output.
php-compatinfo says that minimum php version required is 8.2.0beta1 but I think this is a false result because my plugin runs on PHP 7.4.
In the extension list I see 2 values greater than 7.4.
One is for a "random" extension, detected on functions random_bytes and_random_int that should be in the core https://www.php.net/manual/it/random.installation.php
The other one is for "core" that asks for a minimum PHP 8.1.0alpha1 (when php-compatinfo is run on PHP 8.1.26-r1 (compiled on gentoo).
Is there something i misunderstand in this output:
The text was updated successfully, but these errors were encountered: