function proposal - php_check_syntax_string

php.internals

Frédéric LECOINTRE

21 years ago
hi all, to check syntax of pieces of code and to avoid wild regular expressions, i wrote this: proto bool php_check_syntax_string(string string [, &$error_message]) like php_check_syntax but on string it will be useful for applications who have to store valid code like smarty, ... is it possible to add it? regards fred

Marcus Börger

21 years ago
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_string(string string [, &$error_message])
> like php_check_syntax but on string > it will be useful for applications who have to store valid code like smarty, > ... > is it possible to add it?
> regards
> fred
-- Best regards, Marcus mailto:helly@php.net

Frédéric LECOINTRE

21 years ago
Hello Marcus, Based on 5.0.3 source distribution, inspired of parsekit_compile_string fred ----- Original Message ----- From: "Marcus Boerger" <helly@php.net> To: "Frédéric LECOINTRE" <frederic.lecointre@burnweb.net> Cc: <internals@lists.php.net> 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? | | 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_string(string string [, &$error_message]) | | > like php_check_syntax but on string | > it will be useful for applications who have to store valid code like smarty, | > ... | > is it possible to add it? | | > regards | | > fred | | | | | -- | Best regards, | Marcus mailto:helly@php.net |