mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
This can happen in degenerate cases where we know that the SWITCH_STRING argument is not refcounted. We should be treating it in the same way as SWITCH_LONG here.
16 lines
209 B
PHP
16 lines
209 B
PHP
--TEST--
|
|
A SWITCH_STRING operand FREE may be optimized away
|
|
--FILE--
|
|
<?php
|
|
function test($a) {
|
|
switch (!$a) {
|
|
case '':
|
|
r>l;
|
|
default:
|
|
}
|
|
}
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|