-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix (at lease part of the) #GH-10635: ARM64 function JIT causes impos…
…sible assertion
- Loading branch information
Showing
3 changed files
with
38 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--TEST-- | ||
GH-10635: Function JIT causes impossible assertion | ||
--INI-- | ||
opcache.enable=1 | ||
opcache.enable_cli=1 | ||
opcache.file_update_protection=0 | ||
opcache.jit_buffer_size=1M | ||
--FILE-- | ||
<?php | ||
trait T { | ||
function foo() { | ||
return reset($this->a); | ||
} | ||
} | ||
class C { | ||
use T; | ||
private array $a = [1]; | ||
} | ||
$o = new C; | ||
$o->foo(); | ||
unset($o); | ||
$o = new C; | ||
$o->foo(); | ||
unset($o); | ||
?> | ||
DONE | ||
--EXPECT-- | ||
DONE |