xref: /PHP-7.2/Zend/tests/bug70895.phpt (revision cc10da47)
1--TEST--
2Bug #70895 null ptr deref and segfault with crafted callable
3--FILE--
4<?php
5
6array_map("%n", 0);
7array_map("%n %i", 0);
8array_map("%n %i aoeu %f aoeu %p", 0);
9?>
10--EXPECTREGEX--
11Warning: array_map\(\) expects parameter 1 to be a valid callback, function '%n' not found or invalid function name in .+
12
13Warning: array_map\(\) expects parameter 1 to be a valid callback, function '%n %i' not found or invalid function name in .+
14
15Warning: array_map\(\) expects parameter 1 to be a valid callback, function '%n %i aoeu %f aoeu %p' not found or invalid function name in .+bug70895.php on line \d+
16