Re: [PHP-DEV] Proposed changes to PHP language

2013-03-08 Thread Martin Jansen
On 06.03.13 13:48, Max Romanovsky wrote: >4. Add handling of DateTime objects to SoapServer and SoapClient. It >will help in using this build-in datatype without typemap. This is (at least partially) covered by the patch in https://bugs.php.net/44383. Have you tried that one to see if its

Re: [PHP-DEV] Proposed changes to PHP language

2013-03-06 Thread Peter Lind
On 6 March 2013 15:50, Alexandre "TAZ" dos Santos Andrade < [email protected]> wrote: > This item > 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. > > StdClass Already do that > > >

Re: [PHP-DEV] Proposed changes to PHP language

2013-03-06 Thread Steve Clay
On 3/6/13 7:48 AM, Max Romanovsky wrote: 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. Type-hinting for non-stdClass objects would be handy. Base class is like mutable Object.prototype in J

Re: [PHP-DEV] Proposed changes to PHP language

2013-03-06 Thread Leigh
> > > 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. I wonder how much BC breakage there w

Re: [PHP-DEV] Proposed changes to PHP language

2013-03-06 Thread 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 jo

Re: [PHP-DEV] Proposed changes to PHP language

2013-03-06 Thread Leigh
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 (Exceptio

[PHP-DEV] Proposed changes to PHP language

2013-03-06 Thread Max Romanovsky
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; } 2. Introduce base class for all PHP classes. E.g. Object. It would help