{"id":3497,"date":"2019-11-14T11:52:42","date_gmt":"2019-11-14T02:52:42","guid":{"rendered":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/?p=3497"},"modified":"2019-11-25T05:37:01","modified_gmt":"2019-11-24T20:37:01","slug":"php%e3%82%925-6%e3%81%8b%e3%82%897-3%e3%81%ab%e6%9b%b4%e6%96%b0%e3%81%97%e3%81%9f%e3%82%89%e3%80%81%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%82%a8%e3%83%a9%e3%83%bc%ef%bc%92%e4%bb%b6%e3%80%81","status":"publish","type":"post","link":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/2019\/11\/14\/3497\/","title":{"rendered":"WordPress: PHP\u30925.6\u304b\u30897.3\u306b\u66f4\u65b0\u3057\u305f\u3089\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u30a8\u30e9\u30fc\uff12\u4ef6\u3001\u672c\u6587\u8868\u793a\u5931\u6557"},"content":{"rendered":"<p>\u3053\u306e\u30d6\u30ed\u30b0\u306e\u8a2d\u7f6e\u30b5\u30fc\u30d0\u306ePHP\u30925.6\u304b\u30897.3\u306b\u66f4\u65b0\u3057\u305f\u3002<\/p>\n<p>\u30b5\u30a4\u30c8\u3082\u8868\u793a\u3067\u304d\u3066phpinfo()\u306f\u52d5\u4f5c\u3057\u305f\u304c\u3001WordPress\u304c\u52d5\u4f5c\u3057\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u2026\u3002\u3044\u3084\u3001\u304a\u524d\u304cPHP\u66f4\u65b0\u3057\u308d\u3068\u3044\u3046\u304b\u3089\u4f5c\u696d\u3057\u305f\u3093\u3060\u304c\u2026\u3002<\/p>\n<p>wp-blog-header.php\u5185\u306e\u4e0b\u8a18\u306e\u8aad\u307f\u8fbc\u307f\u3067\u5931\u6557\u3057\u3066\u3044\u308b\u3089\u3057\u3044\u3002<\/p>\n<p><div class=\"hl-surround\" style=\"height:16.8px;\"><div class=\"hl-main\"><pre>require_once( dirname( &lt;strong&gt;FILE&lt;\/strong&gt; ) . '\/wp-load.php' );<\/pre><\/div><\/div>\n<p>wp-config.php\u3092\u7d4c\u7531\u3057\u3066\u304b\u3089\u306e wp-settings.php<\/p>\n<p>\u5404\u8a18\u4e8b\u306f\u30bf\u30a4\u30c8\u30eb\u3057\u304b\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u306e\u3060\u304c\u3001\u7de8\u96c6\u753b\u9762\u3060\u3068\u672c\u6587\u3082\u304d\u3061\u3093\u3068\u53d6\u5f97\u3055\u308c\u3066\u3044\u308b\u3057\u3001\u30bf\u30a4\u30c8\u30eb\u3057\u304b\u306a\u3044\u5404\u30da\u30fc\u30b8\u306eHTML\u30bd\u30fc\u30b9\u3092\u773a\u3081\u308b\u3068\u30bd\u30fc\u30b7\u30e3\u30eb\u30dc\u30bf\u30f3\u3078\u306e\u60c5\u5831\u3068\u3057\u3066\u672c\u6587\u306e\u30c7\u30fc\u30bf\u304c\u57cb\u3081\u8fbc\u307e\u308c\u3066\u3044\u308b\u3002\u306a\u306e\u3067\u3001\u52d5\u4f5c\u3057\u3066\u3044\u306a\u3044\u3068\u307e\u3067\u306f\u306a\u3089\u306a\u3044\u3089\u3057\u3044\u3093\u3060\u3051\u3069\u2026\u3002<\/p>\n<p>wp_includes\/post-template.php\u5185\u306ethe_content\u3092\u898b\u308b\u3068\u3001get_the_content\u3067\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u306f\u3067\u304d\u3066\u3044\u308b\u306e\u3060\u304c\u3001\u305d\u306e\u5f8c\u306eapply_filters(&#8216;the_content&#8217;, $content)\u3092\u5b9f\u884c\u3059\u308b\u3068\u5185\u5bb9\u304c\u7a7a\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u307f\u305f\u3044\u3002\u3069\u3053\u304b\u3067add_filter\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u304c\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u304b\uff1f<\/p>\n<ul>\n<li><a href=\"http:\/\/http:\/\/blog1.dd-company.com\/using-apply-filters-and-add-filter\/\">apply_filters \u3068 add_filter \u306e\u4f7f\u7528\u65b9\u6cd5\u3002<br \/>\n<\/a><\/p>\n<li><a href=\"http:\/\/blog1.dd-company.com\/example-of-use-filter-hook-the_content\/\">\u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af the_content \u306e\u4f7f\u7528\u4f8b\u3002<br \/>\n<\/a>\n<\/ul>\n<p>includes\/{default-filters,blocks}.php\u5185\u3067\u30d5\u30a3\u30eb\u30bf\u8a2d\u5b9a\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u3088\u3046\u3060\u304c\u3001\u3053\u308c\u3089\u3092\u30aa\u30d5\u306b\u3057\u3066\u3082\u7d50\u679c\u306f\u5909\u308f\u3089\u305a\u2026\u3002<\/p>\n<p>the_content\u306eapply_filter\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u3068\u3001\uff08\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u5d29\u308c\u308b\u3082\u306e\u306e\uff09\u672c\u6587\u306f\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u3053\u306e\u30d5\u30a3\u30eb\u30bf\u51e6\u7406\u304c\u539f\u56e0\u306e\u3088\u3046\u306a\u306e\u3060\u304c\u3002<\/p>\n<p>\u81ea\u524d\u306ememolink\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u306e\u30a8\u30e9\u30fc\u3060\u3063\u305f\u2026\u3002preg_replace\u306ee\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3044\u305f\u307f\u305f\u3044\uff1f\uff1f<\/p>\n<p><div class=\"hl-surround\" ><div class=\"hl-main\"><pre>$ php foo.php\r\nPHP Warning:  preg_replace(): The \/e modifier is no longer supported, use preg_replace_callback instead in XXX\/wp-content\/plugins\/memolink\/memolink.php on line XXX<\/pre><\/div><\/div>\n<ul>\n<li><a href=\"https:\/\/hnw.hatenablog.com\/entry\/20100815\">\u4f8b\u3048\u3070PHP\u306epreg_replace\u95a2\u6570\u3067e\u4fee\u98fe\u5b50\u3092\u907f\u3051\u308b &#8211; hnw\u306e\u65e5\u8a18<\/a>\n<ul>\n<li>e\u4fee\u98fe\u5b50\u306fPHP 5.5\u304b\u3089deprecated\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001PHP7\u304b\u3089\u306f\u5ec3\u6b62\u3055\u308c\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"http:\/\/www.koikikukan.com\/archives\/2014\/05\/26-025555.php\">PHP\u306epreg_replace()\u3067\u300cThe \/e modifier is deprecated\u300d\u3068\u306a\u308b\u5834\u5408\u306e\u5bfe\u51e6\u65b9\u6cd5: \u5c0f\u7c8b\u7a7a\u9593<\/a><\/li>\n<li><a href=\"https:\/\/teratail.com\/questions\/198007\">PHP &#8211; PHP\uff1apreg_replace\u304b\u3089preg_replace_callback()\u3078\u306e\u5dee\u3057\u66ff\u3048\u306b\u3064\u3044\u3066\uff5cteratail<\/a><\/li>\n<\/ul>\n<p>split()\u3082\u306a\u304f\u306a\u3063\u3066\u308b\u2026\u3002explode()\u3067\u5bfe\u5fdc\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/www.marineroad.com\/staff-blog\/19442.html\">[PHP] PHP7\u3067split\u95a2\u6570\u306f\u524a\u9664\u3055\u308c\u305f\u304b\u3089\u2026 | \u30de\u30ea\u30f3\u30ed\u30fc\u30c9<\/a>\n<ul>\n<li>\u300csplit\u95a2\u6570\u300d\u306f PHP5.3.0 \u3067\u975e\u63a8\u5968\u3068\u306a\u308a\u3001 PHP7.0.0 \u3067\u524a\u9664\u3055\u308c\u307e\u3057\u305f\u3002<\/li>\n<li>explode\u95a2\u6570\uff08\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u308f\u306a\u3044\u5834\u5408\uff09\u4eca\u5f8c\u306f\u3053\u3061\u3089\u300cexplode\u95a2\u6570\u300d\u3092\u4f7f\u7528\u3057\u307e\u3057\u3087\u3046\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>PHP5\u21d2PHP7\u306b\u3064\u3044\u3066\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u975e\u4e92\u63db\u6027\u304c\u3002\u4ed6\u306e\u52d5\u4f5c\u3057\u306a\u304b\u3063\u305f\u30d7\u30e9\u30b0\u30a4\u30f3\u3082\u3053\u306e\u3042\u305f\u308a\u306e\u554f\u984c\u304c\u3042\u3063\u305f\u306e\u3060\u308d\u3046\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/www.php.net\/manual\/ja\/migration70.incompatible.php\">PHP: \u4e0b\u4f4d\u4e92\u63db\u6027\u306e\u306a\u3044\u5909\u66f4\u70b9 &#8211; Manual<\/a><\/li>\n<\/ul>\n<p>WordPress\u304c\u300c\u6700\u65b0PHP\u306f\u9ad8\u901f\u5316\u300d\u3068\u717d\u308b\u304b\u3089\u66f4\u65b0\u3057\u3066\u307f\u3066\u3044\u3066\u3001\u307e\u3060\u52b9\u679c\u306f\u78ba\u8a8d\u3067\u304d\u3066\u3044\u306a\u3044\u3068\u3053\u308d\u3060\u304c\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306bPHP5\u3068PHP7\u3060\u3068\uff12\u500d\u3068\u306e\u8a18\u4e8b\u3082\u3042\u3063\u305f\u3002<\/p>\n<ul>\n<li>(PHP5\u3068PHP7\u306e\u901f\u5ea6\u3092\u6bd4\u8f03\u30012\u500d\u4ee5\u4e0a\u9ad8\u901f\u306b\u306a\u308b\u307b\u3069\u306e\u9055\u3044\u3068\u306f &#8211; \u3010\u500b\u4eba\u5411\u3051\u3011\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u9078\u3073\u65b9)[<a href=\"https:\/\/serversenshi.com\/php5-php7\/\">https:\/\/serversenshi.com\/php5-php7\/<\/a>]<\/li>\n<\/ul>\n<p>\u307e\u305f\u3001ownCloud 10.0.10\u304cPHP7.3\u3060\u3068\u52d5\u304b\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u3066\u56f0\u3063\u305f\u304c\u3001ownCloud 10.3\u4ee5\u964d\u3060\u3068\u5bfe\u5fdc\u3057\u3066\u3044\u3066\u3001\u6025\u907d\u66f4\u65b0\u3057\u3066\u306a\u3093\u3068\u304b\u52d5\u304f\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/doc.owncloud.org\/server\/10.3\/admin_manual\/release_notes.html#changes-in-10-3-0\">Release Notes :: ownCloud Documentation<\/a>\n<ul>\n<li>ownCloud Server 10.3 officially supports PHP 7.3.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u304b\u3001\u5143\u3005\u306f ownCloud\u306e\u30d5\u30a1\u30a4\u30eb\u6697\u53f7\u5316\u6a5f\u80fd\u3060\u304c\u52d5\u4f5c\u3057\u306a\u304f\u306a\u3063\u3066\u3044\u3066\u3001\u305d\u308c\u3092\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3088\u3046\u3068\u3057\u305f\u3089PHP5\u3060\u3068\u5bfe\u5fdc\u3067\u304d\u306a\u3044\u307f\u305f\u3044\u306a\u8868\u793a\u3082\u3042\u3063\u3066PHP\u3092\u66f4\u65b0\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u305f\u899a\u3048\u3082\u3002<\/p>\n<p>\u4f5c\u696d\u6642\u306b\u3001occ\u30b3\u30de\u30f3\u30c9\u3067\u66f4\u65b0\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3001\u3044\u304f\u3064\u304b\u30a2\u30d7\u30ea\u304c\u52d5\u304b\u306a\u3044\u3068\u306e\u30a8\u30e9\u30fc\u3002\u3068\u308a\u3042\u3048\u305a\u3001disable\u306b\u3057\u305f\u3002<\/p>\n<p><div class=\"hl-surround\" ><div class=\"hl-main\"><pre>2019-11-14T10:35:15+00:00 Repair warning: You have incompatible or missing apps enabled that could not be found or updated via the marketplace.\r\n2019-11-14T10:35:15+00:00 Repair warning: Please install or update the following apps manually or disable them with:\r\nocc app:disable drawio\r\nocc app:disable files_clipboard\r\nocc app:disable rainloop\r\n2019-11-14T10:35:15+00:00 Repair warning: For manually updating, see &lt;a href=&quot;https:\/\/doc.owncloud.org\/server\/10.3\/go.php?to=admin-marketplace-apps&quot;&gt;https:\/\/doc.owncloud.org\/server\/10.3\/go.php?to=admin-marketplace-apps&lt;\/a&gt;\r\n2019-11-14T10:35:15+00:00 OCRepairException: Upgrade is not possible\r\n2019-11-14T10:35:15+00:00 Update failed<\/pre><\/div><\/div>\n<\/p>\n<p>ownCloud\u3082\u540c\u671f\u304c\u9045\u304f\u3066\u56f0\u3063\u3066\u3044\u305f\u304c\u3001\u3053\u3061\u3089\u3082\u901f\u5ea6\u6539\u5584\u3059\u308b\u3068\u3044\u3044\u306e\u3060\u304c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30d6\u30ed\u30b0\u306e\u8a2d\u7f6e\u30b5\u30fc\u30d0\u306ePHP\u30925.6\u304b\u30897.3\u306b\u66f4\u65b0\u3057\u305f\u3002 \u30b5\u30a4\u30c8\u3082\u8868\u793a\u3067\u304d\u3066phpinfo()\u306f\u52d5\u4f5c\u3057\u305f\u304c\u3001WordPress\u304c\u52d5\u4f5c\u3057\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u2026\u3002\u3044\u3084\u3001\u304a\u524d\u304cPHP\u66f4\u65b0\u3057\u308d\u3068\u3044\u3046\u304b\u3089\u4f5c\u696d\u3057\u305f\u3093\u3060\u304c\u2026\u3002 wp [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[60,437,3],"_links":{"self":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/3497"}],"collection":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/comments?post=3497"}],"version-history":[{"count":7,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/3497\/revisions"}],"predecessor-version":[{"id":6956,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/3497\/revisions\/6956"}],"wp:attachment":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/media?parent=3497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/categories?post=3497"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/tags?post=3497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}