Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30064 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41419 invoked by uid 1010); 5 Jun 2007 09:35:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 41404 invoked from network); 5 Jun 2007 09:35:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2007 09:35:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 83.97.120.93 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 83.97.120.93 mail-out-04.swisscom-eurospot.com Received: from [83.97.120.93] ([83.97.120.93:2834] helo=safetwo.sceur.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 39/D3-11953-D4E25664 for ; Tue, 05 Jun 2007 05:35:09 -0400 Received: from safetwo.sceur.ch (localhost.localdomain [127.0.0.1]) by safetwo.sceur.ch (Postfix) with ESMTP id D22F2574929; Tue, 5 Jun 2007 09:32:17 +0000 (UTC) Received: from [127.0.0.1] (unknown [217.193.145.242]) by safetwo.sceur.ch (Postfix) with ESMTP; Tue, 5 Jun 2007 09:32:17 +0000 (UTC) Message-ID: <46652DA3.3030909@pooteeweet.org> Date: Tue, 05 Jun 2007 11:32:19 +0200 User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: PHP Developers Mailing List , Dmitry Stogov Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-PacNet-SG-Metrics: snail 1358; Body=2 Fuz1=2 Fuz2=2 Subject: using arrays instead of stdClass From: mls@pooteeweet.org (Lukas Kahwe Smith) 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