View Single Post

  #14 (permalink)  
Old 05-10-2008
Jerry Stuckle
 
Posts: n/a
Default Re: Tool to parse and validate PHP script?

Sir Robin wrote:
> On Thu, 08 May 2008 17:22:59 -0400, sheldonlg <sheldonlg> wrote:
>
>> Gilles Ganault wrote:
>>> Hello
>>>
>>> Is there a tool on Linux/FreeBSD that can parse a PHP script to make
>>> sure there's no compile-time issues?

>> You will never have a compile-time error with PHP since PHP is a script
>> and, hence, doesn't compile. Perhaps you mean run-time issues?

>
> As far as I understand PHP does in fact first compile the script to byte-code
> and then run it... Surely if the code has syntax errors it would result to
> compile time error, right?
>


No, Gilles is correct. PHP is not compiled. It is interpreted. A big
difference. And no, syntax errors are not considered compile-time errors.

Java, OTOH, is compiled to byte code.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Reply With Quote