mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.5'
* PHP-8.5: memory_limit is not always limited by max_memory_limit
This commit is contained in:
19
tests/basic/gh17951_runtime_change_6.phpt
Normal file
19
tests/basic/gh17951_runtime_change_6.phpt
Normal file
@@ -0,0 +1,19 @@
|
||||
--TEST--
|
||||
GH-17951 Runtime Change 6
|
||||
--INI--
|
||||
memory_limit=128M
|
||||
max_memory_limit=512M
|
||||
--FILE--
|
||||
<?php
|
||||
for($i = 0; $i < 3; $i++) {
|
||||
ini_set('memory_limit', '1024M');
|
||||
echo ini_get('memory_limit');
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: Failed to set memory_limit to 1073741824 bytes. Setting to max_memory_limit instead (currently: 536870912 bytes) in %s on line %d
|
||||
512M
|
||||
Warning: Failed to set memory_limit to 1073741824 bytes. Setting to max_memory_limit instead (currently: 536870912 bytes) in %s on line %d
|
||||
512M
|
||||
Warning: Failed to set memory_limit to 1073741824 bytes. Setting to max_memory_limit instead (currently: 536870912 bytes) in %s on line %d
|
||||
512M
|
||||
Reference in New Issue
Block a user