RE: using arrays instead of stdClass
| From: | Dmitry Stogov | Date: | Tue, 05 Jun 2007 12:42:07 +0000 |
| Subject: | RE: using arrays instead of stdClass | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-30066@lists.php.net to get a copy of this message | ||
Hi Lukas,
I don't like to increase complexity of ext/soap with additional options.
It is already complex enough and simple object <-> array conversion doesn't
provide additional abilities.
I don't understand how ext/soap related to APC.
Thanks. Dmitry.
> -----Original Message-----
> From: Lukas Kahwe Smith [mailto:mls@pooteeweet.org]
> Sent: Tuesday, June 05, 2007 1:32 PM
> To: PHP Developers Mailing List; Dmitry Stogov
> Subject: using arrays instead of stdClass
>
>
> Hi,
>
> Hopefully I am not overlooking something here, but I never really
> appreciated the fact that all my complex types are returned
> as stdClass
> instances by default. Of course you can override this with custom
> classes via the classmap, but I would much prefer simple
> boring arrays.
>
> This has now become particularly relevant to me as APC seems
> to be less
> optimized for handling objects and specifically seems to be buggy
> handling stdClass [1].
>
> @Dmitry: Could we add yet another option to the soap server
> class to be
> able to force array's instead of stdClass?
>
> regards,
> Lukas
>
> [1] http://pecl.php.net/bugs/bug.php?id=8118
>