PHP5->PHP4 converter (was Re: [PEAR-DEV] Re: [PEPr] Comment on Networking::GeoIP)

From: Date: Wed, 16 Jun 2004 14:33:48 +0000
Subject: PHP5->PHP4 converter (was Re: [PEAR-DEV] Re: [PEPr] Comment on Networking::GeoIP)
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-30772@lists.php.net to get a copy of this message
Rather messy = but a nice proof of concept.. http://www.akbkhome.com/svn/akpear/PHP_DownGrade/DownGrade.php Takes Hans's file http://devel.akbkhome.com/svn/index.php/akpear/PHP_DownGrade/tests/test1.php and converts it into php4/pear code... give or take a few beautifier issues..:) http://devel.akbkhome.com/svn/index.php/akpear/PHP_DownGrade/tests/result1.php The theory if someone wants to run with it: package.xml <file generate_php4="yes">test1.php</file> pear package .. generates a file test1.php4 pear install if (your system is php4) => copy test1.php => test1.php5 copy test1.php4 => test1.php and heh volia PHP5 packages in pear.. Regards Alan
Hans
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

« previous php.pear.dev (#30772) next »