Re: [PHP-DEV] PR 186: external protocols and locale independent string conversion

2012-10-29 Thread Alec Smecher
ned in e.g. the top of the pgsql.c file? Thanks, Alec -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PR 186: external protocols and locale independent string conversion

2012-10-26 Thread Alec Smecher
On 26/09/12 04:02 PM, Alec Smecher wrote: On 20/09/12 12:02 PM, Alec Smecher wrote: It looks to me like a textbook use case of pg_query_params will currently fail depending on what locale is being used. What Claude at <https://bugs.php.net/bug.php?id=46408#1334753071> and Lars here are

Re: [PHP-DEV] PR 186: external protocols and locale independent string conversion

2012-09-26 Thread Alec Smecher
On 20/09/12 12:02 PM, Alec Smecher wrote: It looks to me like a textbook use case of pg_query_params will currently fail depending on what locale is being used. What Claude at <https://bugs.php.net/bug.php?id=46408#1334753071> and Lars here are trying to do is make it a general fix, wh

Re: [PHP-DEV] PR 186: external protocols and locale independent string conversion

2012-09-20 Thread Alec Smecher
/bugs.php.net/bug.php?id=46408#1227272959) illustrates further: $oldLocale = setlocale(LC_NUMERIC, 'C'); pg_query_params($conn, 'INSERT INTO myTable (myColumn) values ($1)', array(3.5)); setlocale(LC_NUMERIC, $oldLocale); That's an example of a work-around for a broken API in my opinion. Thanks, Alec -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Package php binaries + php script into one singleexecutable file

2011-03-15 Thread Alec
is a thread I wrote that talks about making a static/stub exe: http://winbinder.org/forum/viewtopic.php?f=10&t=1178 Good luck! Alec Gorge On 3/15/2011 7:40 PM, Olivier Hoareau wrote: Found one interesting tool named PHPACK : http://winbinder.org/forum/viewtopic.php?f=8&t=1148 (windows

[PHP-DEV] Re: Package php binaries + php script into one single executable file

