We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents da238e7 + 37e82ea commit 999e16aCopy full SHA for 999e16a
1 file changed
tests/basic/gh17951_runtime_change_6.phpt
@@ -0,0 +1,19 @@
1
+--TEST--
2
+GH-17951 Runtime Change 6
3
+--INI--
4
+memory_limit=128M
5
+max_memory_limit=512M
6
+--FILE--
7
+<?php
8
+for($i = 0; $i < 3; $i++) {
9
+ ini_set('memory_limit', '1024M');
10
+ echo ini_get('memory_limit');
11
+}
12
+?>
13
+--EXPECTF--
14
+Warning: Failed to set memory_limit to 1073741824 bytes. Setting to max_memory_limit instead (currently: 536870912 bytes) in %s on line %d
15
+512M
16
17
18
19
0 commit comments