Re: [PHP-DEV] Generics proposal

2012-11-06 Thread Sara Golemon
Retrying this with reply-to-all. :) I think it's an awesome moment for PHP and HipHop to work together! :) I'll summarize what we have so far into an RFC. -Sara On Tue, Nov 6, 2012 at 12:50 PM, Lars Strojny wrote: > Hey Sara, > > can you already show us how your take on Generics would look lik

RE: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-06 Thread Laupretre François
> De : sebastian.krebs.ber...@gmail.com > > I hope you find more support on this than I had. Technically > speaking, > > it would be easy to extend autoloading to functions and constants. It > > can even be done without BC breaks, combining 'old-style' and 'new- > style' > > autoloaders without amb

RE: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-06 Thread Laupretre François
You're right. The argument of 'one symbol per file' is wrong. When I find the time, I'll consider writing an RFC and a patch for this. But, before, I'd like to get more support on this from list members as, IMO, most are still opposed to this extension. De : Levi Morrison [mailto:morrison.l...@

Re: [PHP-DEV] Incomprehension with preg_match and utf8

2012-11-06 Thread Felipe Pena
Hi guys, 2012/11/6 Philip Olson > > On Nov 5, 2012, at 8:55 AM, Rasmus Lerdorf wrote: > > > On 11/05/2012 08:41 AM, Jean-Sébastien Hedde wrote: > >> On Mon, 05 Nov 2012 08:04:06 -0800, Rasmus Lerdorf > >> wrote: > >>> > >>> I think the documentation is wrong on that. In Unicode mode [[:alnum:]]

Re: [PHP-DEV] Generics proposal

2012-11-06 Thread Lars Strojny
Hey Sara, can you already show us how your take on Generics would look like? Maybe this is a good moment for HipHop and PHP to do something together. Am 06.11.2012 um 04:14 schrieb Sara Golemon : > Sorry to be late to the conversation, but fwiw, HipHop is adding > Generics (and some other cool

Re: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-06 Thread Sebastian Krebs
2012/11/6 Laupretre François > > I've asked this question for a while (one, or two years ago or so). > > Must say, that I didn't remember the answer, but I would like to see > > autoloading for namespace-constants and functions too :) > > I proposed extending the autoload mechanism to functions a

Re: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-06 Thread Levi Morrison
On Tue, Nov 6, 2012 at 11:15 AM, Laupretre François < francois.laupre...@francetv.fr> wrote: > > A summary of the talk we had (6 years ago !) : > http://devzone.zend.com/616/zend-weekly-summaries-issue-306/ > If functions and classes use the same autoloader, then you can use a function to filename

RE: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-06 Thread Laupretre François
> I've asked this question for a while (one, or two years ago or so). > Must say, that I didn't remember the answer, but I would like to see > autoloading for namespace-constants and functions too :) I proposed extending the autoload mechanism to functions and constants several times since I rele

Re: [PHP-DEV] [VOTE] [RFC] ICU UConverter implementation for ext/intl

2012-11-06 Thread Lester Caine
Sara Golemon wrote: As far as what's returned by convert() in the case of codepoint errors, I thought that was explained in the usage sections, but I'll put some content into the error handling section as well (and link to the existing intl functions related to error surfacing, The problem with t

Re: [PHP-DEV] [VOTE] [RFC] ICU UConverter implementation for ext/intl

2012-11-06 Thread Sara Golemon
As far as what's returned by convert() in the case of codepoint errors, I thought that was explained in the usage sections, but I'll put some content into the error handling section as well (and link to the existing intl functions related to error surfacing, As to determining how many invalid code

Re: [PHP-DEV] Incomprehension with preg_match and utf8

2012-11-06 Thread Jean-Sébastien Hedde
On Tue, 6 Nov 2012 11:17:34 +0100, Pierre Joye wrote: > > I would try using the bundled PCRE instead. As far as I remember, > almost all distro uses the system PCRE and not always build with UTF-8 > support. Hi, I come to this conclusion too but I don't see what is missing in system PCRE : pcr

Re: [PHP-DEV] Incomprehension with preg_match and utf8

2012-11-06 Thread Pierre Joye
On Tue, Nov 6, 2012 at 11:17 AM, Pierre Joye wrote: > On Mon, Nov 5, 2012 at 10:57 AM, Jean-Sébastien Hedde > wrote: >> Hi, >> >> I'm facing an issue with preg_match and an UTF8 string. >> >> The pattern is : /^[[:alnum:]\s\-\'%]+$/u >> The string : Régis >> >> If I read the manual preg_match sh

Re: [PHP-DEV] Incomprehension with preg_match and utf8

2012-11-06 Thread Pierre Joye
hi, On Mon, Nov 5, 2012 at 10:57 AM, Jean-Sébastien Hedde wrote: > Hi, > > I'm facing an issue with preg_match and an UTF8 string. > > The pattern is : /^[[:alnum:]\s\-\'%]+$/u > The string : Régis > > If I read the manual preg_match should return 0 ("In UTF-8 mode, characters > with values grea

Re: [PHP-DEV] Incomprehension with preg_match and utf8

2012-11-06 Thread Galen Wright-Watson
On Mon, Nov 5, 2012 at 8:54 PM, Philip Olson wrote: > > [...] > A few simple/related facts: > > [...] > - Gustavo mentioned the related PHP change on Oct 3, 2010 (not sure > what PHP version, and googling for "87a237342" turns up empty, > and I miss SVN version numbers) > For reference:

Re: [PHP-DEV] [VOTE] [RFC] ICU UConverter implementation for ext/intl

2012-11-06 Thread Lester Caine
Sara Golemon wrote: There doesn't seem to be any further discussion. I figured if someone has more objections during the week this stays open for voting they can be addressed, and if need be the voting can be reset and resumed. This may already be covered elsewhere, but is there a return from