How To Install php-brumann-polyfill-unserialize on CentOS 7

In this tutorial we learn how to install php-brumann-polyfill-unserialize on CentOS 7. php-brumann-polyfill-unserialize is Backports unserialize options introduced in PHP 7.0

Introduction

In this tutorial we learn how to install php-brumann-polyfill-unserialize on CentOS 7.

What is php-brumann-polyfill-unserialize

Backports unserialize options introduced in PHP 7.0 to older PHP versions. This was originally designed as a Proof of Concept for Symfony Issue [#21090](https You can use this package in projects that rely on PHP versions older than PHP 7.0. In case you are using PHP 7.0+ the original unserialize() will be used instead. From the [documentation](https > Warning Unserialization > can result in code being loaded and executed due to object instantiation and > autoloading, and a malicious user may be able to exploit this. This warning holds true even when allowed_classes is used. Autoloader

We can use yum or dnf to install php-brumann-polyfill-unserialize on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install php-brumann-polyfill-unserialize.

Install php-brumann-polyfill-unserialize on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install php-brumann-polyfill-unserialize using yum by running the following command:

sudo yum -y install php-brumann-polyfill-unserialize

Install php-brumann-polyfill-unserialize on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install php-brumann-polyfill-unserialize using dnf by running the following command:

sudo dnf -y install php-brumann-polyfill-unserialize

How To Uninstall php-brumann-polyfill-unserialize on CentOS 7

To uninstall only the php-brumann-polyfill-unserialize package we can use the following command:

sudo dnf remove php-brumann-polyfill-unserialize

References

Summary

In this tutorial we learn how to install php-brumann-polyfill-unserialize on CentOS 7 using yum and dnf.