|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-07 04:36 UTC] sniper@php.net
[2004-04-12 17:55 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 15:00:01 2025 UTC |
Description: ------------ Hi, When I use the SetClass method in my SoapServer object, it only triggers a constructor with the name of the class: ClassName() and not __construct. It happens when I don't even have a constructor called ClassName(), so it's not a problem of the order in which the Zend Engine looks for constructors. It simply always ignores __construct(). Reproduce code: --------------- class SoapHandler { function __construct($param) { die($param); } } $soap = new SoapServer(NULL, array("uri" => "urn:myurn")); $soap->setClass("SoapHandler", "myparam"); Expected result: ---------------- output: myparam Actual result: -------------- no output rename the __construct to SoapHandler() and it will work as expected