-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Use must be in next opline assertion with patched infection & JIT #12511
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
Labels
Comments
There is something wrong with this test case. It fails runuing
this may be fixed by diff --git a/bugs/4_infection.sh b/bugs/4_infection.sh
index fa186e0..58ab62b 100755
--- a/bugs/4_infection.sh
+++ b/bugs/4_infection.sh
@@ -13,7 +13,8 @@ cd infection
composer i --ignore-platform-reqs
-php $refactor
+cp $refactor .
+php refactor.php
cp $standalone .
cp $wrap . |
The reduced test case <?php
function &foo(&$element, $property, $fallback = null) {
foreach (array(0) as $_) {
if (is_array($element) && (isset($element[$property]) || array_key_exists($property, $element))) {
return $element[$property];
} elseif (is_object($element) && property_exists($element, $property)) {
return $element->{$property};
}
return $fallback;
}
} Affected PHP-8.1 and above |
Fixed! |
dstogov
added a commit
that referenced
this issue
Oct 31, 2023
* PHP-8.1: Fixed GH-12511: Use must be in next opline assertion with patched infection
dstogov
added a commit
that referenced
this issue
Oct 31, 2023
* PHP-8.2: Fixed GH-12511: Use must be in next opline assertion with patched infection
dstogov
added a commit
that referenced
this issue
Oct 31, 2023
* PHP-8.3: Fixed GH-12511: Use must be in next opline assertion with patched infection
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
https://github.com/danog/jit_bugs, updated reproducer 4
Result:
Ping @dstogov
PHP Version
PHP-8.3 or 3fb685b
Operating System
No response
The text was updated successfully, but these errors were encountered: