{"id":10569,"date":"2017-08-18T17:29:30","date_gmt":"2017-08-18T11:59:30","guid":{"rendered":"https:\/\/www.carmatec.com\/?p=10569"},"modified":"2022-09-28T05:37:44","modified_gmt":"2022-09-28T05:37:44","slug":"%e3%82%a6%e3%82%a7%e3%83%96%e3%82%b5%e3%82%a4%e3%83%88%e3%82%92%e6%ba%96%e5%82%99%e3%81%99%e3%82%8b-php-7%e3%82%92%e3%82%a2%e3%83%83%e3%83%97%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%89%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.carmatec.com\/ja\/blog\/prepare-website-upgrading-php-7\/","title":{"rendered":"PHP 7 \u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u524d\u306b Web \u30b5\u30a4\u30c8\u3092\u6e96\u5099\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u3067\u3059\u304b?"},"content":{"rendered":"<p>PHP 7\u306e\u30ea\u30ea\u30fc\u30b9\u306f\u3001\u65e7\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u975e\u63a8\u5968\u3068\u3055\u308c\u305f\u6a5f\u80fd\u3092\u524a\u9664\u3057\u3001\u8a00\u8a9e\u306e\u4e00\u8cab\u6027\u3092\u5f37\u5316\u3059\u308b\u3053\u3068\u306b\u4e3b\u773c\u304c\u7f6e\u304b\u308c\u3066\u3044\u308b\u3002<\/p>\n<p><strong>\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u30ea\u30ea\u30fc\u30b9\u6642<\/strong><\/p>\n<ul style=\"font-weight: normal;\">\n<li>\u4e00\u90e8\u306e\u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3\u306f\u524a\u9664\u53ef\u80fd<\/li>\n<li>\u3044\u304f\u3064\u304b\u306e\u62e1\u5f35\u6a5f\u80fd\u3084\u6a5f\u80fd\u306f\u975e\u63a8\u5968\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<li>\u305d\u306e\u4ed6\u306e\u6a5f\u80fd\u304c\u5909\u66f4\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b<\/li>\n<\/ul>\n<p>\u3053\u3053\u3067\u3044\u3046\u300c\u975e\u63a8\u5968\u300d\u3068\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u306b\u7279\u5b9a\u306e\u62e1\u5f35\u6a5f\u80fd\u3084\u95a2\u6570\u306e\u4ee3\u66ff\u6848\u3092\u63d0\u793a\u3059\u308b\u3053\u3068\u3067\u3001\u305d\u306e\u4f7f\u7528\u3092\u63a7\u3048\u3055\u305b\u3001\u5c06\u6765\u306e\u30ea\u30ea\u30fc\u30b9\u3067\u306f\u305d\u306e\u95a2\u6570\u3084\u62e1\u5f35\u6a5f\u80fd\u3092\u5b8c\u5168\u306b\u524a\u9664\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3059\u308b\u3002<br \/>\n\u3053\u306e\u305f\u3081\u3001\u79fb\u7c4d\u306e\u969b\u306b\u306f\u79fb\u7c4d\u6587\u66f8\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002 <a href=\"https:\/\/www.carmatec.com\/ja\/%e6%8a%80%e8%a1%93%e3%82%92%e5%ad%a6%e3%81%b6\/%e3%82%a6%e3%82%a7%e3%83%96%e3%82%b5%e3%82%a4%e3%83%88%e3%82%92%e6%ba%96%e5%82%99%e3%81%99%e3%82%8b-php-7%e3%82%92%e3%82%a2%e3%83%83%e3%83%97%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%89%e3%81%99%e3%82%8b\/\">\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3078\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9<\/a>.\u3053\u306e\u6587\u66f8\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u4e8b\u9805\u3092\u53d6\u308a\u4e0a\u3052\u308b\u3053\u3068\u304c\u3042\u308b\uff1a<\/p>\n<ul style=\"font-weight: normal;\">\n<li>\u65b0\u6a5f\u80fd\u3068\u7279\u5fb4<\/li>\n<li>\u975e\u63a8\u5968\u306e\u6a5f\u80fd\u3068\u95a2\u6570<\/li>\n<li>\u5909\u66f4\u3055\u308c\u305f\u6a5f\u80fd\u3068\u7279\u5fb4<\/li>\n<li>\u4e0b\u4f4d\u4e92\u63db\u6027\u306e\u306a\u3044\u5909\u66f4<\/li>\n<li>\u65b0\u3057\u3044\u30b0\u30ed\u30fc\u30d0\u30eb\u5b9a\u6570<\/li>\n<li>\u65b0\u3057\u3044\u30af\u30e9\u30b9\u3068\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9<\/li>\n<li>SAPI\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u5909\u66f4\u70b9<\/li>\n<li>\u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3\u3068SAPI\u306e\u524a\u9664<\/li>\n<li>\u305d\u306e\u4ed6\u306e\u5909\u66f4<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u306f\u3001PHP\u3092\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u304b\u3089PHP 7\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u969b\u306e\u624b\u9806\u3067\u3059\uff1a<br \/>\n\u6700\u521d\u306b\u3059\u3079\u304d\u3053\u3068\u306f\u3001\u53d6\u308a\u5916\u3057\u305f\u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3\u306e\u8de1\u3092\u6d88\u3059\u3053\u3068\u3067\u3042\u308b\u3002\u305d\u306e <a href=\"https:\/\/www.carmatec.com\/ja\/%e6%8a%80%e8%a1%93%e3%82%92%e5%ad%a6%e3%81%b6\/php-5%e3%81%8b%e3%82%89php-7%e3%81%b8%e3%81%ae%e7%a7%bb%e8%a1%8c%e3%82%92%e6%a4%9c%e8%a8%8e-2017\/\">PHP\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3<\/a> \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f\u3001\u3053\u308c\u3089\u306e\u524a\u9664\u3055\u308c\u305f\u62e1\u5f35\u5b50\u306e\u305f\u3081\u306e\u304b\u306a\u308a\u306e\u6570\u306e\u4ee3\u66ff\u6848\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><strong>PHP 7 \u306e\u5c0e\u5165\u306b\u969b\u3057\u3066\u3001\u524a\u9664\u3055\u308c\u305f\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\uff1a<\/strong><\/p>\n<ol style=\"font-weight: normal;\">\n<li>\u30a8\u30e0\u30a8\u30b9\u30a8\u30b9\u30a8\u30eb<\/li>\n<li>mysql<\/li>\n<li>\u30a8\u30ec\u30b0<\/li>\n<li>sybase_ct<\/li>\n<\/ol>\n<p>\u6b21\u306b\u3001\u79fb\u884c\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304b\u3089\u3001\u3059\u3079\u3066\u306e\u6a5f\u80fd\u304c\u5909\u66f4\u3055\u308c\u305f\u5fc5\u8981\u306a\u60c5\u5831\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5c0e\u5165\u3059\u308b\u969b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u5909\u66f4\u3082\u3042\u308a\u5f97\u308b\uff1a<\/p>\n<ul style=\"font-weight: normal;\">\n<li>\u30ea\u30bf\u30fc\u30f3\u30fb\u30bf\u30a4\u30d7\u306e\u5909\u66f4<\/li>\n<li>\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u4e00\u90e8\u524a\u9664<\/li>\n<\/ul>\n<p>\u305d\u3053\u3067\u3001\u3053\u308c\u3089\u306e\u5909\u66f4\u3055\u308c\u305f\u95a2\u6570\u304cPHP\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u3001\u3053\u308c\u3089\u306e\u79fb\u884c\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3001\u305d\u308c\u306b\u5fdc\u3058\u3066\u5fc5\u8981\u306a\u5909\u66f4\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n<p><strong>PHP 7\u306e\u5834\u5408\u3001\u5909\u66f4\u3055\u308c\u305f\u95a2\u6570\u306e\u4e00\u90e8\u3092\u4ee5\u4e0b\u306b\u793a\u3059\uff1a<\/strong><\/p>\n<ul style=\"font-weight: normal;\">\n<li>\u95a2\u6570 mktime() \u304a\u3088\u3073 gmmktime() \u306f is_dst \u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u53d7\u3051\u4ed8\u3051\u306a\u304f\u306a\u3063\u305f\u3002<\/li>\n<li>\u95a2\u6570 substr() \u3068 iconv_substr() \u306f\u7a7a\u6587\u5b57\u5217\u3092\u8fd4\u3059\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/li>\n<\/ul>\n<p>\u7b2c\u4e09\u306b\u3001\u975e\u63a8\u5968\u306e\u95a2\u6570\u3084\u62e1\u5f35\u6a5f\u80fd\u306e\u4f7f\u7528\u3092\u6392\u9664\u3059\u308b\u3053\u3068\u3067\u3042\u308b\u3002<\/p>\n<p><strong>PHP 7\u306e\u5834\u5408\u3001\u975e\u63a8\u5968\u3068\u306a\u308b\u6a5f\u80fd\u3092\u4ee5\u4e0b\u306b\u793a\u3057\u307e\u3059\uff1a<\/strong><\/p>\n<ol style=\"font-weight: normal;\">\n<li>PHP 4 \u30b9\u30bf\u30a4\u30eb\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf - PHP 4 \u3067\u306f\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u3001\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u30af\u30e9\u30b9\u3068\u540c\u3058\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u305d\u306e\u305f\u3081\u3001\u3053\u308c\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u540d\u306f __construct() \u306b\u7f6e\u304d\u63db\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<li>\u975e\u9759\u7684\u30e1\u30bd\u30c3\u30c9\u3078\u306e\u9759\u7684\u547c\u3073\u51fa\u3057\u3082\u975e\u63a8\u5968\u3068\u306a\u308a\u3001\u5c06\u6765\u306e\u30ea\u30ea\u30fc\u30b9\u3067\u306f\u524a\u9664\u3055\u308c\u308b\u4e88\u5b9a\u3067\u3042\u308b\u3002<\/li>\n<li>password_hash()\u95a2\u6570\u306esalt\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001\u958b\u767a\u8005\u304csalt\u3092\u63d0\u4f9b\u3057\u306a\u3044\u5834\u5408\u3067\u3082\u95a2\u6570\u304c\u6697\u53f7\u7684\u306b\u5b89\u5168\u306asalt\u3092\u751f\u6210\u3067\u304d\u308b\u305f\u3081\u3001\u975e\u63a8\u5968\u3068\u306a\u308a\u307e\u3057\u305f\u3002<\/li>\n<\/ol>\n<p>\u6b21\u306b\u3001\u3064\u307e\u308a4\u756a\u76ee\u306b\u884c\u308f\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3053\u3068\u306f\u3001\u5f8c\u65b9\u4e92\u63db\u6027\u306e\u306a\u3044\u5909\u66f4\u306e\u6271\u3044\u3067\u3042\u308b\u3002\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5c0e\u5165\u3059\u308b\u969b\u306b\u306f\u3001\u300c\u5f8c\u65b9\u4e92\u63db\u6027\u306e\u306a\u3044\u5909\u66f4\u300d\u306b\u3064\u3044\u3066\u79fb\u884c\u6587\u66f8\u3092\u53c2\u7167\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n<p><strong>\u4ee5\u4e0b\u306f\u3001\u5f8c\u65b9\u4e92\u63db\u6027\u306e\u306a\u3044\u5909\u66f4\u70b9\u306e\u4e00\u90e8\u3067\u3042\u308b\uff1a<\/strong><\/p>\n<ul style=\"font-weight: normal;\">\n<li>foreach\u306f\u3082\u3046\u5185\u90e8\u914d\u5217\u30dd\u30a4\u30f3\u30bf\u3092\u5909\u66f4\u3057\u306a\u3044<\/li>\n<li>global \u306f\u5358\u7d14\u306a\u5909\u6570\u306e\u307f\u3092\u53d7\u3051\u4ed8\u3051\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/li>\n<li>\u5909\u6570 variable \u306f\u3082\u3046\u30b0\u30ed\u30fc\u30d0\u30eb\u30ad\u30fc\u30ef\u30fc\u30c9\u3067\u306f\u4f7f\u3048\u306a\u3044\u3002<\/li>\n<li>16\u9032\u6587\u5b57\u5217\u306f\u3082\u306f\u3084\u6570\u5024\u3068\u306f\u307f\u306a\u3055\u308c\u306a\u3044<br \/>\n\u4f8b\u3048\u3070\u3001\u3053\u3046\u3060\uff1a<br \/>\n&lt;?php<br \/>\nvar_dump(is_numeric(\"0x123\"))\uff1b<br \/>\n?&gt;PHP7\u3067\u524d\u8ff0\u306e\u4f8b\u306e\u51fa\u529b\u306f:bool(false)<\/li>\n<li>\u30bc\u30ed\u306b\u3088\u308b\u9664\u7b97\u306e\u5909\u66f4\u70b9<br \/>\n\u4ee5\u524d\u306f\u3001divide(\/)\u307e\u305f\u306fmodulus(%)\u6f14\u7b97\u5b50\u306e\u9664\u6570\u3068\u3057\u30660\u304c\u4f7f\u7528\u3055\u308c\u308b\u3068\u3001E_WARNING\u304c\u767a\u751f\u3057\u3001false\u304c\u8fd4\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002\u73fe\u5728\u3067\u306f\u3001\u9664\u7b97\u6f14\u7b97\u5b50\u306f float \u3092 +INF\u3001-INF\u3001\u307e\u305f\u306f NAN \u3068\u3057\u3066\u8fd4\u3059\u3088\u3046\u306b\u5909\u66f4\u3055\u308c\u307e\u3057\u305f\u3002\u30e2\u30b8\u30e5\u30e9\u30b9\u6f14\u7b97\u5b50E_WARNING\u306f\u524a\u9664\u3055\u308c\u3001DivisionByZeroError\u4f8b\u5916\u304c\u30b9\u30ed\u30fc\u3055\u308c\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u79c1\u305f\u3061\u306f <a href=\"https:\/\/www.carmatec.com\/ja\/php%e9%96%8b%e7%99%ba%e4%bc%9a%e7%a4%be\/\" target=\"_blank\" rel=\"noopener noreferrer\">PHP\u958b\u767a\u4f1a\u793e<\/a> \u5f0a\u793e\u306f10\u5e74\u4ee5\u4e0a\u306e\u7d4c\u9a13\u3092\u751f\u304b\u3057\u3001\u69d8\u3005\u306a\u696d\u7a2e\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306bPHP\u30a6\u30a7\u30d6\u958b\u767a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002\u79c1\u305f\u3061\u306f\u3001\u3042\u306a\u305f\u306e\u30d3\u30b8\u30cd\u30b9\u4e0a\u306e\u554f\u984c\u306e\u305f\u3081\u306e\u6700\u3082\u52b9\u7387\u7684\u306a\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u8003\u3048\u51fa\u3059\u305f\u3081\u306b\u3001\u6700\u5148\u7aef\u306e\u30c4\u30fc\u30eb\u3068\u30c6\u30af\u30cb\u30c3\u30af\u3092\u63a1\u7528\u3057\u3066\u3044\u307e\u3059\u3002<a href=\"https:\/\/www.carmatec.com\/ja\/%e9%96%8b%e7%99%ba%e8%80%85%e3%82%92%e9%9b%87%e3%81%86\/php%e9%96%8b%e7%99%ba%e8%80%85%e3%82%92%e9%9b%87%e3%81%86\/\" target=\"_blank\" rel=\"noopener noreferrer\">PHP\u958b\u767a\u8005\u3092\u96c7\u3046<\/a>\u3053\u306e\u30b5\u30fc\u30d3\u30b9\u3067\u306f\u3001\u958b\u767a\u8005\u306e\u6280\u8853\u30b9\u30ad\u30eb\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3059\u308b\u30a2\u30d7\u30ed\u30fc\u30c1\u3001\u904e\u53bb\u306e\u5b9f\u7e3e\u3092\u8a55\u4fa1\u3057\u3001\u696d\u754c\u3067\u6700\u3082\u7d4c\u9a13\u8c4a\u5bcc\u306a\u4eba\u6750\u306e\u4e2d\u304b\u3089\u304a\u9078\u3073\u3044\u305f\u3060\u3051\u307e\u3059\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>The PHP 7 release is mainly focused on removing functionality deprecated in its previous versions and, enhancing the consistency in the language. At the time of any new version release: some extensions can get removed some extensions or functionalities can get deprecated some other functionalities can get altered The term \u2018Deprecation\u2019 here, implies that the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":29477,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,19],"tags":[],"class_list":["post-10569","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-php-development"],"_links":{"self":[{"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/posts\/10569","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/comments?post=10569"}],"version-history":[{"count":0,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/posts\/10569\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/media\/29477"}],"wp:attachment":[{"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/media?parent=10569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/categories?post=10569"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/tags?post=10569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}