Tackling the Beast: How to Gradually Upgrade a Legacy Code Base to PHP 7


Presented by Ann Gaffigan (@anngaff)

Date: December 21, 2017
Time: 20:00 CST

18:00 PST, 3:00 CET (Dec 22), 2:00 GMT (Dec 22)
Not sure of the time in your area? Check it on timeanddate.com

This meeting is over, but you can still purchase the video.

Purchase Video

Hypothetically speaking, what if you wanted to change all of the lightbulbs in your house to use LED bulbs, but your current wiring didn’t support LED bulbs? You would need to re-wire your house, which would take a long time. In the meantime, you wouldn’t have any working electricity. Is there a better way? What if there was an adapter that could transition LED to work with old wiring if necessary, or if the wiring was new, just work as usual? That’s a metaphor for how I figured out how to gradually upgrade a legacy (LAMP) code base to be compliant with PHP 7.0. Since PHP deprecated the MySQL extension functions as of PHP 5.5.0 and removed in 7.0, we needed to transition a LOT of code in a legacy system to use the modern MySQLi extension functions. In trying to figure out how to upgrade the code base without ceasing new development on the system, we decided to use an adapter database class to allow us to transition gradually. In this session, we’ll explain how the adapter class works and also the rules we put in place to ensure there was an end to the transition tunnel.

Ann Gaffigan

Ann Gaffigan

Ann Gaffigan is the CTO and partner at National Land Realty, a full-service real estate brokerage company specializing in farm, ranch, plantation, timber, and recreational land across the country. She was formerly the CTO of Land Pros Realty, which merged with National Land Realty in January 2016.

Ann spent the first decade of her career growing her web and systems development business, Gazelle Incorporated, after graduating from the University of Nebraska with her bachelor’s in computer science in 2004. Gazelle Inc. served dozens of clients all over the United States, ranging from small businesses that needed informational websites to larger non-profits and commercial businesses needing integrated membership and operations systems.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>