[GIT-PULLS] [php-src] PR #23448: Fix GH-23447: segfault when the SoapServer class fails to initialize
[email protected] (lazerg)
| Newsgroups | php.git-pulls |
|---|---|
| Message-ID | <[email protected]> |
Pull Request: https://github.com/php/php-src/pull/23448 Author: lazerg `SoapServer::handle()` ignored the return value of `object_init_ex()`, so when the class given to `setClass()` could not be instantiated the code carried on with a NULL zval and crashed on `Z_OBJCE_P(soap_obj)`. That happens for instance when a property default references an undefined constant, since evaluating it throws an `Error` and object creation fails. Now the failure is reported as a SOAP fault, the same way a throwing constructor already is. Fixes #23447