[Phpmyadmin-devel] SQL parser
Div Lo�c
loic-div at ifrance.com
Mon Jul 22 06:39:05 CEST 2002
Robin, I've just have had a look at the last
version of your parser. Here is some PHP3
problems i've noticed:
- function must be declared before they are
called. Then, for example, you can't call
"PMA_sqlParser_ArrayAdd_Timer()" in the
"PMA_sqlParser_ArrayAdd()" function because
the former is declared after the latter;
- "include_once" and "require_once" are PHP4
functions;
- "===" and "!==" are PHP4 operators.
Some coding standard fixes also :
- settings of function should be separated by
", " (comma plus a space character);
- keywords for control structures should be separated
from the condition by a space ie:
if (condition) {
do some stuff
}
else {
do some stuff
}
- function names should not contain escaped charcters
except after the "PMA" prefix ie "PMA_number_inrange()"
should be "PMA_numberInRange".
I've modified your "sqlparse.php3" file in order it fits
PEAR coding standards (excpet comments for function) and
may run with PHP3. But I can't test it before the end of
the week. You'll find it attached to this message.
Loïc
______________________________________________________________________________
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sqlparse.php3
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20020722/2afd706b/attachment.ksh>
More information about the Developers
mailing list