summaryrefslogtreecommitdiff
path: root/tests/executor/negative_memory_limit.phpt
diff options
context:
space:
mode:
authorBen Fuhrmannek2016-10-05 19:03:20 +0200
committerBen Fuhrmannek2016-10-05 19:03:20 +0200
commita4d148c28015a590ad41af80027b3ca4f446586c (patch)
tree521f6e8c47e58c74c692ea76b85155814b6ac363 /tests/executor/negative_memory_limit.phpt
parent22fc7126f7ba6796ab940906ccd4599f2398de27 (diff)
renamed tests
Diffstat (limited to 'tests/executor/negative_memory_limit.phpt')
-rw-r--r--tests/executor/negative_memory_limit.phpt18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/executor/negative_memory_limit.phpt b/tests/executor/negative_memory_limit.phpt
deleted file mode 100644
index 7fad546..0000000
--- a/tests/executor/negative_memory_limit.phpt
+++ /dev/null
@@ -1,18 +0,0 @@
1--TEST--
2memory_limit test: trying to set memory_limit to a negative value
3--SKIPIF--
4<?php if (!function_exists("memory_get_usage")) print "skip PHP not compiled with memory_limit support"; ?>
5--INI--
6memory_limit=16M
7suhosin.memory_limit=17M
8suhosin.log.syslog=0
9suhosin.log.script=0
10suhosin.log.sapi=2
11--FILE--
12<?php
13 ini_set("memory_limit", "-200000"); echo ini_get("memory_limit"), "\n";
14?>
15--EXPECTF--
16ALERT - script tried to disable memory_limit by setting it to a negative value -%d bytes which is not allowed (attacker 'REMOTE_ADDR not set', file '%s', line 2)
1716M
18