xref: /PHP-8.2/ext/opcache/tests/bug77092.phpt (revision e9f783fc)
1--TEST--
2Bug #77092: array_diff_key() - segmentation fault
3--INI--
4opcache.enable_cli=1
5opcache.optimization_level=-1
6--EXTENSIONS--
7opcache
8--FILE--
9<?php
10function test() {
11    $anyArrayOne = ['foo' => 'bar', 'bar' => 'baz'];
12    $anyArrayTwo = ['foo' => null];
13
14    print_r(array_diff_key($anyArrayOne, $anyArrayTwo));
15}
16test();
17?>
18--EXPECT--
19Array
20(
21    [bar] => baz
22)
23