Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66489 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87094 invoked from network); 6 Mar 2013 13:14:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2013 13:14:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=ivan.enderlin@hoa-project.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ivan.enderlin@hoa-project.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain hoa-project.net from 95.130.12.24 cause and error) X-PHP-List-Original-Sender: ivan.enderlin@hoa-project.net X-Host-Fingerprint: 95.130.12.24 host1.trois-doubles.net Linux 2.6 Received: from [95.130.12.24] ([95.130.12.24:51186] helo=host1.trois-doubles.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 28/D1-03015-34147315 for ; Wed, 06 Mar 2013 08:14:46 -0500 Received: from Hwhost2.local (unknown [194.57.88.213]) by host1.trois-doubles.net (Postfix) with ESMTPSA id 55E6320AE28 for ; Wed, 6 Mar 2013 14:14:40 +0100 (CET) Message-ID: <5137413F.1030301@hoa-project.net> Date: Wed, 06 Mar 2013 14:14:39 +0100 Reply-To: ivan.enderlin@hoa-project.net User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Thunderbird/21.0a2 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Proposed changes to PHP language From: ivan.enderlin@hoa-project.net ("Ivan Enderlin @ Hoa") On 06/03/13 13:48, Max Romanovsky wrote: > Dear PHP Community, Hi, > I'd like to propose several changes to PHP core: > > 1. Allow re-throwing exceptions without losing original stack trace= , > like in other technologies: > try {/*...*/} catch(Exception $e) { throw; } throw $e will do the job. > 2. Introduce base class for all PHP classes. E.g. Object. It would = help > in type hinting and allow to add new common methods without any mag= ic. Introduce a type-hint =E2=80=9Cobject=E2=80=9D would be better I think. I= t would replace=20 is_object call. > 3. Parse body of PUT request in the same manner as it's done for PO= ST > request. I guess it should be stored in $_POST array to maintain ba= ckward > compatibility. Otherwise $_REQUEST handling should be aware of new = array > with PUT data. var_dump(file_get_contents('php://input')); Why is it complicated? And place PUT request body in $_POST sounds a bad = idea :-). > 4. Add handling of DateTime objects to SoapServer and SoapClient. I= t > will help in using this build-in datatype without typemap. > > I tried to google for these proposals, but didn't find any previous > discussions. Cheers :-). --=20 Ivan Enderlin Developer of Hoa http://hoa-project.net/ PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis) http://disc.univ-fcomte.fr/ and http://www.inria.fr/ Member of HTML and WebApps Working Group of W3C http://w3.org/