Bug #80046 [Com]: b3: Zend/zend_opcode.c:773: keeps_op1_alive: Assertion `opline->opcode != 188
| From: | sjon@php.net | Date: | Thu, 03 Sep 2020 08:29:45 +0000 |
| Subject: | Bug #80046 [Com]: b3: Zend/zend_opcode.c:773: keeps_op1_alive: Assertion `opline->opcode != 188 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-228854@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80046&edit=1
ID: 80046
Comment by: sjon@php.net
Reported by: sjon@php.net
Summary: b3: Zend/zend_opcode.c:773: keeps_op1_alive:
Assertion `opline->opcode != 188
Status: Open
Type: Bug
Package: opcache
PHP Version: 8.0.0beta2
Block user comment: N
Private report: N
New Comment:
repro:
class a
{
protected function x(): bool
{
try
{
$credentials = something();
}
catch (Exception $e)
{
switch (get_class($e))
{
case Ex1::class:
case Ex2::class:
throw new Exception('');
default:
throw $e;
}
}
return true;
}
}
Previous Comments:
------------------------------------------------------------------------
[2020-09-03 08:19:25] sjon@php.net
(gdb) print opline->opcode
$1 = 188 '\274'
------------------------------------------------------------------------
[2020-09-03 08:17:13] nikic@php.net
Can you check what the actual value of opline->opcode is?
------------------------------------------------------------------------
[2020-09-03 08:13:31] sjon@php.net
Description:
------------
I'm seeing an assertion that doesn't really seem to be related to my code. I don't
mind debugging this but the exception seems (..) somewhat self-explanatory.
this in beta3
Test script:
---------------
Zend/zend_opcode.c:773: keeps_op1_alive: Assertion `opline->opcode != 188 &&
opline->opcode != 78 && opline->opcode != 126 && opline->opcode != 155
&& opline->opcode != 124 && opline->opcode != 182 && opline->opcode
!= 55' failed.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80046&edit=1