Re: [PHP-DEV] Continued try blocks

2013-04-26 Thread Amaury Bouchard
2013/4/26 Andreas Heigl > try { > $foo = $bar->getObject(); > $foo->doSomething() > } catch(Exception $e) { > continue // Or whatever shall be used > } > > When $bar->getObject throws an Exception no $foo is set. So the next > line will result in a "PHP Fatal error: Call to a member

AW: [PHP-DEV] Continued try blocks

2013-04-26 Thread Robert Stoll
I like the idea but would prefer another control structure such as CreateTryCatchBlockForEverySingleLine (should be shorter though) rather than continue. The continue keyword is confusing in my opinion. And I would say it should be for every single statement whereupon a statement is defined by eit

Re: [PHP-DEV] Continued try blocks

2013-04-26 Thread Andreas Heigl
Am 26.04.13 16:41, schrieb Julien Pauli: > Hello internals, > > I had an idea recently with a friend, about a feature try-catch blocks > could use. > Let me just write an example, you will quickly understand the idea : > > * * > * > *try {* > * foo();* > * bar();* > * baz();* > *} catch (So

[PHP-DEV] PDO Extension contributions

2013-04-26 Thread Guilherme Capilé
Ola, my name is Guilherme Capilé, I'm a Brazilian developer and I'd like to contribute to the PHP-SRC. Right now, specifically to the PDO DBLIB (ext/pdo_dblib) extension. I've already submitted a bug, a patch and a pull request, a month ago, but haven't got any responses so far -- looks like no on

[PHP-DEV] Total Access to the Concert Industry for Just $1 per Day!

2013-04-26 Thread CelebrityAccess
Access to the most current industry news and information including: - Over 47,000 detailed celebrity profiles - Box office scores - Complete agency and management rosters - Responsible and Territorial agents - Performance fees, production information, artist bios - Record company profiles, CD rel

Re: [PHP-DEV] Continued try blocks

2013-04-26 Thread Kalle Sommer Nielsen
Hi 2013/4/26 Lazare Inepologlou : > This seems like a BC break: > > for ( ; ; ) { > try { > ... > } catch (Exception $e) { > continue; > } > } > > With the proposed syntax, "continue" will no longer refer to the "for" loop. Well, at the moment "continue" is assigned to only usage i

Re: [PHP-DEV] Continued try blocks

2013-04-26 Thread Amaury Bouchard
I will answer, as the idea came from Pierrick Charron and I :-) Sometimes, you call functions (or methods) and you know they can throw some exceptions. But you don't want to stop all computations just because one of them raised an exception. Maybe you just want to log it, and go to the next call.

Re: [PHP-DEV] Continued try blocks

2013-04-26 Thread Patrick Schaaf
On Friday 26 April 2013 16:41:17 Julien Pauli wrote: > *try {* > * foo();* > * bar();* > * baz();* > *} catch (SomeException $e) {* > *dosomestuff();* > *continue; /* Here is the feature, go back to try block */* > *} catch (Exception $e) {* > *dosomething();* > *}* >... > So, i

Re: [PHP-DEV] Continued try blocks

2013-04-26 Thread Lazare Inepologlou
2013/4/26 Julien Pauli > Hello internals, > > I had an idea recently with a friend, about a feature try-catch blocks > could use. > Let me just write an example, you will quickly understand the idea : > > * * > * > *try {* > * foo();* > * bar();* > * baz();* > *} catch (SomeException $e) {*

Re: [PHP-DEV] Continued try blocks

2013-04-26 Thread Александр Бобров
Sounds interesting. And what about the second attempt passing the try block without goto? 2013/4/26 Julien Pauli > Hello internals, > > I had an idea recently with a friend, about a feature try-catch blocks > could use. > Let me just write an example, you will quickly understand the idea : > >

[PHP-DEV] Continued try blocks

2013-04-26 Thread Julien Pauli
Hello internals, I had an idea recently with a friend, about a feature try-catch blocks could use. Let me just write an example, you will quickly understand the idea : *

Re: [PHP-DEV] Re: [PHP-CVS] com php-src: Remove curl wrappers: ext/curl/config.m4 ext/curl/config.w32 ext/curl/interface.c ext/curl/php_curl.h ext/curl/streams.c ext/standard/basic_functions.c

2013-04-26 Thread David Soria Parra
On 2013-04-25, Stas Malyshev wrote: > Hi! > >> Shouldn't we >> >> Keep CURL_WRAPPERS_ENABLED defined to 0 ? >> >> or remove it from PHP-5.4 before 5.4.15 ? >> (was not included in any "official" version yet) > > Since the wrappers are gone, I think we should just drop it. If I don't > hear any o