{"id":125,"date":"2019-04-24T22:01:15","date_gmt":"2019-04-24T13:01:15","guid":{"rendered":"http:\/\/syrup-factory.com\/memo\/?p=125"},"modified":"2019-04-24T23:09:28","modified_gmt":"2019-04-24T14:09:28","slug":"10%e5%b9%b4%e5%89%8d%e3%81%8b%e3%82%89%e7%a8%bc%e5%83%8d%e4%b8%ad%e3%81%ae%e3%82%b7%e3%82%b9%e3%83%86%e3%83%a0%e3%82%92-php5%e2%86%92php7","status":"publish","type":"post","link":"https:\/\/syrup-factory.com\/memo\/archives\/125","title":{"rendered":"10\u5e74\u524d\u304b\u3089\u7a3c\u50cd\u4e2d\u306e\u30b7\u30b9\u30c6\u30e0\u3092 PHP5\u2192PHP7 \u306b\u5909\u66f4\u3057\u305f"},"content":{"rendered":"<p>\u5927\u5143\u306f2006\u5e74\u306b\u4f5c\u3063\u305f\u30b7\u30b9\u30c6\u30e0\u3001\u6539\u4fee\u3057\u30662009\u5e74\u304b\u3089\u7a3c\u50cd\u3057\u3066\u3044\u305f\u30b7\u30b9\u30c6\u30e0\u3002<br \/>\n10\u5e74\u524d\u5f53\u6642PHP4\u3002<br \/>\n\u73fe\u5728PHP5\u306e\u30b5\u30fc\u30d0\u3067\u7a3c\u50cd\u4e2d\u3067\u3042\u308b\u304c\u3001\u3068\u3046\u3068\u3046PHP7\u306b\u79fb\u884c\u305b\u3056\u308b\u3092\u3048\u306a\u3044\u72b6\u6cc1\u306b\u306a\u3063\u305f\u3002<\/p>\n<h2>PHP\u672c\u4f53\u3002\u3060\u3051\u3067\u306a\u304f<\/h2>\n<p>PHP5\u2192PHP7\u306e\u4e3b\u306a\u5909\u66f4\u70b9\u306f\u3060\u3044\u305f\u3044\u5206\u304b\u3063\u3066\u3044\u308b\u3002<br \/>\n\u3000\u30fb\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u8a18\u8ff0\u65b9\u6cd5\u3092\u5909\u66f4\u3059\u308b\uff08\u30af\u30e9\u30b9\u540d \u2192 __construct() \uff09<br \/>\n\u3000\u30fb\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u751f\u6210\uff08new\uff09\u6642\u306e &#038; \u524a\u9664\u3059\u308b<br \/>\n\u3000\u30fb\u6b63\u898f\u8868\u73fe\u95a2\u6570\u3092\u5909\u66f4\u3059\u308b\uff08ereg \u2192 preg_match \u306a\u3069\uff09<br \/>\n\u3000\u30fb\u5909\u6570\uff1a\u578b\u304c\u5909\u308f\u308b\u5834\u5408\u3001\u5225\u5909\u6570\u306b\u3059\u308b\u3002\uff08\u6570\u5024\u3092\u4ee3\u5165\u3057\u305f\u5f8c\u3001\u914d\u5217\u306f\u5165\u308c\u3089\u308c\u306a\u304f\u306a\u308b\uff09<br \/>\n\u3000\u30fb\u30af\u30e9\u30b9\u7d99\u627f\u3057\u305f\u5834\u5408\u3067\u30e1\u30bd\u30c3\u30c9\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u3059\u308b\u6642\u306f\u3001\u5f15\u6570\u306e\u6570\u3092\u540c\u6570\u306b\u3059\u308b\u3002\uff08\u89aa\u5074\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u3066\u3082\u7701\u7565\u3067\u304d\u306a\u3044\uff09<br \/>\n\u8a72\u5f53\u7b87\u6240\u3092\u3064\u3076\u305b\u3070\u3044\u3051\u308b\u3060\u308d\u3046\u3002<\/p>\n<p>\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u306f\u898b\u7a4d\u3082\u308a\u304c\u7518\u304b\u3063\u305f\u3002<\/p>\n<p>10\u5e74\u524d\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u985e\u3092\u306a\u3093\u3068\u304b\u3057\u306a\u3044\u3068\u30c0\u30e1\u3060\u3063\u305f\u3002\u3082\u3061\u308d\u3093\u90fd\u5ea6\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u306f\u3057\u3066\u3044\u308b\u304c\u3001PHP5\u306e\u307e\u307e\u3002<br \/>\n\u30fbSmarty2<br \/>\n\u30fbPEAR::DB \u2190MDB2\u3067\u3082PDO\u3067\u3082\u306a\u304f&#8230;<br \/>\n\u30fbPEAR::DB_DataObject<br \/>\n\u30fbPEAR::HTML_QuickForm<br \/>\n\u30fbPEAR::Auth<\/p>\n<h2>Smarty2<\/h2>\n<p>Smarty3\u3067\u306f\u306a\u304f2\u7cfb\u306a\u306e\u3067\u3001\u671f\u5f85\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u304c\u3001\u30b0\u30b0\u308b\u3068PHP7\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u3068\u306e\u60c5\u5831\u304c\u3042\u3063\u305f\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/smarty-php\/smarty\/blob\/Smarty2\/ChangeLog\" rel=\"noopener\" target=\"_blank\">changelog<\/a><\/p>\n<blockquote><p>\n===== 2.6.31  ===<br \/>\n2017-11-03<br \/>\n    * replace functions deprecated in PHP 7.2\n<\/p><\/blockquote>\n<p>\u3042\u308a\u304c\u305f\u304f\u5165\u308c\u66ff\u3048\u305f\u3002<\/p>\n<h2>PEAR::DB,PEAR::DB_DataObject<\/h2>\n<p>\u8abf\u3079\u308b\u3068\u3001PEAR::DB\u3067\u5229\u7528\u3059\u308b mysql.php \u5185\u3067\u3001\u53e4\u3044mysql\u95a2\u6570\u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u3053\u308d\u304c\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3044\u308b\u3002<br \/>\nPHP7\u3067\u306f\u300cmysqli\u30af\u30e9\u30b9\u307e\u305f\u306fPDO\u30af\u30e9\u30b9\u306e\u95a2\u6570\u7b49\u3067\u66f8\u304d\u63db\u3048\u308b\u5fc5\u8981\u304c\u3042\u308b\u300d\u305d\u3046\u3060\u3002<\/p>\n<p>\u30fb\u30fb\u30fb\u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068\u3001\u300cmysqli.php\u300d\u3092\u5229\u7528\u3059\u308c\u3070OK\u3060\u3063\u305f\u3002<br \/>\nconnect\u6642\u3001DSN\u3067\u306e\u6307\u5b9a\u3092\u300cmysql\u300d\u2192\u300cmysqli\u300d\u306b\u5909\u66f4\u3002<\/p>\n<p>\u203b\u3053\u308c\u306b\u6c17\u3065\u304b\u305a\u3001\u9014\u4e2d\u307e\u3067\u3061\u307e\u3061\u307e\u3068mysql.php\u30bd\u30fc\u30b9\u3092\u8ffd\u3044\u304b\u3051\u306a\u304c\u3089\u4fee\u6b63\u3057\u3066\u3044\u305f\u52b4\u529b\u30fb\u30fb\u30fb<\/p>\n<p>\u305f\u3060\u3001DataObject.php\u306e\u65b9\u306f\u624b\u3092\u5165\u308c\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u3002<\/p>\n<h2>PEAR::HTML_QuickForm<\/h2>\n<p>\u3053\u308c\u3082\u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068\u3001\u2193\u3053\u308c\u3092\u5229\u7528\u3055\u305b\u3066\u3082\u3089\u3063\u305f\u3002<br \/>\n<a href=\"https:\/\/github.com\/flack\/quickform\">https:\/\/github.com\/flack\/quickform<\/a><\/p>\n<blockquote><p>Forward compatible fork of HTML_QuickForm<\/p>\n<p>This package is intended mainly as a drop-in replacement for existing installations of HTML_Quickform. See http:\/\/pear.php.net\/manual\/en\/package.html.html-quickform.php for documentation.<\/p><\/blockquote>\n<p>PHP7\u5316\u304c\u5b8c\u5168\u306b\u306a\u3055\u308c\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u4fee\u6b63\u306f\u5fc5\u8981\u3060\u304c\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u304c__construct() \u306b\u66f8\u304d\u63db\u308f\u3063\u3066\u3044\u305f\u70b9\u304c\u3088\u304b\u3063\u305f\u3002<\/p>\n<p>\u203b\u3053\u308c\u3082\u3001\u521d\u3081\u306f\u81ea\u529b\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u7d14\u6b63\u306e\u30bd\u30fc\u30b9\u3092\u4fee\u6b63\u3057\u3066\u3044\u305f\u306e\u3060\u304c\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u66f8\u304d\u63db\u3048\u306b\u3088\u3063\u3066\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u751f\u6210\u90e8\u5206\u306e\u5909\u66f4\u3082\u5fc5\u8981\u306b\u306a\u308a\u3001\u3046\u307e\u304f\u52d5\u304b\u306a\u3044\u90e8\u5206\u304c\u51fa\u3066\u304d\u3066\u3044\u305f\u3002<\/p>\n<h2>PEAR::Auth<\/h2>\n<p>MySql\u5468\u308a\u3092\u4fee\u6b63\u3057\u305f\u30fb\u30fb\u30fb\u306f\u305a\u30fb\u30fb\u30fb\uff08\u5f8c\u3067\u8ffd\u8a18\u3059\u308b\u4e88\u5b9a\uff09<\/p>\n<h2>\u307e\u3060\u307e\u3060\u4f7f\u3048\u308b PEAR<\/h2>\n<p>\u6b63\u76f4\u3001PEAR\uff08\u3084Smarty2\uff09\u306f\u3001PHP7\u3067\u306f\u4f7f\u3048\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308b\u3068\u601d\u3063\u3066\u3044\u305f\u3002<br \/>\n\u304c\u3001\u516c\u5f0f\u30fb\u975e\u516c\u5f0f\u3067\u8ab0\u304b\u304c\u5bfe\u5fdc\u3057\u3066\u304f\u308c\u3066\u3044\u308b\uff1d\u307e\u3060\u4f7f\u3063\u3066\u3044\u308b\u4eba\u304c\u3044\u308b\u3002<br \/>\n\u307e\u3060\u3001\u4f7f\u3048\u308b\u3002\u3059\u3054\u3044\u3002\u3042\u308a\u304c\u305f\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u5143\u306f2006\u5e74\u306b\u4f5c\u3063\u305f\u30b7\u30b9\u30c6\u30e0\u3001\u6539\u4fee\u3057\u30662009\u5e74\u304b\u3089\u7a3c\u50cd\u3057\u3066\u3044\u305f\u30b7\u30b9\u30c6\u30e0\u3002 10\u5e74\u524d\u5f53\u6642PHP4 &#8230;<\/p>\n<p> <a class=\"continue-reading-link\" href=\"https:\/\/syrup-factory.com\/memo\/archives\/125\"><span>Continue reading<\/span><i class=\"crycon-right-dir\"><\/i><\/a> <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,5,8],"tags":[],"_links":{"self":[{"href":"https:\/\/syrup-factory.com\/memo\/wp-json\/wp\/v2\/posts\/125"}],"collection":[{"href":"https:\/\/syrup-factory.com\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/syrup-factory.com\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/syrup-factory.com\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/syrup-factory.com\/memo\/wp-json\/wp\/v2\/comments?post=125"}],"version-history":[{"count":13,"href":"https:\/\/syrup-factory.com\/memo\/wp-json\/wp\/v2\/posts\/125\/revisions"}],"predecessor-version":[{"id":138,"href":"https:\/\/syrup-factory.com\/memo\/wp-json\/wp\/v2\/posts\/125\/revisions\/138"}],"wp:attachment":[{"href":"https:\/\/syrup-factory.com\/memo\/wp-json\/wp\/v2\/media?parent=125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/syrup-factory.com\/memo\/wp-json\/wp\/v2\/categories?post=125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/syrup-factory.com\/memo\/wp-json\/wp\/v2\/tags?post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}