1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00

Using INI section.

This commit is contained in:
Dmitry Stogov
2003-12-19 15:09:40 +00:00
parent df76eba657
commit f06cbb764c

View File

@@ -1,9 +1,9 @@
--TEST--
Test array_sum()
--INI--
memory_limit=16M
--FILE--
<?php
$old_memory_limit = ini_get("memory_limit");
ini_set("memory_limit","16M");
$i = 0;
while ($i++ < 1000) {
$a[] = $i;
@@ -21,7 +21,6 @@ while ($j++ < 100000) {
$s3 = array_sum($c);
$s4 = array_sum($d);
var_dump($s3, $s4);
ini_set("memory_limit",$old_memory_limit);
?>
--EXPECT--
int(500500)