mirror of
https://github.com/php/php-src.git
synced 2025-01-10 13:03:54 +08:00
4daa413898
Weird that this worked for so long, probably because nearly all ext/standard functions use fast ZPP rather than ordinary ZPP.
21 lines
349 B
PHP
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
|
|
)
|