Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-03-15 Thread Frédéric LECOINTRE
Hello, yes ? no ? perhaps ? something ? :-) - Original Message - From: "Frédéric LECOINTRE" <[EMAIL PROTECTED]> To: Sent: Friday, February 25, 2005 5:12 PM Subject: Re: [PHP-DEV] function proposal - php_check_syntax_string | Hello, | | After tests, I did'nt n

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-25 Thread Frédéric LECOINTRE
ECTED]>; "Marcus Boerger" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, February 22, 2005 3:20 PM Subject: Re: [PHP-DEV] function proposal - php_check_syntax_string | Hello all, | | thanks John for help | | so here, http://php-dev.burnweb.net. | there's new diff to avoid unexpected

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-22 Thread Frédéric LECOINTRE
"John Coggeshall" <[EMAIL PROTECTED]> To: "Marcus Boerger" <[EMAIL PROTECTED]> Cc: "Frédéric LECOINTRE" <[EMAIL PROTECTED]>; Sent: Monday, February 21, 2005 11:45 PM Subject: Re: [PHP-DEV] function proposal - php_check_syntax_string | On Mon, 2005-02-21 a

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-21 Thread Marcus Boerger
Hello Frédéric, Monday, February 21, 2005, 1:56:01 PM, you wrote: > Hello Marcus, > | have you experimented with php_check_syntax() and temporairy streams? > tell me if i'm wrong. > I think it could be possible to use php_lint_script and do compiler read > variable instead of file > - set zend_

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-21 Thread Frédéric LECOINTRE
Hello Marcus, | have you experimented with php_check_syntax() and temporairy streams? tell me if i'm wrong. I think it could be possible to use php_lint_script and do compiler read variable instead of file - set zend_file_handle->type = ZEND_HANDLE_STREAM - define two functions for reader and clo

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-20 Thread Marcus Boerger
right thing for Alan's idea. any suggestion ?) > perhaps, use an alternative simple scanner like PHP_Parser would be a > reasonable solution > fred > - Original Message - > From: "Marcus Boerger" <[EMAIL PROTECTED]> > To: &q

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-20 Thread Frédéric LECOINTRE
red - Original Message - From: "Marcus Boerger" <[EMAIL PROTECTED]> To: "val khokhlov" <[EMAIL PROTECTED]> Cc: Sent: Sunday, February 20, 2005 6:05 PM Subject: Re: [PHP-DEV] function proposal - php_check_syntax_string | Hello val, | | Sunday, February 20, 200

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-20 Thread Marcus Boerger
Hello val, Sunday, February 20, 2005, 5:59:21 PM, you wrote: > Hello Marcus, > Sunday, February 20, 2005, 6:32:57 AM, you wrote: MB>> what happend to defines (when redefining) >define() is called at run-time, as far as i saw, so there should be no > problems with it MB>> and what happe

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-20 Thread Marcus Boerger
-- > From: "Johannes Schlueter" <[EMAIL PROTECTED]> > To: > Sent: Friday, February 18, 2005 1:17 PM > Subject: Re: [PHP-DEV] function proposal - php_check_syntax_string > | Hi Fred, > | > | this patch doesn't just check wether the string has th

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-19 Thread Alan Knowles
I guess swapping out the compiler and executer globals before /after the compile call wont work? egs = executor_globals cgs = compiler_globals compile_string / file etc. efree(executor_globals); efree(compiler_globals); executor_globals = egs; compiler_globals = cgs; obviously if this is the ca

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-19 Thread Frédéric LECOINTRE
;,$foo[0].bar)) and avoid regexp ( good example in Smarty_Compiler.class.php#144-164 with limitations) fred - Original Message - From: "Johannes Schlueter" <[EMAIL PROTECTED]> To: Sent: Friday, February 18, 2005 1:17 PM Subject: Re: [PHP-DEV] function proposal - php_check_synt

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-18 Thread Sara Golemon
>> Is there possibilty to run syntax check only with compil_string in >> zend_language_scanner.c (or something else) instead of removing the >> introduced code? > > No. At least I don't know a how (but I don't know everything about the > engine) The only thing I currently can think of is using t

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-18 Thread Johannes Schlueter
Hi, FrÃdÃric LECOINTRE wrote: > oups ... well. > > php_check_syntax works fine with zend_compile_file. so what's the No, it doesn't work fine, too :-) http://bugs.php.net/bug.php?id=27406 But I didn't know the problem either when reading your patch where I stumbled over the compile_string() call

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-18 Thread Andi Gutmans
ith compil_string in zend_language_scanner.c (or something else) instead of removing the introduced code? fred - Original Message - From: "Johannes Schlueter" <[EMAIL PROTECTED]> To: Sent: Friday, February 18, 2005 1:17 PM Subject: Re: [PHP-DEV] function proposal - php_check_syntax_stri

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-18 Thread Frédéric LECOINTRE
ompil_string in zend_language_scanner.c (or something else) instead of removing the introduced code? fred - Original Message - From: "Johannes Schlueter" <[EMAIL PROTECTED]> To: Sent: Friday, February 18, 2005 1:17 PM Subject: Re: [PHP-DEV] function proposal - php_check_syntax_string | Hi Fr

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-18 Thread Johannes Schlueter
; <[EMAIL PROTECTED]> > Cc: > Sent: Friday, February 18, 2005 9:25 AM > Subject: Re: [PHP-DEV] function proposal - php_check_syntax_string > > > | Hello FrÃdÃric, > | > | do you have some c code you can post here as a .txt attachment or as a > link? > | &

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-18 Thread Frédéric LECOINTRE
Hello Marcus, Based on 5.0.3 source distribution, inspired of parsekit_compile_string fred - Original Message - From: "Marcus Boerger" <[EMAIL PROTECTED]> To: "Frédéric LECOINTRE" <[EMAIL PROTECTED]> Cc: Sent: Friday, February 18, 2005 9:25 AM Subject:

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-18 Thread Marcus Boerger
Hello Frédéric, do you have some c code you can post here as a .txt attachment or as a link? regards marcus Friday, February 18, 2005, 4:41:06 AM, you wrote: > hi all, > to check syntax of pieces of code and to avoid wild regular expressions, i > wrote this: > proto bool php_check_syntax_stri