[php-src] PR #15724: deprecate json_encode() of non-serializable instances
| From: | pilif | Date: | Tue, 03 Sep 2024 10:08:08 +0000 |
| Subject: | [php-src] PR #15724: deprecate json_encode() of non-serializable instances | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28373@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15724
Author: pilif
there's a good reason for classes being marked as non-serializable, so it follows that the same
should probably be true for json_encoding them as well.
As this flag is only available to internal classes, no userland code should be affected.
This is the implementation of an RFC I'm currently in the process of authoring after there was
some mild agreement about this making sense when I asked on internals.
I will link to this PR as part of the RFC