ID: 45155
Updated by: bate@php.net
Reported By: david at globulebleu dot com
-Status: No Feedback
+Status: Open
Bug Type: SOAP related
Operating System: *
PHP Version: 5.2.6
New Comment:
changed status because this bug still exists and is reproduced
Previous Comments:
------------------------------------------------------------------------
[2009-06-22 13:20:31] bate@php.net
Hi Jani,
i strumbled over this issue and have the same bug here.
tested with latest 5.2snap. Results in a not called constructor or
other magic function.
the __destructor will be called but this is too late for handling
special stuff here.
------------------------------------------------------------------------
[2009-05-06 01:00:01] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2009-04-28 18:40:52] jani@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2009-02-03 09:44:08] r dot swets at gmail dot com
i can imagine that instead of using the constructor, the __wakeup
method is called.
------------------------------------------------------------------------
[2008-06-03 09:43:30] david at globulebleu dot com
Description:
------------
When using classmap to map the SOAP results to a class, the constructor
of the object you've mapped to is not called.
Reproduce code:
---------------
$client = new SoapClient("url_to_wsdl",
array('classmap' => array('contact' => "Contact"));
$params = array("1");
$contact = $client->__soapCall("get_contact", $params);
Expected result:
----------------
A contact object that has properties initialized (i.e. db connections,
...).
Actual result:
--------------
A contact object without the properties.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45155&edit=1