-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Allow PHP8.3 #74
Allow PHP8.3 #74
Conversation
Lock file needs a hash refresh |
That's the least of all issues...
https://github.com/laminas/laminas-diagnostics/actions/runs/6954575541/job/18921670184?pr=74 |
Ah yes, I think we solved that recently for laminas-session? |
Stupid question perhaps: Why are we going through all the hassle of setting up Memcached and Redis and Mongo et all to then just ignore those tests?
|
Signed-off-by: Andreas Heigl <[email protected]>
At least for now... Signed-off-by: Andreas Heigl <[email protected]>
Otherwise those extensions would not be installed correctly on PHP8.3 Signed-off-by: Andreas Heigl <[email protected]>
That got left behind when moving to current common CI setup I would guess and noone paid enough attention to notice. |
src/Check/IniFile.php
Outdated
@@ -22,7 +22,7 @@ class IniFile extends AbstractFileCheck | |||
*/ | |||
protected function validateFile($file) | |||
{ | |||
if (! is_array($ini = parse_ini_file($file)) || count($ini) < 1) { | |||
if (! is_array($ini = @parse_ini_file($file)) || count($ini) < 1) { |
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.
Could we use something like set_error_handler()
+ restore_error_handler()
here, perhaps? 🤔
Using @
always bites us back later, so just wondering
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 was indeed thinking about that and decided to skip it here for sake of brevity. But using the error handler might actually allow us to add the reported message to the error-message.
So will add
OK. Running the actual tests with the external tools fails. But it at least fails in all tested PHP-versions, so it's not related to PHP8.3 I created an issue to reintroduce these tests at #75 |
PHP8.3 now emits a syntax error warning in addition to returning `false` now. Previously the error was silently ignored and the returned value was an empty array. The `@` silcences the warning. As this is done during the check whether the ini-file can be parsed or not it should be safe here to not output the content of the warning. Signed-off-by: Andreas Heigl <[email protected]>
So shall I hit the "Merge" Button? Or is there anything missing? |
Remove 'ignore-platform-reqs' Signed-off-by: Andreas Heigl <[email protected]>
Thanks. Is there a release date planned? |
Description
This allows usage of the package using PHP8.3