PHP5.2.1→7.4.5更新時のメモ

php
あるプログラムをPHPを5系(5.2)から7系(7.4)に変更した際に
改修した関数等のメモです。
FATAL | Call to undefined function session_unregister() in | session_unregister ↓ unset |
FATAL | Uncaught Error: Call to undefined function eregi() in | eregi ↓ preg_match ※正規表現の前後に”/”を付与 |
FATAL | syntax error, unexpected ‘new’ (T_NEW) in | & new ↓ new |
FATAL | Uncaught Error: Call to undefined function split() in | split ↓ preg_split |
FATAL | Uncaught Error: Call to undefined function ereg_replace() in | ereg_replace ↓ preg_replace ※正規表現の前後に”/”を付与 |