note 87597 deleted from function.php-check-syntax by thiago
| From: | thiago@php.net | Date: | Fri, 12 Dec 2008 11:33:11 +0000 |
| Subject: | note 87597 deleted from function.php-check-syntax by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-148064@lists.php.net to get a copy of this message | ||
Note Submitter: kevin at metalaxe dot com
----
@nicolas dot grekas+php at gmail dot com
I'm not sure I see your point. Your if(0){} fails where my return works. if(0){} was the first
example a buddy and I went to when we first started trying this out. The reason we tried to use
return is to make full use of the parser checks WITHOUT going through a slew of complicated checks
to ensure braces stability. Also, it is far easier to use raw php code that includes the T_OPEN_TAG
tokens in this one because all you need do is remove the beginning T_OPEN_TAG.
See output that you requested I compare:
http://kevinpeno.com/projects/testcases/syntax-check-nicolas.php
@Daniel Tome
25-Jul-2008 01:37
I'm not sure your problem. Did you include the token fix function on the page i linked in my
last post? If not the script will end in fatal error. Otherwise the output looks great to me!
See test case:
http://kevinpeno.com/projects/testcases/checkEval-Daniel.php
If you still have problems, or anyone else for that matter, please feel free to email me. The
comments system aren't the best place for discussion.
Anyone looking for the latest version can review Daniel's test case.