File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug63173.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:17 2013 UTC (11 years, 7 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

--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: Array callback has to contain indices 0 and 1 in %s on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>