Hi

Am 2026-05-02 10:50, schrieb LamentXU:
I am writing to ask for suggestions in bug Issue #21538 in php-src [1]. Currently when zend.multibyte=0, declare(encoding=...) will emit a warning for whatever the encoding is:

[…]

This would be a very minor change and do not worth a separate RFC. However, I think it is still important to send a email to gather opinions :) Also thank @alexdowad for giving me ideas. TiA :)

I suppose that `declare(encoding=…)` is so rarely used that folks will not have a strong opinion on it either way - except possible to remove the feature entirely to keep the parser simpler. That said: Suppressing the warning for ASCII and UTF-8 makes sense to me if folks want to explicitly specify it for some reason and zend.multibyte indeed has no effect at all on those encodings.

Best regards
Tim Düsterhus

Reply via email to