Chapter 7: Avoiding Traps When Using PHP 8 Extensions
One of the main strengths of the PHP: Hypertext Preprocessor (PHP) language is its extensions. Changes to the PHP language introduced in PHP 8 also require extension development teams to update their extensions at the same time. In this chapter, you will learn which major changes to extensions have been made and how to avoid traps when updating an existing application to PHP 8.
Once you have finished reviewing the sample code and topics presented in this chapter, you will be able to prepare any existing PHP code for migration to PHP 8. In addition to learning about the changes to the various extensions, you will also gain deep insight into their operation. This ability will allow you to make informed decisions when using extensions in PHP 8.
Topics covered in this chapter include the following:
- Understanding the shift from resources to objects
- Learning about changes to Extensible Markup Language (XML) extensions...