xref: /PHP-7.2/Zend/tests/bug63173.phpt (revision e97d5fab)
1--TEST--
2Bug #63173: Crash when invoking invalid array callback
3--FILE--
4<?php
5
6// the important part here are the indexes 1 and 2
7$callback = [1 => 0, 2 => 0];
8$callback();
9
10?>
11--EXPECTF--
12Fatal error: Uncaught Error: Array callback has to contain indices 0 and 1 in %s:%d
13Stack trace:
14#0 {main}
15  thrown in %s on line %d
16