Edit report at https://bugs.php.net/bug.php?id=45155&edit=1
ID: 45155
Comment by: andyidol at gmail dot com
Reported by: david at globulebleu dot com
Summary: Constructors not called when using classmap option
in SoapClient
Status: Open
Type: Bug
Package: SOAP related
Operating System: *
PHP Version: 5.2.6
Block user comment: N
Private report: N
New Comment:
Same here with 5.3.10. Maybe such classes should implement some specific
interface (to avoid situation when class constructor has some required
arguments) and to add some extra functionality, e.g:
<?php
interface SoapResult {
public function __construct();
public function afterDeserialize();
}
?>
Previous Comments:
------------------------------------------------------------------------
[2011-05-04 18:22:02] kissifrot at gmail dot com
Same problems happens with PHP 5.3.6 (dotdeb version) on Lenny.
This is quite annoying as we cannot later call the created object's methods due
to some logic done in the constructor (such as sanitizing for instance) which
is missing.
------------------------------------------------------------------------
[2010-05-04 18:10:39] philipp dot kempgen at amooma dot de
Same thing applies to SoapServer as well.
------------------------------------------------------------------------
[2010-05-04 18:03:36] philipp dot kempgen at amooma dot de
Bug still found in PHP 5.3.2.
------------------------------------------------------------------------
[2009-10-29 14:20:32] grzegorz dot drozd at esky dot pl
__wakeup is not called before deserialization from session (if you store object
in session of course). Only __set is called when setting properties.
------------------------------------------------------------------------
[2009-07-28 13:53:51] [email protected]
changed status because this bug still exists and is reproduced
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=45155
--
Edit this bug report at https://bugs.php.net/bug.php?id=45155&edit=1