|  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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
25 - 17 = ?
Subscribe to this entry?

 [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: Sat Apr 13 15:01:30 2024 UTC