php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78143 SoapClient::__construct with no arguments cannot be caught
Submitted: 2019-06-11 12:47 UTC Modified: 2019-06-11 14:15 UTC
From: gadelat at gmail dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 7.3.6 OS: linux
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: gadelat at gmail dot com
New email:
PHP Version: OS:

 

 [2019-06-11 12:47 UTC] gadelat at gmail dot com
Description:
------------
So this is PHP 7.3 BC break and I can't find it in https://www.php.net/manual/en/migration73.incompatible.php

Constructing SoapClient with no arguments can no longer be caught. It's very likely other classes are affected as well. Where can I read about this BC break?

PS: Sorry for not selecting soap package when creating issue, but I don't see it anywhere in a list

Test script:
---------------
try { new SoapClient(); } catch (Throwable $e) {} // PHP 7.2 no output, PHP 7.3 result:  Warning: SoapClient::SoapClient() expects at least 1 parameter, 0 given in php shell code on line 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-06-11 13:41 UTC] sjon@php.net
-Package: *General Issues +Package: SOAP related
 [2019-06-11 14:15 UTC] cmb@php.net
This behavioral change has been introduced by fixing bug #77088.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Dec 08 11:01:24 2019 UTC