mirror of
https://github.com/php/php-src.git
synced 2026-04-18 13:31:27 +02:00
Followup to 5303bcdd32. We need to
perform the addref after emitting the opline, because that might
intern the string.
Fixes oss-fuzz #24479.
12 lines
240 B
PHP
12 lines
240 B
PHP
--TEST--
|
|
Refcount of constant LHS with nullsafe operator
|
|
--FILE--
|
|
<?php
|
|
['']?->a;
|
|
__DIR__?->a;
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Attempt to read property "a" on array in %s on line %d
|
|
|
|
Warning: Attempt to read property "a" on string in %s on line %d
|