From:             ron at xit dot nl
Operating system: Debian
PHP version:      5.0.0RC1
PHP Bug Type:     Zend Engine 2 problem
Bug description:  SoapServer->setClass does not trigger __construct(), but only 
ClassName()

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

-- 
Edit bug report at http://bugs.php.net/?id=27838&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27838&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27838&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27838&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27838&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27838&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27838&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27838&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27838&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27838&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27838&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27838&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27838&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27838&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27838&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27838&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27838&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27838&r=float

Reply via email to