xref: /PHP-7.3/ext/opcache/tests/bug77092.phpt (revision 75bc3446)
1--TEST--
2Bug #77092: array_diff_key() - segmentation fault
3--INI--
4opcache.enable_cli=1
5opcache.optimization_level=-1
6--SKIPIF--
7<?php require_once('skipif.inc'); ?>
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