Re: [PHP-DEV] Proposal for a new array function

2016-02-08 Thread Cesar Rodas
On 2/8/16 2:04 PM, Eugene wrote: > On Mon, Feb 8, 2016 at 3:32 PM, Matthew Setter wrote: > >> I want to propose a new PHP array method, called has_numeric_keys (or >> something similar/better), that would have the following method signature: >> >> bool has_numeric_keys(array $array) >> >> The r

[PHP-DEV] PHP RFC: Add is_cacheable() stream-wrapper operation

2015-03-26 Thread Cesar Rodas
Hi! What is the status of https://wiki.php.net/rfc/streams-is-cacheable ? Will it be open for votes soon enough? It looks a silly change but pretty useful to some projects I have. Cheers, -- César D. Rodas Open Source developer +595-983-161124 PGP: F9ED A265 A3AB C8A1 D145 7368 158A 0336 C70

Re: [PHP-DEV] [RFC][Discussion] Parser extension API

2015-02-18 Thread Cesar Rodas
On 18/02/15 15:59, Nikita Popov wrote: > On Wed, Feb 18, 2015 at 7:22 AM, Dmitry Stogov wrote: > >> Hi, >> >> On Tue, Feb 17, 2015 at 2:46 PM, Alexander Lisachenko < >> lisachenko...@gmail.com> wrote: >> >>> Hello, internals! >>> >>> I want to introduce a RFC for providing a userland API for acce

Re: [PHP-DEV] Annotations in PHP7

2015-02-16 Thread Cesar Rodas
read *also* this annotations). I don't know however how hard it is to get it out on 7.0 but _I'd like_ to have it. Cheers, > > Thanks. Dmitry. > > > > On Mon, Feb 16, 2015 at 3:43 PM, Cesar Rodas wrote: > >> On 16/02/15 13:40, Alexander Lisachenko wrote: >>

Re: [PHP-DEV] Annotations in PHP7

2015-02-16 Thread Cesar Rodas
On 16/02/15 13:40, Alexander Lisachenko wrote: > 2015-02-16 15:31 GMT+03:00 Benjamin Eberlei : > >> My question is how do i evaluate this at runtime? I suppose a function is >> necessary like evaluate_ast(...), but that requires passing the context. >> many many open questions and as nikic points

Re: [PHP-DEV] Re: Annotations in PHP7

2015-02-16 Thread Cesar Rodas
On 16/02/15 12:36, Dmitry Stogov wrote: > yes. like it was proposed at > https://wiki.php.net/rfc/reflection_doccomment_annotations#list_of_methods_to_implement Awesome. I would +1 for sure! Cheers, > > Thanks. Dmitry. > > On Mon, Feb 16, 2015 at 2:34 PM, Cesar Rodas <

Re: [PHP-DEV] Re: Annotations in PHP7

2015-02-16 Thread Cesar Rodas
through reflections right? Or will it do something automatically as in Python? Cheers, > > Thanks. Dmitry. > > On Mon, Feb 16, 2015 at 2:22 PM, Cesar Rodas <mailto:ce...@rodas.me>> wrote: > > > On 16/02/15 12:19, Dmitry Stogov wrote: > > I decided to ex

Re: [PHP-DEV] Re: Annotations in PHP7

2015-02-16 Thread Cesar Rodas
On 16/02/15 12:19, Dmitry Stogov wrote: > I decided to explain the proposed annotation syntax "in words" to avoid > misunderstanding > > annotations ::= { annotation }. > annotation ::= '<' STRING '>' | '<' STRING '(' expr ')' '>'. > > where is regular PHP expression. Why not doc-block annotati

Re: [PHP-DEV] Question regarding stream wrappers and op code cache

2015-02-04 Thread Cesar Rodas
On 04/02/15 04:19, François Laupretre wrote: >> De : Cesar Rodas [mailto:ce...@rodas.me] >> I have a doubt, is it efficient include/require files from a source >> different than the "real file system" a stream wrapper class? My >> question is, would the op-code c

Re: [PHP-DEV] Question regarding stream wrappers and op code cache

2015-02-03 Thread Cesar Rodas
On 03/02/15 20:55, Leigh wrote: > On 3 February 2015 at 23:26, Cesar Rodas wrote: >> Hi Guys, >> >> I have a doubt, is it efficient include/require files from a source >> different than the "real file system" a stream wrapper class? My >> question i

[PHP-DEV] Question regarding stream wrappers and op code cache

2015-02-03 Thread Cesar Rodas
Hi Guys, I have a doubt, is it efficient include/require files from a source different than the "real file system" a stream wrapper class? My question is, would the op-code cache work as it would when reading a file form the filesystem? Cheers, -- César D. Rodas Open Source developer +595-983-1