Annotation of embedaddon/php/ext/standard/tests/array/array_product_variation4.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test array_product() function : variation
                      3: --FILE--
                      4: <?php
                      5: /* Prototype  : mixed array_product(array input)
                      6:  * Description: Returns the product of the array entries 
                      7:  * Source code: ext/standard/array.c
                      8:  * Alias to functions: 
                      9:  */
                     10: 
                     11: echo "*** Testing array_product() : variations ***\n";
                     12: 
                     13: echo "\n-- Testing array_product() function with a very large array --\n";
                     14: 
                     15: $array = array();
                     16: 
                     17: for ($i = 0; $i < 999; $i++) {
                     18:   $array[] = 999;
                     19: }
                     20: 
                     21: var_dump( array_product($array) );
                     22: ?>
                     23: ===DONE===
                     24: --EXPECTF--
                     25: *** Testing array_product() : variations ***
                     26: 
                     27: -- Testing array_product() function with a very large array --
                     28: float(INF)
                     29: ===DONE===

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