Re: [PHP-DEV] C++-like function-try-block proposal

2017-12-02 Thread Alexei Gerasimov
> I'd like to see an RFC that demonstrates a stronger use case than "avoiding > one level of indentation and ", however. Sure, as soon as I am able to register and write on wiki.php.net. > Let's not forget PHP 5 has been around for over a decade before PHP 7 even > showed up. There are still a lo

Re: [PHP-DEV] C++-like function-try-block proposal

2017-12-02 Thread Alexei Gerasimov
> It would blur the concept of a function body scope, and thus the mental model > of how the language works. > E.g. are local variables and parameters shared between the try {} and the > catch {} block? PHP documentation stresses it that the scope is always the entire function, i.e. it isn't li

Re: [PHP-DEV] C++-like function-try-block proposal

2017-12-02 Thread Alexei Gerasimov
> > I did (using this e-mail address), and got the message: "The user has been > > created and the password was sent by email." However, I did not receive any > > e-mail with the password. > > Sorry for the trouble, seems like nobody tested the sign up process after the > server migration yet. I

Re: [PHP-DEV] C++-like function-try-block proposal

2017-11-27 Thread Alexei Gerasimov
> > I'd like to go ahead and write a better-phrased > > RFC out of what feedback I have gotten so far. The RFC howto speaks of some > > "karma". > > How do I get that? > > You have to register for a Wiki account first, see > . Then someone has to approve it.

Re: [PHP-DEV] C++-like function-try-block proposal

2017-11-27 Thread Alexei Gerasimov
I could try to come up with a better and more realistic use case example for it if I am ever allowed to make an actual RFC out of it. But still, perhaps my best argument is that it is very cheap to implement, and may potentially make code look neater. -Alexei -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] C++-like function-try-block proposal

2017-11-27 Thread Alexei Gerasimov
> Should be fixed now, please retry. Yes, this time it worked, thank you. I'd like to go ahead and write a better-phrased RFC out of what feedback I have gotten so far. The RFC howto speaks of some "karma". How do I get that? -Alexei -- PHP Internals - PHP Runtime Developme

Re: [PHP-DEV] [PATCH] Net_URL

2006-09-24 Thread Alexei
Thanks Jan Sorry guys, description of how to submit patches was a bit confusing on pear website. Alexei Jan Lehnardt wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey Alexei, Thanks you for your patch! I committed it. For future reference however, these patches should go into the

[PHP-DEV] [PATCH] Net_URL

2006-09-24 Thread Alexei
Here is a patch for // $Id: URL.php,v 1.42 2005/10/29 11:17:56 dufuz Exp $ // // Net_URL Class Misspelled variable in function Net_URL::setProtocol() 418c418 < $this->port = is_null($port) ? $this->getStandardPort($protocal) : $port; --- > $this->port = is_null($port)