File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug63173.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:17 2013 UTC (10 years, 11 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--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>