Skip to content

memory_hard_limit_percent reporting wrong default value when null #24497

Open

Description

@jack-worman

Description

Actual behavior:

$ php -n -r 'var_dump(ini_get("memory_hard_limit_percent"));'
string(0) ""

Expected behavior:

$ php -n -r 'var_dump(ini_get("memory_hard_limit_percent"));'
string(2) "-1"

PHP Version

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

Activity

  1. changed the title [-]memory_hard_limit_percent="" not treated the same as it being null[/-] [+]memory_hard_limit_percent reporting wrong default value when null[/+] on Oct 21, 2026
  2. added 7 commits that reference this issue on Oct 21, 2026
    97e399a
    63aef69
    b39b315
    9aec5d6
    4ee399f
    f6fce38
    1a68531
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions