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

- Thread: https://externals.io/message/130231
- Original archive: https://news-web.php.net/php.internals/130231
- Started by Pratik Bhujel on 2026-03-03T06:30:46+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #130231 — Pratik Bhujel — 2026-03-03T06:30:46+00:00

URL: https://externals.io/message/130231#130231

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

---

## #130236 — tim@bastelstu.be — 2026-03-03T12:05:47+00:00

URL: https://externals.io/message/130231#130236 · In reply to: #130231

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”): 
https://news-web.php.net/php.internals/130221.

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: 
https://news-web.php.net/php.internals/130235

Best regards
Tim Düsterhus
