using arrays instead of stdClass
| From: | Lukas Kahwe Smith | Date: | Tue, 05 Jun 2007 09:32:19 +0000 |
| Subject: | using arrays instead of stdClass | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-30064@lists.php.net to get a copy of this message | ||
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