Bug #81239 [NEW]: use_soap_error_handler doesn't do anything
| From: | lauri dot jantti at netbaron dot fi | Date: | Fri, 09 Jul 2021 09:36:45 +0000 |
| Subject: | Bug #81239 [NEW]: use_soap_error_handler doesn't do anything | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-234931@lists.php.net to get a copy of this message | ||
From: lauri dot jantti at netbaron dot fi
Operating system: Ubuntu 20.04
PHP version: 7.4.21
Package: SOAP related
Bug Type: Bug
Bug description:use_soap_error_handler doesn't do anything
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 bug report at https://bugs.php.net/bug.php?id=81239&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81239&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81239&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81239&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81239&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81239&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81239&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81239&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81239&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81239&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81239&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81239&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81239&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81239&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81239&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81239&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81239&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81239&r=mysqlcfg