# PHP 5.6.x 版本遷移至 PHP 7.0.x 版本
## 函數變更
### PHP 核心函數
* [debug_zval_dump()](http://php.net/manual/en/function.debug-zval-dump.php) 現在輸出int和float類型,對應替代之前的long和double類型
* [dirname()](http://php.net/manual/en/function.dirname.php) 現有第二個參數(depth)可選,基于當前目錄獲取目錄名稱深度。
* [getrusage()](http://php.net/manual/en/function.getrusage.php) 不再支持windows系統
* [mktime()](http://php.net/manual/en/function.mktime.php) 及 [gmmktime()](http://php.net/manual/en/function.gmmktime.php) 不再接受 is_dst 參數。
* [preg_replace()](http://php.net/manual/en/function.preg-replace.php) 不再支持 \e (PREG_REPLACE_EVAL). 以 preg_replace_callback() 作為替代。
* [setlocale()](http://php.net/manual/en/function.setlocale.php) 第一個參數不再接受字符串。必須用LC_*系列常亮代替。
* exec()、system()、passthru() 函數現在具備空字節保護。
## 用戶貢獻記錄
暫無