mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
fa2c519544
* PHP-8.0: Fix GH-9697: array_walk($ffiInstance, function () {}) crashes due to expecting mutable array
15 lines
249 B
PHP
15 lines
249 B
PHP
--TEST--
|
|
GH-9697 (array_walk($ffiInstance, function () {}) crashes due to expecting mutable array)
|
|
--EXTENSIONS--
|
|
ffi
|
|
--INI--
|
|
ffi.enable=1
|
|
--FILE--
|
|
<?php
|
|
$x = FFI::new('int');
|
|
array_walk($x, function($x) { echo "test\n"; });
|
|
?>
|
|
DONE
|
|
--EXPECT--
|
|
DONE
|