Home / Section index
 www.icosaedro.it 

 PHPLint Download

PHPLint is written in the M2 programming language, but it is also available as C source and as binary executable. From this page you can download the package that better fits your needs. PHPLint is also available on-line at phplint-on-line.html.

Latest changes

Please visit the page www.icosaedro.it/phplint/changes.html for a list of the latest changes to the PHPLint program.

Download

File Size Description
phplint-windows-0.9_20090802_p1.zip 599 KB Executable program tested on Microsoft Windows Vista. Includes: reference manual, tutorial. Users of Windows that intend simply to use the program, should download only this package.
Also included: complete C source code from which the executable program has been obtained.
This "p1" patch fixes a bug when importing modules from packages that reside in a different drive unit.
phplint-pure-c-0.9_20090802.tar.gz 397 KB This package contains the C source of PHPLint as generated by the M2-to-C cross compiler. Also included: reference manual, tutorial. Users of Linux or Unix-like operating systems that intend simply to use the program, should download only this package. Tested on x86_32 (Slackware 12.0) and x86_64 (Ubuntu 9.04) architecture. For MacOS X see note 1 below.
phplint-0.9_20090802.tar.gz 375 KB Original source of PHPLint, written in the M2 programming language. Requires the M2 development system, available at www.icosaedro.it/m2. If you are interested to be involved in the development of PHPLint, you should download this package. The most updated version of the source is available from the CVS server at CVS: please check this before submitting patches.

Note 1: Compiling the pure-C version under MacOS. Alessandro Baldoni <abaldoni*racine.ra.it> reported that the pure-C version of PHPLint compiles fine under MacOS X 10.6 (Snow Leopard) provided that the -fnested-functions option be added, as nested functions are disabled by default under this platform. Then, the compile shell script should be modified as indicated below (the added parts are in boldface):

./configure || exit 1
echo Compiling...
if grep -q USE_GC include/missing.c; then
    cc -fnested-functions -lgc src/phplint.c -o src/phplint
else
    cc -fnested-functions src/phplint.c -o src/phplint
fi || exit 1
echo Now running PHPLint:
echo
src/phplint --version

Umberto Salsi

Contact
Site map
Home / Section index