Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66488 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85573 invoked from network); 6 Mar 2013 13:08:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2013 13:08:35 -0000 Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.51 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 74.125.82.51 mail-wg0-f51.google.com Received: from [74.125.82.51] ([74.125.82.51:60411] helo=mail-wg0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/81-03015-2DF37315 for ; Wed, 06 Mar 2013 08:08:35 -0500 Received: by mail-wg0-f51.google.com with SMTP id 8so7615494wgl.30 for ; Wed, 06 Mar 2013 05:08:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=DsCDQQ3xk6vKXg5shj/CniB+t9PhMMUcSrx5t74l+KY=; b=0TojUMh6crDk2PGIUryeb44rIGzkQc4Gx5IEIozx8kYoxxZAKCk3W9tnleJ+BDStpj o2zreceUf2YIUd7W8oibzkS2vpzLJN8xUux9gohGk2DdezLfvgNV0Bhwlzk3l3aKShMh CfYU9mHw6p/DAdJHiv7afQvohSNQNsdBjKnv89WAVGawZmxEvp/hlyhiDeSoLeHlxh1r cRnjDhpToHkiVxIX1TauXjsm+xN+EGwydkE3juWAeetyO/aGJB4MQKi9cgfQzRgGw4OG B+VlzhU/5muaglvxzpl4TN+wys75pFV0/kwEIFf5mMArkY4Inmm87iumeRJJ6WjbVEoK uuzg== MIME-Version: 1.0 X-Received: by 10.194.87.229 with SMTP id bb5mr46422597wjb.32.1362575311463; Wed, 06 Mar 2013 05:08:31 -0800 (PST) Received: by 10.217.2.209 with HTTP; Wed, 6 Mar 2013 05:08:31 -0800 (PST) In-Reply-To: References: Date: Wed, 6 Mar 2013 13:08:31 +0000 Message-ID: To: Max Romanovsky Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=089e0102ffea6b6c6904d7414902 Subject: Re: [PHP-DEV] Proposed changes to PHP language From: leight@gmail.com (Leigh) --089e0102ffea6b6c6904d7414902 Content-Type: text/plain; charset=ISO-8859-1 On 6 March 2013 12:48, Max Romanovsky wrote: > Dear PHP Community, > > 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; } > catch (Exception $e) { throw $e; } This does what you want? (A quick test my end appears to keep the stack trace in-tact at least) > 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 magic. > I like this idea. > 3. Parse body of PUT request in the same manner as it's done for POST > request. I guess it should be stored in $_POST array to maintain > backward > compatibility. Otherwise $_REQUEST handling should be aware of new array > with PUT data. > I don't really like the idea of putting non-POST data in $_POST It would still be nice to have a better way of handing PUT though. --089e0102ffea6b6c6904d7414902--