|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #80884 SoapVar optional parameter types depend on PHP version
Submitted: 2021-03-18 18:24 UTC Modified: 2021-08-03 13:07 UTC
From: php at hatlak dot de Assigned: cmb (profile)
Status: Closed Package: SOAP related
PHP Version: 8.0.3 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: php at hatlak dot de
New email:
PHP Version: OS:


 [2021-03-18 18:24 UTC] php at hatlak dot de
From manual page:

Both the SoapVar main page and constructor documentation state that the optional parameters only accept string (and have an empty string as default value).

This changed with PHP 8:

They are now all nullable and have NULL as default value.

The documentation needs to be updated in such a way that both variants are covered. It's important because e.g. PHP 7.4 won't accept NULL (TypeError) while PHP 8 will.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-03-18 23:23 UTC]
-Status: Open +Status: Verified -Package: Documentation problem +Package: SOAP related
 [2021-03-18 23:23 UTC]
Ah, right, good catch!  Note that this changed only as of PHP
 [2021-08-03 13:07 UTC]
-Status: Verified +Status: Closed -Assigned To: +Assigned To: cmb
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 28 11:01:32 2024 UTC