[php-src] Issue #24497: memory_hard_limit_percent="" not treated the same as it being null

From: Date: Wed, 21 Oct 2026 19:05:16 +0000
Subject: [php-src] Issue #24497: memory_hard_limit_percent="" not treated the same as it being null
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-253061@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/24497 Author: jack-worman ### Description The following code: Actual behavior: ```sh $ php -n -r 'var_dump(ini_get("memory_hard_limit_percent"));' string(0) "" $ php -dmemory_hard_limit_percent= -r 'var_dump(ini_get("memory_hard_limit_percent"));' Warning: memory_hard_limit_percent must be >= 100, or -1 in Unknown on line 0 string(0) "" ``` Expected behavior: ```sh $ php -n -r 'var_dump(ini_get("memory_hard_limit_percent"));' string(0) "" $ php -dmemory_hard_limit_percent= -r 'var_dump(ini_get("memory_hard_limit_percent"));' ``` ### PHP Version ```plain PHP 8.5.12 (cli) (built: Oct 21 2026 08:08:59) (NTS) Copyright (c) The PHP Group Built by Debian Zend Engine v4.5.12, Copyright (c) Zend Technologies with Zend OPcache v8.5.12, Copyright (c), by Zend Technologies ``` ### Operating System _No response_

« previous php.bugs (#253061) next »