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 (12 years, 5 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

    1: --TEST--
    2: Bug #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--
   12: Fatal error: Array callback has to contain indices 0 and 1 in %s on line %d

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