Doc #80884 [NEW]: SoapVar optional parameter types depend on PHP version
From: php at hatlak dot de
Operating system:
PHP version: 8.0.3
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:SoapVar optional parameter types depend on PHP version
Description:
------------
---
From manual page: https://php.net/soapvar.construct
and https://php.net/class.soapvar
---
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:
https://github.com/php/php-src/commit/32d128d219f2d2d0767103091b4209a28f48b4ac
https://github.com/php/php-src/blob/master/ext/soap/soap.stub.php#L28
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.
--
Edit bug report at https://bugs.php.net/bug.php?id=80884&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80884&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80884&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80884&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80884&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80884&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80884&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80884&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80884&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80884&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80884&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80884&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80884&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80884&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80884&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80884&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80884&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80884&r=mysqlcfg
Thread (3 messages)
- php at hatlak dot de