[PHP-DEV] [DISCUSS] ext/snmp promote invalid-input warnings to ValueError

Hi internals,

I opened https://github.com/php/php-src/pull/21319 to promote four ext/snmp invalid-input warnings to ValueError for invalid input.

Issue: https://github.com/php/php-src/issues/21318

Since this is a BC change I want guidance on whether this direction is acceptable and whether an RFC is required for this scope.

If the direction is positive I can prepare the RFC next.

Thanks,
Prateek Bhujel

Hi Pratik

Welcome to the list and thank you for your interest in contributing to PHP!

Am 2026-03-03 07:30, schrieb Pratik Bhujel:

Since this is a BC change I want guidance on whether this direction is
acceptable and whether an RFC is required for this scope.

If the direction is positive I can prepare the RFC next.

An RFC to handle this in a generic fashion, without needing to discuss every extension and function individually was proposed yesterday (“Exempt input type and value validation from BC Break policy”): php.internals: [RFC] Exempt input type and value validation from BC Break policy.

I recommend to wait for the results of that one (and possibly participate in the discussion) before proceeding.

See also this email that I just sent: php.internals: Re: [RFC] [VOTE]ValueError Conversions for PHP 8.6

Best regards
Tim Düsterhus