[php-src] PR #21319: ext/snmp: promote invalid-input warnings to ValueError

From: Date: Sun, 01 Mar 2026 08:48:11 +0000
Subject: [php-src] PR #21319: ext/snmp: promote invalid-input warnings to ValueError
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-35060@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/21319 Author: prateekbhujel This addresses #21318 by promoting remaining invalid-input warning paths in ext/snmp to ValueError for consistency with PHP 8+ argument validation behavior. Changed paths: - Malformed IPv6 host (snmp_session_init) - Missing type/value in OID arrays (php_snmp_parse_oid) - Invalid contextEngineID (snmp_session_set_contextEngineID) Tests updated accordingly: - ext/snmp/tests/ipv6.phpt - ext/snmp/tests/snmpset.phpt - ext/snmp/tests/snmp2_set.phpt - ext/snmp/tests/snmp-object-setSecurity_error.phpt

« previous php.git-pulls (#35060) next »