summaryrefslogtreecommitdiff
path: root/Zend/tests/bug63173.phpt
blob: 34d3d6e7d7b217e4081df9d223e92c13093fe8f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Bug #63173: Crash when invoking invalid array callback
--FILE--
<?php

// the important part here are the indexes 1 and 2
$callback = [1 => 0, 2 => 0];
$callback();

?>
--EXPECTF--
Fatal error: Uncaught exception 'EngineException' with message 'Array callback has to contain indices 0 and 1' in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d