2011-03-15 Thread Alec
I am also interested in hearing the answer to this. Alec Gorge On 3/15/2011 4:09 PM, Olivier Hoareau wrote: Hi ! I would like to be able to "distribute" (freely) a single executable (binary) containing : - php binaries (v 5.3+) - a php script already packaged as a .phar (1 Mb, req

[PHP-DEV] Re: Proposed - Integrated inner iterator support for Iterator classes

2010-11-27 Thread Alec
I love it. This should get implemented. On 11/25/2010 4:52 PM, Nathan Nobbe wrote: Hi everyone, I've been taking another look at iterators lately, and compiled trunk and started experimenting with traits. I also looked at an old mail from Marcus regarding iterator_apply, and find myself wonde

Re: [PHP-DEV] PHP 5.4 - Meta attribute (aka. Annotations)supportdiscussion

2010-11-17 Thread Alec
ibute attribute functionAttr("test") public function Test() { ... or a class attribute new ClassAttr("Test") public function Test() { ... Does that lower the syntax bar enough? -Alec On 11/17/2010 4:12 AM, Zeev Suraski wrote: I’m not the only one in this thread repeating himself t

Re: [PHP-DEV] PHP 5.4 - Meta attribute (aka. Annotations) supportdiscussion

2010-11-16 Thread Alec Gorge
error/exception handling) if the url parsing code was put in, but I left it out for brevity. Opinions? -Alec On 11/16/2010 9:39 PM, guilhermebla...@gmail.com wrote: Hi Alec, Here is the quick list: - Where to put the metadata information? docblock or though php code? - Syntax (based on first dec

Re: [PHP-DEV] PHP 5.4 - Meta attribute (aka. Annotations) supportdiscussion

2010-11-16 Thread Alec Gorge
cs you are thinking of, just out of curiosity? Also, I can just post my syntax idea as a gist or pastie or something instead of making an rfc... -Alec On 11/16/2010 9:29 PM, guilhermebla...@gmail.com wrote: Hi Stas, Ok, so you think I should just consider everyone want some sort of meta

Re: [PHP-DEV] PHP 5.4 - Meta attribute (aka. Annotations) supportdiscussion

2010-11-16 Thread Alec Gorge
thread? Thanks. -Alec On 11/16/2010 9:11 PM, Stas Malyshev wrote: Hi! I think my reply ( http://article.gmane.org/gmane.comp.php.devel/63203 ) addresses this. It doesn't introduce any new language constructs per se. You could make it even more standard and clear by adding "

Re: [PHP-DEV] PHP 5.4 - Meta attribute (aka. Annotations) supportdiscussion

2010-11-16 Thread Alec
nt about syntax: we want to strive for consistency in syntax looking forward, particularly since PHP isn't well known for consistency (look at the string and array standard function names :D ). -Alec On 11/16/2010 8:46 PM, Stas Malyshev wrote: Hi! Poll will be opened for voting for 7 d

Re: [PHP-DEV] PHP 5.4 - Meta attribute (aka. Annotations) supportdiscussion

2010-11-16 Thread Alec
attribute. People will be able to easily Google, find and read the PHP docs for an explanation. I know we aren't supposed to go into syntax, but I am curious as to people's reactions if things stay very "php-esque" instead of trying to create a new syntax/imitate another

Re: [PHP-DEV] PHP 5.4 - Meta attribute (aka. Annotations) support discussion

2010-11-15 Thread Alec
To help keep track of votes I made a public Google doc: https://docs.google.com/document/d/11I7noRyNPbmgeFc1OSAFZfCfY3w3U4kNHpTVds09JCw/edit?hl=en I have recorded the 4 so far, but everytime you vote--or if you notice someone voted and didn't record it on the Google doc, please record it. Thi

Re: [PHP-DEV] PHP 5.4 - Meta attribute (aka. Annotations) support discussion

2010-11-15 Thread Alec
I forgot my vote too: +1 On 11/15/2010 9:27 PM, guilhermebla...@gmail.com wrote: @Zeev: That topic was related to an already built patch, which some where in favor, some against. That discussion lead to nowhere. So I opened a thread topic by topic for some democracy approval. As soon as we reach

Re: [PHP-DEV] PHP 5.4 - Meta attribute (aka. Annotations) support discussion

2010-11-15 Thread Alec
if I have forgotten any please state them. -Alec On 11/15/2010 7:55 PM, Will Fitch wrote: Wow. I should actually look at the RFCs more frequently. I have to say, assuming the patch is valid for PHP 5.3 (which I have no doubt it is), I don't see why this can't be taken more seriously. I

Re: [PHP-DEV] PHP 5.4 - Meta attribute (aka. Annotations) support discussion

2010-11-15 Thread Alec
at examples from the community. My 2 cents. -Alec On 11/15/2010 6:54 PM, Will Fitch wrote: I have certainly wanted them many times - especially when using SOAP. Having WSDL auto-generation without compromising developer documentation and attempting to have user-land code parse php

[PHP-DEV] Re: More formal feature request cycle

2010-09-15 Thread Alec
This could be good. A custom built site where people can vote for and against (and maybe neutral) something and then post their reasoning. Open discussion could still take place on internals, but a site that would provide a quick summary would be handy. So RFC wiki page + user registration tie

Re: [PHP-DEV] Re: Re: PHP Annotations RFC + Patch

2010-09-15 Thread Alec
Gustavo's message pretty much expresses exactly how I feel. As an extension, I feel that as long as annotations don't slow down existing non-annotated code (or code using the ridiculous phpdoc parsing), then I see no reason to keep annotations from being added. People argue that the new synta

[PHP-DEV] Re: Multithreading: I'm not complaining--I did something! (and itworkson Windows)

2010-08-24 Thread Alec
Another update! Added a new function and a new argument to a function. Check out example05.php for an example using curl. I am working on getting example02 and 03 to work. There is a bug when parameters are streams, the program crashes. Fun. -Alec On 8/23/2010 8:35 PM, Alec wrote: As an

[PHP-DEV] Re: Multithreading: I'm not complaining--I did something! (and it workson Windows)

2010-08-23 Thread Alec
acted me off the mailing list with a patch for the crash that would have taken me forever to track down! -Alec On 8/22/2010 11:12 PM, Alec wrote: Hi guys, long time reader, 2nd time poster. I realize there is much...bitterness about multithreading in PHP. I feel it is important, but I know o

[PHP-DEV] Multithreading: I'm not complaining--I did something! (and it works on Windows)

2010-08-22 Thread Alec
ns at http://github.com/moriyoshi/php-src/blob/PHP_5_3-threading/ext/threading/README Sorry for the wall of text, I just had a very productive 12 hours of coding and wanted to tell the world :D -Alec -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Using call_user_function with closures

2010-05-19 Thread Alec
back, &local_retval, 1, argsv TSRMLS_CC ) == FAILURE) { However, when the extension is loaded, it crashes on this line when callback is a closure. When callback is a string (a userspace function name), everything works fine. Thanks, Alec -- PHP Internals - PHP Runtime Development Mailing

Re: [PHP-DEV] PostgreSQL pg_query_params, PHP locales, and double data types

2008-11-18 Thread Alec Smecher
Alec Smecher wrote: Lukas Kahwe Smith wrote: On 17.11.2008, at 17:54, Alec Smecher wrote: I'm trying to get a PHP bug in the PostgreSQL pg_query_params function reopened; it's been marked bogus (incorrectly IMO). There are lots of details at <http://bugs.php.net/bug.php?id=46408&

Re: [PHP-DEV] PostgreSQL pg_query_params, PHP locales, and double data types

2008-11-18 Thread Alec Smecher
Lukas Kahwe Smith wrote: On 17.11.2008, at 17:54, Alec Smecher wrote: I'm trying to get a PHP bug in the PostgreSQL pg_query_params function reopened; it's been marked bogus (incorrectly IMO). There are lots of details at <http://bugs.php.net/bug.php?id=46408>. If this is in

[PHP-DEV] PostgreSQL pg_query_params, PHP locales, and double data types

2008-11-17 Thread Alec Smecher
Hi all, I'm trying to get a PHP bug in the PostgreSQL pg_query_params function reopened; it's been marked bogus (incorrectly IMO). There are lots of details at <http://bugs.php.net/bug.php?id=46408>. If this is in fact bogus, I'd appreciate a little bit of feedback