Re: [PHP-DEV] E_STRICT 'errors' - was Are exceptions allowed in php core?

2012-09-05 Thread Lester Caine
Jan Ehrhardt wrote: Lester Caine in php.internals (Tue, 04 Sep 2012 22:30:34 +0100): Jan Ehrhardt wrote: Rasmus Lerdorf in php.internals (Tue, 04 Sep 2012 13:15:50 -0700): Just call error_reporting() at the beginning of your script. Which ain't possible in drupal (or hardly). You do not

Re: [PHP-DEV] E_STRICT 'errors' - was Are exceptions allowed in php core?

2012-09-05 Thread Ferenc Kovacs
2012.09.04. 22:25, Jan Ehrhardt php...@ehrhardt.nl ezt írta: Rasmus Lerdorf in php.internals (Tue, 04 Sep 2012 13:15:50 -0700): Just call error_reporting() at the beginning of your script. Which ain't possible in drupal (or hardly). You do not write any code. You just click together modules,

Re: [PHP-DEV] E_STRICT 'errors' - was Are exceptions allowed in php core?

2012-09-05 Thread Ferenc Kovacs
2012.09.04. 23:31, Lester Caine les...@lsces.co.uk ezt írta: Jan Ehrhardt wrote: Rasmus Lerdorf in php.internals (Tue, 04 Sep 2012 13:15:50 -0700): Just call error_reporting() at the beginning of your script. Which ain't possible in drupal (or hardly). You do not write any code. You just

Re: [PHP-DEV] E_STRICT 'errors' - was Are exceptions allowed in php core?

2012-09-05 Thread Lester Caine
Ferenc Kovacs wrote: Rasmus Lerdorf in php.internals (Tue, 04 Sep 2012 13:15:50 -0700): Just call error_reporting() at the beginning of your script. Which ain't possible in drupal (or hardly). You do not write any code. You just click together modules, written by others. Oh, I thought

Re: [PHP-DEV] Moving to an AST-based parsing/compilation process

2012-09-05 Thread Ivan Enderlin @ Hoa
Hi, On 04/09/12 21:57, Nikita Popov wrote: Hey folks! Some people asked me what the advantages of using an AST-based parsing/compilation process are, so I put together a few quick notes in an RFC: https://wiki.php.net/rfc/ast_based_parsing_compilation_process It would be nice to get a few

Re: [PHP-DEV] RFC for Adding __toString to DateTime

2012-09-05 Thread Lester Caine
Will Fitch wrote: Hi, Lester - I'll update the patch and RFC to include this format. This is the format I'll use unless others have a better approach: 2012-09-01T00:00:00-0500 (America/Chicago) Just working through another backlog of 'todo' items. Your current RFC includes -0500 in the

Re: [PHP-DEV] $obj-attr::method() is not allowed

2012-09-05 Thread Stas Malyshev
Hi! The complexity of the current grammar is working against development. I'm not sure that undertaking a task of rewriting whole grammar, with all disruptions etc. that this is going to cause, will speed up development a lot. But if you want to try it and show how easy it would be with your

Re: [PHP-DEV] E_STRICT 'errors' - was Are exceptions allowed in php core?

2012-09-05 Thread Pierre Joye
Hi! forgot to do reply all :) On Sep 4, 2012 10:25 PM, Jan Ehrhardt php...@ehrhardt.nl wrote: Rasmus Lerdorf in php.internals (Tue, 04 Sep 2012 13:15:50 -0700): Just call error_reporting() at the beginning of your script. Which ain't possible in drupal (or hardly). You do not write any

[PHP-DEV] Re: Moving to an AST-based parsing/compilation process

2012-09-05 Thread Morgan L. Owens
On 2012-09-05 07:57, Nikita Popov wrote: Hey folks! Some people asked me what the advantages of using an AST-based parsing/compilation process are, so I put together a few quick notes in an RFC: https://wiki.php.net/rfc/ast_based_parsing_compilation_process It would be nice to get a few

Re: [PHP-DEV] E_STRICT 'errors' - was Are exceptions allowed in php core?

2012-09-05 Thread Jan Ehrhardt
OK, apparently we will continue the discussion her. Pierre Joye in php.internals (Wed, 5 Sep 2012 13:15:43 +0200): On Sep 4, 2012 10:25 PM, Jan Ehrhardt php...@ehrhardt.nl wrote: Rasmus Lerdorf in php.internals (Tue, 04 Sep 2012 13:15:50 -0700): Just call error_reporting() at the beginning of

Re: [PHP-DEV] RFC for Adding __toString to DateTime

2012-09-05 Thread Will Fitch
On Wed, Sep 5, 2012 at 4:14 AM, Lester Caine les...@lsces.co.uk wrote: Will Fitch wrote: Hi, Lester - I'll update the patch and RFC to include this format. This is the format I'll use unless others have a better approach: 2012-09-01T00:00:00-0500 (America/Chicago) Just working through

Re: [PHP-DEV] RFC for Adding __toString to DateTime

2012-09-05 Thread Lester Caine
Will Fitch wrote: On Wed, Sep 5, 2012 at 4:14 AM, Lester Caine les...@lsces.co.uk mailto:les...@lsces.co.uk wrote: Will Fitch wrote: Hi, Lester - I'll update the patch and RFC to include this format. This is the format I'll use unless others have a better

Re: [PHP-DEV] Re: Moving to an AST-based parsing/compilation process

2012-09-05 Thread Andrew Faulds
On 05/09/12 13:48, Morgan L. Owens wrote: I'm not a core dev, but I would like to add to the notes above that third parties, such as myself, who want to do things with PHP source other than run it through a PHP interpreter would also appreciate such a separation of concerns. To date, I've

Re: [PHP-DEV] Re: Moving to an AST-based parsing/compilation process

2012-09-05 Thread Stas Malyshev
Hi! To date, I've been basing work, which exposes syntactic structure, on phc's maketea grammar (Phalanger's is more up to date, but also more complicated what with its provenance and the Linq and generics and all), but it's reverse-engineered and certainly wrong (oh, that reminds

Re: [PHP-DEV] mysqli_fetch_field() mysqlnd libmysql differences

2012-09-05 Thread Daniel Convissor
Hi Johannes: On Thu, Jan 19, 2012 at 01:50:47PM +0100, Johannes Schlüter wrote: unsigned long length The width of the field. This corresponds to the display length, in bytes. The server determines the length value before it generates the result set,

Re: [PHP-DEV] Moving to an AST-based parsing/compilation process

2012-09-05 Thread Dmitry Stogov
Hi Nikita, Personally, I don't see any reason to build AST. As you mentioned yourself, it will be slower and will require more memory. On the other hand AST itself would allow to perform only very basic optimizations. Most of them can be easily done on VM opcode level as well. Also, as it's

Re: [PHP-DEV] On BC and interfaces

2012-09-05 Thread Dmitry Stogov
Hi Stas, You know, it's not always possible to get new features or performance boosts without API change. It's one of the reason why we postpone such changes for major releases. But, I agree that even in major releases API shouldn't be changed without significant reasons, and we should keep