php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81239 use_soap_error_handler doesn't do anything
Submitted: 2021-07-09 09:36 UTC Modified: -
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: lauri dot jantti at netbaron dot fi Assigned:
Status: Open Package: SOAP related
PHP Version: 7.4.21 OS: Ubuntu 20.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lauri dot jantti at netbaron dot fi
New email:
PHP Version: OS:

 

 [2021-07-09 09:36 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 12:01:29 2024 UTC