mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
First pass at moving `Zend/tests/bug*` tests to existing sub directories Work towards GH-15631
16 lines
323 B
PHP
16 lines
323 B
PHP
--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 Error: Array callback has to contain indices 0 and 1 in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|