--TEST-- Access on NULL pointer in array_merge_recursive() --FILE-- [PHP_INT_MAX => null]], ['' => [null]], ); } catch (Throwable $e) { echo $e->getMessage(), "\n"; } try { array_merge_recursive( ['foo' => [PHP_INT_MAX => null]], ['foo' => str_repeat('a', 2)], ); } catch (Throwable $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- Cannot add element to the array as the next element is already occupied Cannot add element to the array as the next element is already occupied