--------------------------------------------------
From: "Richard Quadling" <rquadling@xxxxxxxxx>
Sent: Friday, June 03, 2011 7:26 PM
To: "Dr Vijay Kumar" <vaibhavinformatics@xxxxxxxxx>
Cc: <php-db@xxxxxxxxxxxxx>
Subject: Re: Converting from PHP4 to php5
On 1 June 2011 13:52, Dr Vijay Kumar <vaibhavinformatics@xxxxxxxxx> wrote:
i AM WONDERING IF SOMEONE CAN TAKE UP CONVERSION OF MY SOFTWARE FROM PHP4
TO
PHP5
Whilst there will be many aspects of the code that will run quite
happily, there are several features that have been deprecated and/or
removed, depending upon the version of PHP4 and PHP5 you have and
want.
There are, I think, 2 valid approaches to this sort of task.
1 - Get the code base functional with PHP5, but without using any of
the new features. This involves handling/converting any code that used
deprecated and/or removed features of PHP4.
Amongst these, register_globals, magic_quotes and ereg would probably
be the most popular to look at.
This _SHOULD_ be fairly easy to do. Obviously, the complexity and
structure of the current code will dictate the amount of time. If, for
example, the code isn't documented and there are no testsuites, then a
new developer is only going to be able to handle what the code
actually does, and not necessarily what the code is supposed to do.
Checking the code's behaviour without a testsuite could be pretty
difficult.
2 - Refactor the modules of the application, taking into account new
features of PHP5.
This could involve moving from PHP4 procedural code to PHP5 OOP. This
could require a significant investment in time (and therefore money),
depending upon the project.
And may not be necessary.
Richard.
--
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 6177 (20110603) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus signature database 6177 (20110603) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php