PHP 4? OMG! A small vademecum for obsolete software migration.

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite, 2 Groups & 1 Event

    PHP 4? OMG! A small vademecum for obsolete software migration. - Presentation Transcript

    1. PHP 4? OMG! A small vademecum for obsolete software migration. Francesco Fullone, Ideato.it ff AT ideato.it
    2. Who am I Francesco Fullone - PHP developer since 1999 - GrUSP President - PHP and Open Source Evangelist - CEO @ Ideato.it - Nerd and geek
    3. How many of you still use PHP 4?
    4. Do you know that the official PHP 4 support has ended on 8 August 2008?
    5. Usage of PHP 4 (2008/10) ph p 4 ph p 5 data from Nexen.net
    6. The “Never touch a running system” rule
    7. “Why upgrade? My servers work fine!” But the hardware is no longer supported and the spare parts are no longer available.
    8. “Why upgrade? My software works fine!” But the dependencies libraries are outdated and no more developed.
    9. “Why upgrade? My code works fine!” But the knowledge is missed and the best practice never applied.
    10. Sometimes rewriting from scratch is not an option.
    11. We need a migration plan. A good one.
    12. Create Tests.
    13. Create a tests suite: A good test suite should be both Unit and Functional. At least we have to: - test the core functionality (ie. Login) - test the workflows - test third party interaction - test all the classes (if the code is OO)
    14. Acceptance Tests: If the code can't be unit tested (phpUnit), use acceptance tests (Selenium-IDE).
    15. Check for libs, code smells and dependancies. Create Tests.
    16. Check for libs, code smells and dependancies. - <% ASP TAG?! %> - Old global array $HTTP_*_VARS - Magic Quotes - Register Globals - Safe mode - Old PEAR/phpClasses classes - Dismissed PHP_modules
    17. #pear install PHP_CompatInfo
    18. Rollback to the default PHP.INI Check for libs, code smells and dependancies. Create Tests.
    19. A lot of things changed in the PHP.INI, try to use the default values during the upgrade process. Enable the LOG to the Notice level.
    20. Upgrade PHP and the system iteratively. Rollback to the default PHP.INI Check for libs, code smells and dependancies. Create Tests.
    21. Read the LOG, use the tests, do code refactoring, upgrade the system.
    22. Repeat this mantra
    23. THE END?
    24. NO!
    25. Now it's time to do serious code refactoring: - create proper unit tests - use standard development pattern - use an enterprise level framework - remove unused modules
    26. ?
    27. Francesco Fullone ff AT ideato.it via Quinto Bucci 205 47023 Cesena (FC) info AT ideato.it www.ideato.it www.fullo.net www.grusp.it www.phpday.it

    + Francesco FulloneFrancesco Fullone, 7 months ago

    custom

    931 views, 1 favs, 1 embeds more stats

    A small vademecum for obsolete PHP 4 software migra more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 931
      • 844 on SlideShare
      • 87 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 14
    Most viewed embeds
    • 87 views on http://www.fullo.net

    more

    All embeds
    • 87 views on http://www.fullo.net

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Groups / Events