Re: [PHP-DEV] docBlock Parser RFC

2010-09-17 Thread Ferenc Kovacs
On Thu, Sep 16, 2010 at 10:56 PM, Chad Fulton chadful...@gmail.com wrote: Hello, Based on comments from the annotations thread, I have created a docBlock parser RFC at http://wiki.php.net/rfc/docblockparser This RFC does not deal with annotations per se, but only with the idea of adding a

Re: [PHP-DEV] Annotations Alternative?

2010-09-17 Thread Ferenc Kovacs
On Fri, Sep 17, 2010 at 3:28 AM, Stanley Sufficool ssuffic...@gmail.comwrote: After reading a little of this back and forth of annotations, validation and documentation (oh my). I thought, why not just abstract the standard types (string, int, bool, etc...) to SPL classes. This would allow

Re: [PHP-DEV] docBlock Parser RFC

2010-09-17 Thread Mike van Riel
On Thu, 2010-09-16 at 13:56 -0700, Chad Fulton wrote: Hello, Based on comments from the annotations thread, I have created a docBlock parser RFC at http://wiki.php.net/rfc/docblockparser This RFC does not deal with annotations per se, but only with the idea of adding a function to the

[PHP-DEV] On how a little knowledge is completely useless.

2010-09-17 Thread Richard Quadling
Hello all. In trying to follow the annotations threads currently running, I've come to realise just how little I understand a LOT of what I read here. But, then again, I don't need to, so hurrah for me. I try to follow, but, #fail most of the time. One thing that did come to mind is if we

Re: [PHP-DEV] On how a little knowledge is completely useless.

2010-09-17 Thread Pierre Joye
hi, On Fri, Sep 17, 2010 at 11:02 AM, Richard Quadling rquadl...@gmail.com wrote: Is this something that can just be an extension with its own evolution? Unless the PHP parser engine can be extended via normal or zend extensions, no, it can't. And pretty useless to have annotations outside the

Re: [PHP-DEV] On how a little knowledge is completely useless.

2010-09-17 Thread Christian Kaps
On Fri, 17 Sep 2010 10:02:10 +0100, Richard Quadling rquadl...@gmail.com wrote: Hello all. In trying to follow the annotations threads currently running, I've come to realise just how little I understand a LOT of what I read here. But, then again, I don't need to, so hurrah for me. I try

Re: [PHP-DEV] docBlock Parser RFC

2010-09-17 Thread Matthew Weier O'Phinney
On 2010-09-16, Gustavo Lopes glo...@nebm.ist.utl.pt wrote: On Thu, 16 Sep 2010 21:56:04 +0100, Chad Fulton chadful...@gmail.com wrote: Based on comments from the annotations thread, I have created a docBlock parser RFC at http://wiki.php.net/rfc/docblockparser This RFC does not deal

Re: [PHP-DEV] On how a little knowledge is completely useless.

2010-09-17 Thread Rafael Dohms
On Fri, Sep 17, 2010 at 6:28 AM, Christian Kaps christian.k...@mohiva.com wrote: On Fri, 17 Sep 2010 10:02:10 +0100, Richard Quadling rquadl...@gmail.com wrote: One thing that did come to mind is if we ignore all the issues and complexities of actually implementing annotations, are annotations

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

2010-09-17 Thread Pierre Joye
hi, On Thu, Sep 16, 2010 at 10:51 PM, Matthew Weier O'Phinney weierophin...@php.net wrote: (I'm still not entirely convinced that the same goals could not be achieved via code written on top of a docblock parser extension.) Look at the xdoclet fiasco, that should finish to convince you that

Re: [PHP-DEV] docBlock Parser RFC

2010-09-17 Thread Gustavo Lopes
On Fri, 17 Sep 2010 13:41:33 +0100, Matthew Weier O'Phinney weierophin...@php.net wrote: On 2010-09-16, Gustavo Lopes glo...@nebm.ist.utl.pt wrote: Pointless. Well, this will maybe speedup and standardize the usage of doc comments, but it's very far from what we could do with real

RE: [PHP-DEV] docBlock Parser RFC

2010-09-17 Thread James Butler
FWIW, I am in favour of something that allows the parsing of DocBlock comments (should it just be DocBlock comments though?) and am implementation agnostic so far (i have too little understanding of where in the core/extensions this would need to sit). This would then allow developers to hack

Re: [PHP-DEV] On how a little knowledge is completely useless.

2010-09-17 Thread Richard Quadling
On 17 September 2010 14:17, Rafael Dohms lis...@rafaeldohms.com.br wrote: On Fri, Sep 17, 2010 at 6:28 AM, Christian Kaps christian.k...@mohiva.com wrote: On Fri, 17 Sep 2010 10:02:10 +0100, Richard Quadling rquadl...@gmail.com wrote: One thing that did come to mind is if we ignore all the

Re: [PHP-DEV] On how a little knowledge is completely useless.

2010-09-17 Thread Guilherme Blanco
Hi Richard, Comments inline On Fri, Sep 17, 2010 at 11:16 AM, Richard Quadling rquadl...@gmail.com wrote: On 17 September 2010 14:17, Rafael Dohms lis...@rafaeldohms.com.br wrote: On Fri, Sep 17, 2010 at 6:28 AM, Christian Kaps christian.k...@mohiva.com wrote: On Fri, 17 Sep 2010 10:02:10

Re: [PHP-DEV] On how a little knowledge is completely useless.

2010-09-17 Thread Stas Malyshev
Hi! Unless the PHP parser engine can be extended via normal or zend extensions, no, it can't. And pretty useless to have annotations outside the core... I disagree - it would be very useful *if* we could do that. I.e. if we could associate data with classes, functions, etc. without actually

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

2010-09-17 Thread Stas Malyshev
Hi! Look at the xdoclet fiasco, that should finish to convince you that phpdoc has nothing to do with annotations. It would be useful if, for those unfamiliar with xdoclet history, you would explain why it was a fiasco. -- Stanislav Malyshev, Software Architect SugarCRM:

Re: [PHP-DEV] On how a little knowledge is completely useless.

2010-09-17 Thread Ralph Schindler
On 9/17/10 12:49 PM, Stas Malyshev wrote: userspace) 2) adding syntax (probably can't be done in userspace unless somebody thinks of a clever way to do it). I've thought of it, and I guess I'll give it a go, I could make this a proposal if it makes sense to. The idea is to make the Zend

RE: [PHP-DEV] On how a little knowledge is completely useless.

2010-09-17 Thread Jonathan Bond-Caron
On Fri Sep 17 01:06 PM, Guilherme Blanco wrote: Another good example is to map your persistence data into your Entities. Doctrine 2 implements this and I think that way you can compare easily with the PHP code alternative. I'd like to ask you to compate the same Entity mapped through

Re: [PHP-DEV] On how a little knowledge is completely useless.

2010-09-17 Thread Ralph Schindler
Inline response: On 9/17/10 1:57 PM, Jonathan Bond-Caron wrote: On Fri Sep 17 01:06 PM, Guilherme Blanco wrote: Another good example is to map your persistence data into your Entities. Doctrine 2 implements this and I think that way you can compare easily with the PHP code alternative. I'd

[PHP-DEV] Earliest zend_eval_string can be called?

2010-09-17 Thread Matthew C. Rice
Hello, I was wondering how early a zend_eval_string call can be made. Currently it works fine in a PHP_FUNCTION(), but was hoping to put it in a PHP_MINIT() in hopes of it just executing once. It seems PHP_MINIT() is too early, and is causing failures. I came across