Re: Proposed changes to PHP language

From: Date: Wed, 06 Mar 2013 13:14:39 +0000
Subject: Re: Proposed changes to PHP language
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message

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 magic.
Introduce a type-hint “object” would be better I think. It would replace is_object call.
    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.
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. It
    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 :-). -- 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/

Thread (8 messages)

« previous php.internals (#66489) next »