How To Fix php5-pcre Ignored Package in FreeBSD Ports

I guess most of the FreeBSD users having problem to patch php5-pcre package in FreeBSD Ports. Whenever you run portversion -vL=, you will always see php5-pcre is outdated even after running portupgrade php5-pcre, you will get the error message;

Since php5-5.2.8, PCRE is built in php5 package, to get rid of php5-pcre package, delete the package and fix the ports database;

Check current installed php5-pcre package;

Delete php5-pcre package

Fix package dependencies on php4-pcre

The fixed solution is provide in /usr/ports/UPDATING file.