php-src/ext/opcache/tests/bug77092.phpt
Nikita Popov 4daa413898 Fixed bug #77092
Weird that this worked for so long, probably because nearly all
ext/standard functions use fast ZPP rather than ordinary ZPP.
2018-11-02 14:29:03 +01:00

21 lines
349 B
PHP

--TEST--
Bug #77092: array_diff_key() - segmentation fault
--INI--
opcache.enable_cli=1
opcache.optimization_level=-1
--FILE--
<?php
function test() {
$anyArrayOne = ['foo' => 'bar', 'bar' => 'baz'];
$anyArrayTwo = ['foo' => null];
print_r(array_diff_key($anyArrayOne, $anyArrayTwo));
}
test();
?>
--EXPECT--
Array
(
[bar] => baz
)