xref: /PHP-8.1/Zend/tests/bug67874.phpt (revision cf09bc78)
1--TEST--
2Bug #67874 Crash in array_map()
3--FILE--
4<?php
5$a = array(1,2,3);
6$data = array($a);
7$data = array_map('current', $data);
8var_dump($data);
9?>
10--EXPECT--
11array(1) {
12  [0]=>
13  int(1)
14}
15