Re: [PHP-DEV] Constructor object instance dereferentiation

2011-05-23 Thread Jaroslav Hanslik
Dne 23.5.2011 3:23, Felipe Pena napsal(a): Hi, 2011/5/22 Matthew Weier O'Phinneyweierophin...@php.net One thing not on the RFC that I'm curious about: if the class defines __invoke(), would the following work? new MyClass()(); That would be particularly useful for implementing helper

Re: [PHP-DEV] Constructor object instance dereferentiation

2011-05-23 Thread Jaroslav Hanslik
Dne 23.5.2011 3:23, Felipe Pena napsal(a): Hi, 2011/5/22 Matthew Weier O'Phinneyweierophin...@php.net One thing not on the RFC that I'm curious about: if the class defines __invoke(), would the following work? new MyClass()(); That would be particularly useful for implementing helper

Re: [PHP-DEV] call_user_func performance and dynamic code

2011-05-23 Thread Stas Malyshev
Hi! I'd like to ask a question about call_user_func/_array performance and the use of runtime variables to call functions and methods from the PHP internals perspective. There are two separate issues here: real-life PHP application performance and internal engine performance. If you are

Re: [PHP-DEV] call_user_func performance and dynamic code

2011-05-23 Thread Hannes Magnusson
On Mon, May 23, 2011 at 20:30, Stas Malyshev smalys...@sugarcrm.com wrote: Hi! I'd like to ask a question about call_user_func/_array performance and the use of runtime variables to call functions and methods from the PHP internals perspective. There are two separate issues here: real-life

Re: [PHP-DEV] Re: Is it true that short_open_tag is deprecated in PHP 6?

2011-05-23 Thread Thomas Hruska
On 5/19/2011 9:00 AM, dukeofgaming wrote: @Thomas I agree on dropping% for good, I personally don't know any project that uses it and don't think there is currently any point to them anymore. Also, I do use '? ' instead of '?' (originall I thought it might throw an error, then it became

Re: [PHP-DEV] [PATCH] pg_escape_literal/pg_escape_identifier for pgsql

2011-05-23 Thread Yasuo Ohgaki
2011/5/20 Hannes Magnusson hannes.magnus...@gmail.com: On Fri, May 20, 2011 at 03:24, Yasuo Ohgaki yohg...@ohgaki.net wrote: Hi all Current PostgreSQL has new escape functions for literals and identifiers. Since there is no function for that, I made patch for that. Attached patch is for

Re: [PHP-DEV] [PATCH] pg_escape_literal/pg_escape_identifier for pgsql

2011-05-23 Thread Yasuo Ohgaki
2011/5/24 Yasuo Ohgaki yohg...@ohgaki.net: Should we really provide fallback if PQescape(Literal|Identifier) isn't available? Did you copy the escaping from postgresql directly? Wouldn't it nice to have the same escaping capability for 8.x? It's not possible to copy the code, since it's