# SOAP's ctor's

- Thread: https://externals.io/message/12664
- Original archive: https://news-web.php.net/php.internals/12664
- Started by Marcus Boerger on 2004-09-09T10:22:00+00:00
- Messages: 6
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #12664 — Marcus Boerger — 2004-09-09T10:22:00+00:00

URL: https://externals.io/message/12664#12664

Hello Dmitry,

  does anything speak against changing soap's ctor's to
__construct which is the PHP 5 way of doing things? Patch
is attached.

-- 
Best regards,
 Marcus

---

## #12665 — Ron Korving — 2004-09-09T10:36:11+00:00

URL: https://externals.io/message/12664#12665 · In reply to: #12664

Didn't Dmitry fix this a long time ago? My SOAP constructors work fine with
__construct()

Ron

"Marcus Boerger" <helly@php.net> schreef in bericht
news:1774206462.20040909122200@marcus-boerger.de...
> Hello Dmitry,
>
>   does anything speak against changing soap's ctor's to
> __construct which is the PHP 5 way of doing things? Patch
> is attached.
>
> -- 
> Best regards,
>  Marcus

---

## #12671 — Dmitry Stogov — 2004-09-09T15:59:11+00:00

URL: https://externals.io/message/12664#12671 · In reply to: #12664

Hi Marcus,

Can you explain for what reason you changed prototype of the
SoapClient::__call?
This broke receiving of SOAP headers.

Dmitry.

> -----Original Message-----
> From: Marcus Boerger [mailto:helly@php.net] 
> Sent: Thursday, September 09, 2004 14:22
> To: Dmitry Stogov; internals@lists.php.net
> Subject: [PHP-DEV] SOAP's ctor's
> 
> 
> Hello Dmitry,
> 
>   does anything speak against changing soap's ctor's to 
> __construct which is the PHP 5 way of doing things? Patch is attached.
> 
> -- 
> Best regards,
>  Marcus

---

## #12676 — Dmitry Stogov — 2004-09-09T16:26:42+00:00

URL: https://externals.io/message/12664#12676 · In reply to: #12664

Hi Marcus,

May be your patch make sense.
But what is the difference between SoapServer::SaopServer and
SoapServer::__construct?
For me, they are equivalent.

Thanks. Dmitry.



> -----Original Message-----
> From: Marcus Boerger [mailto:helly@php.net] 
> Sent: Thursday, September 09, 2004 14:22
> To: Dmitry Stogov; internals@lists.php.net
> Subject: SOAP's ctor's
> 
> 
> Hello Dmitry,
> 
>   does anything speak against changing soap's ctor's to 
> __construct which is the PHP 5 way of doing things? Patch is attached.
> 
> -- 
> Best regards,
>  Marcus

---

## #12678 — Marcus Boerger — 2004-09-09T17:00:52+00:00

URL: https://externals.io/message/12664#12678 · In reply to: #12676

Hello Dmitry,

Thursday, September 9, 2004, 6:26:42 PM, you wrote:

> Hi Marcus,

> May be your patch make sense.
> But what is the difference between SoapServer::SaopServer and
> SoapServer::__construct?
> For me, they are equivalent.

__construct is the PHP 5 way whereas using the class name (PHP 4)
way requires some strange work around in the engine code.

marcus

---

## #12679 — Marcus Boerger — 2004-09-09T17:03:55+00:00

URL: https://externals.io/message/12664#12679 · In reply to: #12671

Hello Dmitry,

Thursday, September 9, 2004, 5:59:11 PM, you wrote:

> Hi Marcus,

> Can you explain for what reason you changed prototype of the
> SoapClient::__call?
> This broke receiving of SOAP headers.

__call() is an engine feature that requires either three (PHP 4)
or exactly 2 (PHP 5) parameters. If you need a more complex
function then you need to provide a separate function and
probably map both the new and _call onto a combined implementation.

best regards
marcus
