|  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
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: 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
From manual page:

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-02 00:57 UTC]
-Package: Documentation problem +Package: SOAP related
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 04:01:29 2024 UTC