php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #75472 SoapClient classmap: how are objects serialized?
Submitted: 2017-11-01 09:44 UTC Modified: 2019-01-02 00:57 UTC
From: a dot ross at amdev dot eu Assigned:
Status: Open Package: SOAP related
PHP Version: 7.1.11 OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2017-11-01 09:44 UTC] a dot ross at amdev dot eu
Description:
------------
---
From manual page: http://www.php.net/soapclient.soapclient
---

I found out by testing that PHP accesses properties (regardless of visibility (reflection?)) that match the name of attributes or child elements in the ComplexType definition. In the case of simplecontent, it uses the $_ property for the element content.

If a property with that name does not exist, it asks the object, so __get will be called if it exists.


The problem is that I can't find any of this in the documentation, and I don't know to what extent I can expect this to stay compatible in the future.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-02 00:57 UTC] girgias@php.net
-Package: Documentation problem +Package: SOAP related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 08:01:29 2024 UTC