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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: a dot ross at amdev dot eu
New email:
PHP Version: OS:

 

 [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

Pull Requests

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 Nov 02 21:01:28 2024 UTC