[GIT-PULLS] [php-src] PR #22655: Fix GH-11310: __debugInfo does nothing on userland classes extending Date classes

[email protected] (derickr)
Newsgroups php.git-pulls
Message-ID <AK3ydBue8vAk93f9QKZNVHFxFrWn2Mz7fZmRraLkq60@main.internal.php.net>
Pull Request: https://github.com/php/php-src/pull/22655
Author: derickr

The fix for `DateTime` also works for `DateTimeImmutable`, but `DateTimeZone` needed a separate fix.

I have also ran tests with valgrind locally, to make sure there are no memory issues.

Related to: https://github.com/php/php-src/issues/16317
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.