[php-src] PR #12540: Mitigate #51561: SoapServer with a extented class and using sessions, lost the setPersistence()
| From: | nielsdos | Date: | Fri, 27 Oct 2023 19:10:51 +0000 |
| Subject: | [php-src] PR #12540: Mitigate #51561: SoapServer with a extented class and using sessions, lost the setPersistence() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24014@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12540
Author: nielsdos
The problem is that in the testcase, the session is started before the parent class is loaded. This
causes an incomplete class in the session storage. Then in the soap code the check
Z_OBJCE_P(tmp_soap_p) == service->soap_class.ce fails because it is the incomplete
class. It is a silent failure.
We cannot fix this easily. But we should let the user know something is wrong, because it leaves
them confused otherwise. So emit an error to let them know and suggest a fix.