[PHP-DEV] invalid params return value

2009-12-30 Thread Stanislav Malyshev
Hi! One of the many things that is chaotic in PHP is what internal function returns when invalid parameters are given (i.e. params parsing fails). Most of those functions do one of: 1a. just return - this happens with most standard ext code, which was converted from old params parsing to a n

Re: [PHP-DEV] Re: Errors, Exceptions et al

2009-12-30 Thread Richard Lynch
On Wed, December 30, 2009 12:25 pm, Hans-Peter Oeri wrote: > Hi! > > Rasmus Lerdorf wrote: > >> Yeah, good luck with that. We have been imploring people for 10 >> years >> to not have display_errors on in production with very little >> success. > > I agree but am convinced at least part of that pr

Re: [PHP-DEV] Re: Errors, Exceptions et al

2009-12-30 Thread Richard Lynch
On Wed, December 30, 2009 8:30 am, Hans-Peter Oeri wrote: > Hi! > > Christian Schneider wrote: > >> leads to another inconsistency: Depending on the hosting provider >> and/or >> frameworks/modules used you'd have to write different error >> handlers. > > I understand there are widely differing app

[PHP-DEV] Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_2/NEWS branches/PHP_5_2/Zend/zend_builtin_functions.c branches/PHP_5_3/NEWS branches/PHP_5_3/Zend/zend_builtin_functions.c trunk/Zend/zend_bui

2009-12-30 Thread Johannes Schlüter
Hi, On Wed, 2009-12-30 at 19:15 +, Ilia Alshanetsky wrote: > iliaaWed, 30 Dec 2009 19:15:11 + > > Revision: http://svn.php.net/viewvc?view=revision&revision=292823 > > Log: > Fixed bug #44827 (define() allows :: in constant names). > > Bug: http://bu

Re: [PHP-DEV] Re: Errors, Exceptions et al

2009-12-30 Thread Hans-Peter Oeri
Hi! Rasmus Lerdorf wrote: > Yeah, good luck with that. We have been imploring people for 10 years > to not have display_errors on in production with very little success. I agree but am convinced at least part of that problem lies in the default php.ini, which - up to 5.2 - defaulted to display_

[PHP-DEV] Re: ext/pgsql and trunk

2009-12-30 Thread Matteo Beccati
Hi Ilia, Cc-ing internals Il 30/12/2009 15:39, Ilia Alshanetsky ha scritto: On 2009-12-30, at 4:45, Matteo Beccati wrote: Hi Ilia & Marcus, I'm sending this to both of you because I don't know who's the current maintainer of ext/pgsql (is the EXTENSIONS file up to date?) I've managed to fix

Re: [PHP-DEV] Re: Errors, Exceptions et al

2009-12-30 Thread Rasmus Lerdorf
Hans-Peter Oeri wrote: > Hi! > > Christian Schneider wrote: > >> leads to another inconsistency: Depending on the hosting provider and/or >> frameworks/modules used you'd have to write different error handlers. > > I understand there are widely differing applications for php, that's why > I thin

[PHP-DEV] Re: Errors, Exceptions et al

2009-12-30 Thread Hans-Peter Oeri
Hi! Christian Schneider wrote: > leads to another inconsistency: Depending on the hosting provider and/or > frameworks/modules used you'd have to write different error handlers. I understand there are widely differing applications for php, that's why I think backwards-compatibility and common de

[PHP-DEV] Re: Errors, Exceptions et al

2009-12-30 Thread Christian Schneider
Hans-Peter Oeri wrote: > The problem for me as a php end-user currently is, that no coherent > error behaviour in php exists. Core functions only issue errors, intl To be honest I prefer an inconsistent but stable error mechanism. Allowing to change the error behaviour (e.g. something as extreme a