You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
does not throw an exception. The first port is interpreted as 0, and the
second is interpreted as 123.
I expected both malformed ports to result in a ValueError. The parser should
require at least one decimal digit, reject trailing characters, and enforce the
existing 0..65535 range.
PHP Version
PHP 8.4.28-dev (cli) (built: Nov 1 2026 11:27:04) (ZTS DEBUG)
Copyright (c) The PHP Group
Zend Engine v4.4.28-dev, Copyright (c) Zend Technologies
The same permissive atoi() parsing is present on the current master branch.
Activity
somethingwithproof commentedon Nov 1, 2026
Fix proposed in #25138.
Fix phpGH-25137: Reject malformed SNMP ports