Bug #81239 [Com]: use_soap_error_handler doesn't do anything
| From: | wirebetapro at gmail dot com | Date: | Tue, 02 Nov 2021 06:08:03 +0000 |
| Subject: | Bug #81239 [Com]: use_soap_error_handler doesn't do anything | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-237495@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=81239&edit=1
ID: 81239
Comment by: wirebetapro at gmail dot com
Reported by: lauri dot jantti at netbaron dot fi
Summary: use_soap_error_handler doesn't do anything
Status: Open
Type: Bug
Package: SOAP related
Operating System: Ubuntu 20.04
PHP Version: 7.4.21
Block user comment: N
Private report: N
New Comment:
Best Laptop for Automotive Technicians
https://www.wirebeta.com/best-laptop-for-automotive-technicians/
Previous Comments:
------------------------------------------------------------------------
[2021-07-09 09:36:45] lauri dot jantti at netbaron dot fi
Description:
------------
We can't log php errors that occur inside soap server code at all.
Soap server returns fatal php errors back to client, without line numbers or traces so debugging is
very difficult.
There's older reports about the issue for example this: https://bugs.php.net/bug.php?id=42214
It was closed with jani@php.net explaining that fatal errors can't be caught inside running PHP
which was the case for PHP version 5.x but I believe PHP 7.x improvements should make catching and
logging fatal errors from soap server possible.
Even fixing the use_soap_error_handler(false); so that it logs fatals to the same place as non-soap
code would be great.
Test script:
---------------
// beginning of the soap server index.php
use_soap_error_handler(false);
Expected result:
----------------
PHP Fatal errors should go to error log configured in php.ini
Actual result:
--------------
PHP Fatal errors are returned from server to the client
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81239&edit=1