[php-src] PR #23448: Fix GH-23447: segfault when the SoapServer class fails to initialize

From: Date: Tue, 25 Aug 2026 10:17:55 +0000
Subject: [php-src] PR #23448: Fix GH-23447: segfault when the SoapServer class fails to initialize
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-38125@lists.php.net to get a copy of this message
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

« previous php.git-pulls (#38125) next »