{"id":2647,"date":"2021-11-22T13:41:00","date_gmt":"2021-11-22T05:41:00","guid":{"rendered":"https:\/\/ufqi.com\/blog\/?p=2647"},"modified":"2021-11-24T11:04:03","modified_gmt":"2021-11-24T03:04:03","slug":"ufqinews-gwa2-php8","status":"publish","type":"post","link":"https:\/\/ufqi.com\/blog\/ufqinews-gwa2-php8\/","title":{"rendered":"\u60ca\u9b42\u4e00\u591c!\u6709\u798f\u65b0\u95fbUfqiNews\u5347\u7ea7\u5230PHP8"},"content":{"rendered":"\n<p>\u6709\u798f\u65b0\u95fbUfqiNews\u7684\u8001\u7248\u672c\u4f9d\u7136\u8fd0\u884c\u5728 GWA2 PHP ( https:\/\/ufqi.com\/dev\/gwa2\/ )\u4e0a\uff0c\u53bb\u5e74\u5e95PHP\u7f16\u7a0b\u8bed\u8a00\u672c\u8eab\u5347\u7ea7\u5230\u4e86PHP8, \u83b7\u5f97\u597d\u8bc4\uff0c\u6211\u4eec\u5373\u6253\u7b97\u62e9\u65e5\u5347\u7ea7GWA2 PHP\u5230PHP8\u7248\u672c\u3002<\/p>\n\n\n\n<p>\u8003\u8651\u5230\u4e4b\u524d\u5173\u4e8e\u5347\u7ea7\u7684\u7ecf\u9a8c\u6559\u8bad\uff0c\u4efb<strong>\u4f55\u5f00\u6e90\u8f6f\u4ef6\uff0c\u80fd\u591f\u5728\u751f\u4ea7\u7ebf\u90e8\u7f72\u7684\uff0c\u4e00\u5b9a\u662f\u5f53\u524d\u7a33\u5b9a\u7248\u672c\uff08latest stable release\uff09\u7684\u4e0a\u4e00\u4e2a\u7248\u672c\uff0c\u4e5f\u5c31\u662f\u4e0a\u4e00\u4e2a\u7a33\u5b9a\u7248\u672c\u7684\u6700\u65b0\u5c0f\u7248\u672c<\/strong>\u3002\u6240\u4ee5\u6211\u4eec\u8003\u8651\u5c06 \u6709\u798f\u65b0\u95fbUfqiNews\u7684GWA2 PHP\u5347\u7ea7\u7684\u8bdd\uff0c\u4e5f\u4e0d\u4f1a\u76f4\u63a5\u53bbPHP8\uff0c\u800c\u662f\u5148\u4f7f\u7528 PHP8\u4e4b\u524d\u7684\u4e00\u4e2a\u7a33\u5b9a\u7248\u672cPHP7.4.<\/p>\n\n\n\n<p>\u53c8\u7531\u4e8e\u8f6f\u4ef6\u5f00\u53d1\u548c\u4f7f\u7528\uff0c\u5c24\u5176\u662f<strong>\u7cfb\u7edf\u8f6f\u4ef6\u7684\u5f00\u53d1\u548c\u4f7f\u7528\uff0c\u53e6\u5916\u4e00\u4e2a\u9ec4\u91d1\u6cd5\u5219\u662f\u80fd\u591f\u8fd0\u884c\u5c31\u5c3d\u91cf\u4e0d\u8981\u53bb\u505a\u4efb\u4f55\u4fee\u6539\uff08\u5305\u62ec\u5347\u7ea7\u3001\u4f18\u5316\u7b49\uff09<\/strong>\u3002\u6240\u4ee5\u5982\u679c\u6ca1\u6709\u4e00\u5b9a\u7684\u52a8\u529b\u7684\u8bdd\uff0c\u6211\u4eec\u662f\u4e0d\u4f1a\u53bb\u4fee\u6539\uff08\u5347\u7ea7\u3001\u4f18\u5316\uff09\u4e00\u4e2a\u8fd0\u884c\u6b63\u5e38\u7684\u7cfb\u7edf\u3002<\/p>\n\n\n\n<p>\u4e0d\u5e78\u7684\u662f\uff0c\u65f6\u8fc7\u5883\u8fc1\uff0c\u7269\u6362\u661f\u79fb\uff0c\u4eba\u4eec\u5bf9\u8f6f\u4ef6\u7cfb\u7edf\u7684\u6539\u8fdb\u671f\u671b\u662f\u65e0\u6b62\u5883\u7684\u3002\u5f88\u5feb\u6211\u4eec\u5c31\u9047\u5230\u4e00\u4e2a\u9700\u8981\u901a\u8fc7\u5347\u7ea7\u6765\u89e3\u51b3\u7684\u95ee\u9898\uff1a\u5f53\u524d\u7684UfqiNews ( https:\/\/ufqi.com\/news\/ ) \u7cfb\u7edf\u91cc\u5728\u5904\u7406\u56fe\u7247\u6c34\u5370\u65f6\uff0c\u65e0\u6cd5\u5728WebP\u683c\u5f0f\u7684\u56fe\u7247\u4e0a\u6253\u6c34\u5370\u3002\u8fd9\u4e5f\u4e0d\u662f\u5927\u95ee\u9898\uff0c\u8981\u6c42\u56fe\u7247\u53e6\u5b58\u4e3a\u5176\u4ed6\u683c\u5f0f\u4e5f\u53ef\u4ee5\u7ed5\u8fc7\u53bb\uff0c\u6bd5\u7adfWebP\u683c\u5f0f\u7684\u56fe\u7247\u8fd8\u662f\u65b0\u4e8b\u7269\u3002\u53ef\u662f\u770b\u5230WebP\u7684\u53d1\u5c55\u52bf\u5934\uff0c\u4f3c\u4e4e\u666e\u53ca\u8d77\u6765\u4e5f\u53ea\u662f\u65f6\u95f4\u95ee\u9898\uff0c\u52a0\u4e0a\u5bf9PHP8\u7684\u795e\u4e4e\u5176\u6280\u7684\u201c\u98de\u901f\u201d\u4f20\u8a00\uff0c\u6211\u4eec\u5c31\u4f9d\u4ed7\u201c\u827a\u9ad8\u4eba\u80c6\u5927\u201d\u7684\u8111\u95e8\u4e00\u70ed\u7684\u5f00\u542f\u4e86\u5728 UfqiNews\u4e0a\u5347\u7ea7PHP8\u7684\u64cd\u4f5c\u4e86\uff0c\u4ece\u800c\u9047\u4e0a\u4e86\u60ca\u9b42\u4e00\u591c\uff0cPHP8\u6709\u4e0d\u517c\u5bb9\u7684\u95ee\u9898\uff0c\u5c24\u5176\u662f\u770b\u8d77\u6765\u50cf\u662f\u8d70\u9000\u8def\u7684NULL\u503c\u95ee\u9898\u548c\u6570\u636e\u7c7b\u578b\u9519\u8bef\u629b\u51faTypeError\/ValueError\u3002<\/p>\n\n\n\n<h3>PHP Built-in function  <strong>count()<\/strong> Changelog<a href=\"https:\/\/www.php.net\/manual\/en\/function.count.php#refsect1-function.count-changelog\">&nbsp;\u00b6<\/a><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Version<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>8.0.0<\/td><td><strong>count()<\/strong>&nbsp;will now throw&nbsp;<a href=\"https:\/\/www.php.net\/manual\/en\/class.typeerror.php\">TypeError<\/a>&nbsp;on invalid countable types passed to the&nbsp;<code>value<\/code>&nbsp;parameter.<\/td><\/tr><tr><td>7.2.0<\/td><td><strong>count()<\/strong>&nbsp;will now yield a warning on invalid countable types passed to the&nbsp;<code>value<\/code>&nbsp;parameter.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3>PHP Built-in function  <strong>explode()<\/strong>  Changelog<a href=\"https:\/\/www.php.net\/manual\/en\/function.explode.php#refsect1-function.explode-changelog\">&nbsp;\u00b6<\/a><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Version<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>8.0.0<\/td><td><strong>explode()<\/strong>&nbsp;will now throw&nbsp;<a href=\"https:\/\/www.php.net\/manual\/en\/class.valueerror.php\">ValueError<\/a>&nbsp;when&nbsp;<code>separator<\/code>&nbsp;parameter is given an empty string (<code>\"\"<\/code>). Previously,&nbsp;<strong>explode()<\/strong>&nbsp;returned&nbsp;<strong><code>false<\/code><\/strong>&nbsp;instead.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u53e6\u4e00\u4e2a\u53d7\u5f71\u54cd\u8f83\u4e3a\u4e25\u91cd\u7684PHP\u5185\u7f6e\u51fd\u6570\u662f implode , <br \/>PHP 7\u53ca\u4e4b\u524d\uff0c <br \/>$str = implode(&#8220;-&#8220;, $array); <br \/># \u80fd\u5403\u5c4e\uff0c \u4e0d\u7ba1 $array \u662f\u5565\u6599\uff0c\u90fd\u6b63\u5e38\u8fd4\u56de\uff0c\u7ee7\u7eed\u7a0b\u5e8f &#8230;<br \/>PHP 8\u53ca\u4e4b\u540e\uff0c <br \/>$str = implode(&#8220;-&#8220;, $array);<br \/><strong># \u5f00\u59cb\u786c\u603c\u4e86\uff0c $array \u7c7b\u578b\u4e0d\u5bf9\u65f6\uff0c\u76f4\u63a5\u629b\u51fa\u9519\u8bef\uff0c\u6482\u6311\u5b50\u4e0d\u5e72\u4e86\uff01<\/strong><\/p>\n\n\n\n<p>PHP\u4e4b\u6240\u4ee5\u96c4\u8d77\u7684\u201c\u521d\u5fc3\u201d\u4e4b\u4e00\u5c31\u662f\u6709\u79cd\u201c\u80fd\u5403\u5c4e\u201d\u7684\u7cbe\u795e\uff0c\u4e00\u4e2a\u53d8\u91cf\u4e0d\u7ba1\u5565\u7c7b\u578b\uff0c\u90fd\u80fd\u987a\u5229\u6267\u884c\u8dd1\u901a\uff0c\u5373\u4fbf\u7ed3\u679c\u662f\u975e\u9884\u671f\u7684\uff0c\u65ad\u7136\u4e0d\u81f3\u4e8e\u5c06\u7a0b\u5e8f\u9000\u51fa\u6765\uff0c<strong>\u76f4\u63a5\u786c\u603c\u8c03\u7528\u8005\u8bf4\uff0c\u201c\u50bb\u8d27\uff0c\u4f60\u8f93\u5165\u7684\u6570\u636e\u6709\u95ee\u9898\uff01\u201d<\/strong><\/p>\n\n\n\n<p>\u901a\u5e38\u53ea\u6709\u90a3\u4e9b\u5f3a\u7c7b\u578b\u7684\u3001\u9884\u7f16\u8bd1\u7684\u8bed\u8a00\u7684\u624d\u6709\u90a3\u4e48\u786c\u521a\u786c\u603c\u7684\u5e95\u6c14\uff0cPHP\u4e4b\u524d\u662f\u65ad\u7136\u4e0d\u4f1a\u7684\u3002\u771f\u662f\u7531\u4e8e\u8fd9\u79cd\u201c<strong>\u6709\u4e8b\u79c1\u4e0b\u8bf4\uff0c\u6709\u95ee\u9898\u65e5\u5fd7\u91cc\u6253\u5c0f\u62a5\u544a<\/strong>\u201d\u7684\u5e73\u6613\u8fd1\u4eba\uff0c\u83b7\u5f97\u4e86\u5f88\u591a\u5c0f\u767d\u521d\u7ea7\u7a0b\u5e8f\u5458\u7684\u559c\u6b22\uff0c\u9047\u4e0a\u4e92\u8054\u7f51\u7684\u4e1c\u98ce\uff0c\u9010\u6e10\u6210\u71ce\u539f\u4e4b\u52bf\u3002PHP7\u53ca\u4e4b\u524d\u7684\u7a0b\u5e8f\u4ee3\u7801\uff0c\u53ea\u8981\u6ca1\u6709\u5f62\u5f0f\u4e0a\u9519\u8bef\uff0c\u57fa\u672c\u4e0a\u90fd\u80fd\u987a\u5229\u8fd0\u884c\u3001\u8dd1\u51fa\u7ed3\u679c\uff08\u6216\u53ef\u80fd\u975e\u9884\u671f\uff09\u3002\u7e41\u7410\u590d\u6742\u7684\u7f16\u8bd1\u3001\u7c7b\u578b\u68c0\u67e5\u3001\u5185\u5b58\u7533\u8bf7\u4e0e\u9500\u6bc1\u3001\u5783\u573e\u56de\u6536\u3001\u6570\u7ec4\u8d8a\u754c\u3001\u7a7a\u6307\u9488\u3001Nnll\u5bf9\u8c61\u7b49\u7b49\u4e00\u4e9b\u5217\u95ee\u9898\uff0c\u8bed\u8a00\u7c7b\u5e93\u53caAPI\u672c\u8eab\u90fd\u505a\u4e86\u4e00\u7cfb\u5217\u7684\u52aa\u529b\uff0c\u4f7f\u4e4b\u5c3d\u53ef\u80fd\u4e0d\u7ec8\u6b62\u7a0b\u5e8f\u7684\u8fd0\u884c\u3002<\/p>\n\n\n\n<p>\u8fd9\u79cd\u5e73\u6613\u8fd1\u4eba\u5176\u672c\u8d28\u662f\u8bed\u8a00\u672c\u8eab\u7684\u7c7b\u5e93\u53caAPI\u5bf9\u7a0b\u5e8f\u5f00\u53d1\u8005\u3001\u5bf9\u7a0b\u5e8f\u4f7f\u7528\u8005\u63d0\u4f9b\u4e86\u5f02\u5e38\u60c5\u51b5\u5904\u7406\u5de5\u5177\uff0c\u662f\u67d0\u79cd\u5305\u5bb9\u7cbe\u795e\u7684\u4f53\u73b0\u3002\u7a0b\u5e8f\u5458\u4f1a\u641e\u9519\u7c7b\u578b\uff0c\u7ec8\u7aef\u7528\u6237\u4e5f\u4f1a\u624b\u6296\uff0c\u7f51\u7edc\u4e5f\u4e0d\u7a33\u5b9a\uff0c\u64cd\u4f5c\u7cfb\u7edf\u4e5f\u5076\u5c14\u5f02\u5e38\uff0c\u8f93\u5165\u7684\u6570\u636e\u7c7b\u578b\u6709\u95ee\u9898\u4f3c\u4e4e\u5728\u6240\u96be\u514d\u3002<\/p>\n\n\n\n<p>\u8bed\u8a00\u5f00\u53d1\u8005\u8fd9\u4e48\u5347\u7ea7\u6539\u8fdb\u957f\u813e\u6c14\u5730\u786c\u603c\u7a0b\u5e8f\u5f00\u53d1\u8005\uff0c\u5982\u679c\u7a0b\u5e8f\u5f00\u53d1\u8005\u4e0d\u505a\u5f02\u5e38\u5904\u7406\uff0c\u5219\u5c31\u4e00\u8def\u786c\u603c\u5230\u7ec8\u7aef\u7528\u6237\u90a3\u91cc\u3002\u8fd9\u663e\u7136\u662f\u4e0d\u884c\u7684\uff0c\u8ba9\u7ec8\u7aef\u7528\u6237\u5403\u762a\uff0c\u7a0b\u5e8f\u5458\u662f\u65e0\u6cd5\u4ea4\u4ee3\u7684\uff0c\u7a0b\u5e8f\u5458\u53ef\u4ee5\u5f80\u56de\u627e\u8bed\u8a00\u5f00\u53d1\u8005\u5417\uff1f \u7eb5\u6709\u7406\u7531\u5343\u5343\u4e07\uff0c\u7b80\u5355\u6613\u884c\u7684PHP\uff0c\u4e0d\u8be5\u5fd8\u4e86\u521d\u5fc3\uff0c\u5c06\u8fd9\u4e9b\u7e41\u7410\u7684\u3001\u57fa\u672c\u7684\u68c0\u67e5\u629b\u51fa\u6765\uff08\u800c\u4e0d\u662f\u517c\u5bb9\u5904\u7406\u6d88\u9664\u6d88\u5316\u6389\u95ee\u9898\uff09\uff0c\u628a\u5f3a\u7c7b\u578b\u8bed\u8a00\u7684\u201c\u7f3a\u70b9\u201d\u5b66\u6765\uff0c\u4f5c\u4e3a\u201c\u957f\u8fdb\u201d\u3002<\/p>\n\n\n\n<p><strong>\u8fd9\u4e9b\u80cc\u540e\u53ef\u80fd\u662f\u590d\u6742\u548c\u6f2b\u957f\u7684\u51b3\u7b56\u3001\u6743\u8861\u4e0e\u535a\u5f08\uff0c\u5176\u672c\u8eab\u662f\u67d0\u79cd\u65b9\u6cd5\u8bba\u7684\u5bf9\u6bd4\uff0c\u5176\u672c\u8eab\u90fd\u6ca1\u6709\u5bf9\u4e0e\u9519\uff0c\u800c\u662f\u4e00\u4e9b\u53d6\u820d\u548c\u8fb9\u9645\u9009\u62e9<\/strong>\u3002\u8fd9\u8ba9\u6211\u60f3\u8d77\u4e86\u6211\u4eec\u5728\u8bbe\u8ba1 GWA2 \u7684API\u63a5\u53e3\u65f6\u7684\u4e00\u4e9b\u8003\u8651\uff0c\u540c\u65f6\u4e5f\u5728\u963f\u91cc\u5df4\u5df4\u548cGoogle\u7684\u4e00\u4e9bJava\u8bed\u8a00\u89c4\u8303\uff08 https:\/\/ufqi.com\/news\/ulongpage.1507.html?tit=Java\u958b\u767c\u624b\u518a-\u963f\u91cc\u5df4\u5df4-\u5d69\u5c71\u7248-2\uff1a\u7de8\u7a0b\u898f\u7d04 \uff09\u4e2d\u51fa\u73b0\u8fc7\u3002<\/p>\n\n\n\n<p>\u6bd4\u5982\u5728 GWA2 \u7684\u4e3b\u4f53\u65b9\u6cd5\u4e0e\u63a5\u53e3\u4e2d\uff0c\u5982\u679c\u65b9\u6cd5\u7684\u8fd4\u56de\u503c\u662f\u57fa\u672c\u7c7b\u578b( primitive&nbsp;scalar types )\uff0c\u5e94\u8be5\u662f\u6709\u4e2a\u9ed8\u8ba4\u8fd4\u56de\u503c\uff0c\u4ee5\u4e0a\u9762 PHP \u7684 count \u51fd\u6570\u4e3a\u4f8b\uff0c\u6211\u4eec\u9884\u671f\u7684\u5199\u6cd5\uff1a<br \/>function int count($list){<br \/>int c = 0; # default or on failure<br \/>if(!isset($list)){  } # a waring<br \/>else if($list == null){ } # another warning<br \/>else if(!is_array($list)){ } # 3rd warning<br \/>else{<br \/># count based on some rule&#8230;<br \/>c++;<br \/>}<br \/>return c;<br \/>}<\/p>\n\n\n\n<p>\u5982\u679c\u662f\u975e\u57fa\u672c\u6570\u636e\u7c7b\u578b\u7684\uff0c\u5982\u6570\u7ec4\u3001\u5217\u8868\u6216\u8005Hash\u8868\u3001\u8d44\u6e90\u63cf\u8ff0\u7b26\u7b49\u8fd4\u56de\u503c( non-primitive compound types )\uff0c\u5219\u5e94\u8be5\u662f\u4e24\u4e2a\u8fd4\u56de\u5b57\u6bb5\uff0c\u4e00\u4e2a\u5b57\u6bb5\u6807\u6ce8\u662f\u5426\u6210\u529f\u5904\u7406\uff0c\u53e6\u5916\u4e00\u4e2a\u5b57\u6bb5\u5219\u662f\u5904\u7406\u7684\u5b9e\u9645\u7ed3\u679c\u503c\u3002\u4ee5\u4e0a\u9762 PHP \u7684 explode \u51fd\u6570\u4e3a\u4f8b\uff0c\u6211\u4eec\u9884\u671f\u7684\u5199\u6cd5\uff1a<br \/>function array explode($separator, $string){<br \/>$rtnArray = array(); $rtnList = array;<br \/>$isSucc = false;<br \/> if(!isset($string)){  } # a waring<br \/>else if($string == null){ } # another warning<br \/>else if(!is_string($string)){ } # 3rd warning<br \/> else if($string == &#8220;&#8221;){ } # 4th warning <br \/>else{<br \/># split based on some rule&#8230;<br \/>$rtnList[$i] = function($string, $i);<br \/>$isSucc = true; <br \/>}<br \/>if($isSucc){ $rtnArray[0] = true; $rtnArray[1] = $rtnList; }<br \/>else{  $rtnArray[0] = false; $rtnArray[1] = $rtnList;  } <br \/>return $rtnArray;<br \/>}<br \/><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2021\/11\/gwa2-doc-cover.png\"><img loading=\"lazy\" width=\"524\" height=\"882\" src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2021\/11\/gwa2-doc-cover.png\" alt=\"\" class=\"wp-image-2648\" srcset=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2021\/11\/gwa2-doc-cover.png 524w, https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2021\/11\/gwa2-doc-cover-178x300.png 178w\" sizes=\"(max-width: 524px) 100vw, 524px\" \/><\/a><figcaption>GWA2 Manual Book<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2021\/11\/gwa2-doc-return-value.png\"><img loading=\"lazy\" src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2021\/11\/gwa2-doc-return-value.png\" alt=\"\" class=\"wp-image-2649\" width=\"670\" height=\"902\" srcset=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2021\/11\/gwa2-doc-return-value.png 723w, https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2021\/11\/gwa2-doc-return-value-223x300.png 223w\" sizes=\"(max-width: 670px) 100vw, 670px\" \/><\/a><figcaption>GWA2 Return Values of Methods<\/figcaption><\/figure>\n\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n\n<p>\u9644\u8bb01.<\/p>\n\n\n\n<p>\u4e3a\u4e86\u4f7f\u5f97\u7cfb\u7edf\u80fd\u591f\u652f\u6301WebP\u683c\u5f0f\u7684\u56fe\u7247\u6587\u4ef6\u652f\u6301\u6c34\u5370\u529f\u80fd\uff0c\u6211\u4eec\u6253\u7b97\u5347\u7ea7PHP\u8bed\u8a00\u73af\u5883\u3002<\/p>\n\n\n\n<p>\u8d77\u521d\uff0c\u6211\u4eec\u5e76\u4e0d\u6253\u7b97\u5347\u7ea7\u5230 PHP8\uff0c\u800c\u662f\u6253\u7b97\u5347\u7ea7\u5230PHP7.4\u8fd9\u4e2a\u7248\u672c\uff0c\u5728\u5b9e\u9645\u7f16\u8bd1PHP\u6e90\u4ee3\u7801\u65f6\uff0c\u5f53\u524d\u7cfb\u7edf\u4e0a\u62a5\u9519\u8bf4\u7f3a\u5c11 oniguruma\u7c7b\u5e93\uff0c\u5373\u4fbf\u901a\u8fc7yast\/zypper \u5b89\u88c5\u4e86 oniguruma-devel \u4e4b\u540e\uff0c\u4ecd\u7136\u62a5\u9519\u8bf4\u65e0\u6cd5\u627e\u5230\uff0c\u800c\u76f8\u540c\u914d\u7f6e\u7684\u53e6\u5916\u5176\u4ed6\u670d\u52a1\u5668\u5219\u80fd\u591f\u987a\u5229\u627e\u5230&amp;\u901a\u8fc7\u7f16\u8bd1\u3002 Linux\u8fd8\u6709\u5f88\u957f\u7684\u8def\u8981\u8d70\u3002<br \/>\u65e2\u7ed5\u65e0\u6cd5\u5b89\u88c5PHP7.4\uff0c \u90a3\u5c31\u8bd5\u8bd5PHP8\uff0c \u7ed3\u679c\u8fd8\u662f\u7c7b\u4f3c\u9519\u8bef\uff0c\u9884\u8ba1\u53ea\u597d\u9488\u5bf9oniguruma\u8fd9\u4e2a\u7c7b\u5e93\u4e0b\u70b9\u529f\u592b\uff0c\u7ecf\u8fc7\u4e00\u756a\u6298\u817e\uff0c\u7ec8\u4e8e\u901a\u8fc7\u624b\u5de5\u4e0b\u8f7d  https:\/\/github.com\/kkos\/oniguruma \u4e00\u4efd\u6e90\u4ee3\u7801\uff0c\u624b\u5de5\u7f16\u8bd1&amp;\u5b89\u88c5\u4e4b\u540e\u624d\u901a\u8fc7\u3002<\/p>\n\n\n\n<p>\u89e3\u51b3\u4e86 oniguruma \u8fd9\u4e2a\u95ee\u9898\u4e4b\u540e\uff0c\u5728\u7f16\u8bd1PHP8\u7684\u65f6\u5019\uff0c\u8fd8\u9047\u5230 ext\/geoip \u65e0\u6cd5\u7f16\u8bd1\u901a\u8fc7\u7684\u60c5\u51b5\uff0c\u540e\u6765\u901a\u8fc7\u624b\u5de5\u4e0b\u8f7d https:\/\/github.com\/rlerdorf\/geoip \u4e00\u4efd\u91cd\u65b0\u653e\u5165 ext\/geoip \u624d\u7b97\u901a\u8fc7\u3002<\/p>\n\n\n\n<p>\u5c3d\u7ba1\u89e3\u51b3\u4e86\u90a3\u4e48\u591a\u95ee\u9898\uff0c\u5177\u4f53PHP8\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u8fd8\u6ca1\u6709\u663e\u73b0\u3002\u7531\u4e8e\u62c5\u5fc3\u4f1a\u51fa\u73b0\u5f02\u5e38\uff0c\u6211\u4eec\u9009\u62e9\u5728\u6df1\u591c\u6d41\u91cf\u8f83\u5c0f\u7684\u65f6\u5019\u627e\u4e00\u53f0\u670d\u52a1\u5668\u8fdb\u884c\u8bd5\u88c5\uff0c\u7ed3\u679c\u5c31\u9047\u4e0a\u91cd\u542f\u4e4b\u540e\u5927\u9762\u79ef\u62a5\u9519\u7684\u60c5\u51b5\uff0c\u4e3e\u51e1\u9047\u5230 count \u548c implode \/explode\u7b49\u5730\u65b9\uff0c\u90fd\u9700\u8981\u624b\u5de5\u589e\u52a0\u76f8\u5e94\u7c7b\u578b\u6216\u6570\u636e\u5b89\u5168\u68c0\u67e5\u4ee3\u7801\u3002<\/p>\n\n\n\n<p>\u987a\u5e26\u7684\u6628\u665a\u8fd8\u672a\u88ab Hanjst ( https:\/\/ufqi.com\/dev\/hanjst\/ ) \u66ff\u6362\u6389\u7684PHP Smarty\u6a21\u677f\u5f15\u64ce\uff0c\u4e00\u6837\u968f\u7740PHP8\u7684\u5347\u7ea7\uff0c\u89e6\u53d1\u4e00\u56e2\u7cdf\u7684\u95ee\u9898\uff0c\u670d\u52a1\u88ab\u8feb\u7ec8\u6b62\u4e86\u4e00\u4f1a\u3002\u5e86\u5e78\u6211\u4eec\u5728\u540e\u7eed\u7684GWA2\u4e2d\u5c06\u9010\u6e10\u89e3\u8026\u6a21\u677f\u5f15\u64ce\uff0c\u4f7f\u7528 Hanjst\u66ff\u6362\u6389Smarty\uff0c\u4e0e\u670d\u52a1\u5668\u7aef\u5f00\u53d1\u8bed\u8a00\u4e0d\u518d\u7ed1\u5b9a\u3002<\/p>\n\n\n\n<p>\u518d\u4e00\u6b21\u7684\u60ca\u9b42\u4e00\u591c\uff01\u518d\u6b21\u5370\u8bc1\u4e86\uff0c\u4e0d\u8981\u5c31\u8fd1\u5347\u7ea7\u5230\u8f6f\u4ef6\u7684\u6700\u65b0\u7684latest stable release\uff0c\u60ca\u9b42\u5927\u4e8e\u60ca\u559c\u3002<br \/>\u518d\u6b21\u5370\u8bc1\u4e86\uff0c\u80fd\u8dd1\u7684\u7cfb\u7edf\uff0c\u5c3d\u91cf\u907f\u514d\u5347\u7ea7\uff0c\u5404\u79cd\u95ee\u9898\u4f1a\u5bfc\u81f4\u4e1a\u52a1\u88ab\u8feb\u4e2d\u65ad\u3002\u667a\u8005\u5343\u8651\uff0c\u5fc5\u6709\u4e00\u5931\u3002<\/p>\n\n\n\n<p> &#8212;-<\/p>\n\n\n\n<p>\u9644\u8bb02.<\/p>\n\n\n\n<p>\u8fd9\u662f\u4f7f\u7528 WordPress \u7684PHP8\u517c\u5bb9\u7248\uff0c\u521b\u4f5c\u7684\u7b2c\u4e00\u7bc7Blog\uff0cWordPress\u7684PHP8\u7684\u7248\u672c\u5347\u7ea7\u6bd4\u9884\u671f\u7684\u5feb\uff0c\u4f53\u9a8c\u597d\uff01\u503c\u5f97\u5b66\u4e60\u3002<\/p>\n\n\n\n<p>WordPress\u7684\u65b0\u7248\u5347\u7ea7\u8fc7\u7a0b\u5927\u81f4\u4e3a\uff1a<br \/>1\uff09\u5907\u4efd\u539f\u7a0b\u5e8f\u548c\u8d44\u6e90\u6587\u4ef6\uff0c\u5907\u4efd\u539f\u6570\u636e\u5e93\uff1b<br \/>2\uff09\u68c0\u67e5\u5907\u4efd\u7684\u53ef\u8fd8\u539f\u6027\uff1b<br \/>3\uff09\u65b0\u521b\u5efaWordPress\u5b50\u76ee\u5f55\uff0c\u6216\u8005\u5c06\u73b0\u6709\u76ee\u5f55\u8f6c\u79fb\u4e3a old\u76ee\u5f55\uff1b<br \/>4\uff09\u4e0b\u8f7d\u5e76\u89e3\u538bWordPress\u7684\u65b0\u7248\u672c\uff0c\u89e3\u538b\u5230\u76f8\u5e94\u5b50\u76ee\u5f55\uff0c\u901a\u8fc7\u8bbf\u95ee blog\/wp-admin\/install.php \u542f\u52a8\u7a0b\u5e8f\uff1b<br \/>5\uff09\u8f93\u5165\u539f\u6570\u636e\u5e93\u7684\u8bbf\u95ee\u8d26\u53f7\uff0cWordPress\u81ea\u52a8\u68c0\u67e5\uff1b<br \/>6\uff09\u81ea\u52a8\u9009\u62e9\u5347\u7ea7\u6570\u636e\u5e93\uff0c\u6b64\u524d\u7a0b\u5e8f\u6587\u4ef6\u5df2\u7ecf\u5347\u7ea7\u5b8c\u6bd5\uff1b<br \/>7\uff09\u4f7f\u7528\u539f\u8d26\u53f7\u767b\u5f55\u5230\u5347\u7ea7\u540e\u7684WordPress\u540e\u53f0\uff0c\u4e00\u5207\u5c31\u7eea\uff1b<br \/>8\uff09\u8fd8\u5dee\u539fWordPress\u4e0b\u7684\u4e3b\u9898\u6587\u4ef6\u548c\u8d44\u6e90\u6587\u4ef6\uff0c\u901a\u8fc7 cp -rf blog\/wp-content\/themes\/xxx-theme \u590d\u5236\u8fc7\u6765\u4e3b\u9898\u6587\u4ef6\uff1b<br \/>9\uff09  \u901a\u8fc7 cp -rf blog\/wp-content\/uploads \u590d\u5236\u8fc7\u6765\u8d44\u6e90\u6587\u4ef6\uff0c\u4e0a\u4f20\u6587\u4ef6\uff1b <br \/>10\uff09 WordPress \u63d0\u4f9b\u4e86\u5728\u7ebf\u5347\u7ea7\u539f\u4e3b\u9898\u7684\u670d\u52a1\uff0c\u987a\u5229\u5b9e\u65bd\u3002<br \/>11\uff09\u5347\u7ea7\u4e3b\u9898\u53ca\u76f8\u5173\u6587\u4ef6\u4e4b\u540e\uff0c\u539f\u5148\u5982\u679c\u5bf9\u4e3b\u9898\u6a21\u677f\u6587\u4ef6\u8fdb\u884c\u4e86\u76f8\u5e94\u4fee\u6539\u7684\u8bdd\uff0c\u9700\u8981\u91cd\u65b0\u5728\u5347\u7ea7\u540e\u7684\u6a21\u677f\u6587\u4ef6\u4e2d\u8fdb\u884c\u518d\u6b21\u6709\u9488\u5bf9\u6027\u7684\u4fee\u6539\uff0c\u6bd4\u5982\u7279\u8272\u94fe\u63a5\uff0c\u63d2\u56fe\u6216\u8005\u5e7f\u544a\u94fe\u63a5\u4e4b\u7c7b\u7684\u63d2\u4ef6\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2020\/08\/gwa2-logo-202005.v3.png\" alt=\"\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/ufqi.com\/dev\/gwa2\/\">-GWA2 \u5409\u5a03\u5154<\/a>&nbsp;\u662f\u201d\u901a\u7528\u7f51\u7edc\u5e94\u7528\u67b6\u6784( General Web Application Architeture,&nbsp;https:\/\/ufqi.com\/dev\/gwa2\/ )\u201d\uff0c\u57fa\u4e8e -GWA2 \u53ef\u4ee5\u8f7b\u4fbf\u6784\u5efa\u5404\u79cd\u7f51\u7edc\u5e94\u7528\u7a0b\u5e8f,<br \/>\u5305\u62ec\u590d\u6742\u7684\u5728\u7ebf\u8d2d\u7269\u5546\u57ce\u3001\u5728\u7ebf\u533b\u7597\u3001\u5728\u7ebf\u6559\u80b2\u3001 \u65c5\u6e38\u4ea4\u6613\u5e73\u53f0\u3001\u793e\u7fa4\u6216\u8005\u793e\u4ea4\u7f51\u7ad9\u548c\u65b0\u95fb\u8d44\u8baf\u7f51\u7ad9\u7b49\uff0c<br \/>\u4e5f\u5305\u62ec\u5404\u79cd\u4f01\u4e8b\u4e1a\u5355\u4f4d\u7f51\u4e0a\u95e8\u6237\uff0c\u5728\u7ebf\u4ea4\u4e92\u53ca\u670d\u52a1\u4f5c\u4e1a\u7cfb\u7edf\u7b49.<br \/>\u8fd8\u53ef\u4ee5\u5305\u62ec\u4e3aNativeApp\u505a\u670d\u52a1\u5668\u7aef\u652f\u6301, \u751a\u81f3\u662fWebApp\u7684\u5168\u90e8.<br \/>-GWA2 \u662f\u4e3a\u6570\u4e0d\u591a\u7684\u652f\u6301\u8de8\u5f00\u53d1\u8bed\u8a00\u7684\u5e94\u7528\u6846\u67b6\uff0c\u76ee\u524d\u652f\u6301 -Java, -PHP, -Perl, -Aspx and -Python .<\/p>\n\n\n\n<p>-GWA2 is a \u201cGeneral Web Application Architecture\u201d and based on -GWA2 developers can easily build a variety of network applications,<br \/>including complex online shopping malls, online medical services, online teaching, travel trading platforms, community or social networking sites and news information sites, etc.<br \/>Also the applications include various online portals of enterprises and institutions, online interaction and service operations systems.<br \/>Moreover it contains server-side support for Native App, or even all of the WebApp.<br \/>-GWA2 is one of the web frameworks which provide cross-language support for -Java, -PHP, -Perl, -Aspx and -Python at present.<\/p>\n\n\n\n<p><strong>-GWA2 is E.A.S.Y&nbsp;<\/strong><br \/><strong>Easy Along, Swift Yield<br \/><\/strong>\u8f7b\u677e\u542f\u52a8, \u5feb\u901f\u4ea7\u51fa.<\/p>\n\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n\n<h3><img src=\"https:\/\/ufqi.com\/news\/view\/default\/images\/ufqinews-logo.201803.png\" alt=\"ufqinews logo\"\/><br \/><a href=\"http:\/\/ufqi.com\/news\/\">\u6709\u798f\u65b0\u95fb UfqiNews<\/a><\/h3>\n\n\n\n<p>\u8fd9\u91cc\u5448\u73b0\u70ed\u70b9\u5168\u5c40, \u5c3a\u5bf8\u95f4\u4e00\u89c8\u6240\u6709\u4ee4\u4eba\u5173\u6ce8\u7684\u7591\u70b9\u7126\u70b9;<br \/>\u8fd9\u91cc\u8868\u8fbe\u6761\u5206\u7f15\u6790, \u89c6\u91ce\u5185\u4e00\u7779\u5404\u4e2a\u8109\u7edc\u6e05\u6670\u7684\u6545\u4e8b\u4e3b\u7ebf.<br \/>\u6709\u798f\u65b0\u95fbUfqiNews \u5e26\u6765\u5168\u65b0\u7684\u8d44\u8baf\u9605\u89c8\u4f53\u9a8c, \u4e0d<a rel=\"noreferrer noopener\" href=\"https:\/\/ufqi.com\/naturedns\/search?q=-R\/E2SN\" target=\"_blank\">\u4fe1\u606f\u8fc7\u8f7d<\/a>, \u4ea6\u4e0d<a rel=\"noreferrer noopener\" href=\"https:\/\/ufqi.com\/naturedns\/search?q=-R\/r2SQ\" target=\"_blank\">\u4fe1\u606f\u8327\u623f<\/a>.<\/p>\n\n\n\n<p>\u5728\u5bfb\u6c42\u6700\u5927\u793e\u4f1a\u5171\u8bc6\u548c\u6ee1\u8db3\u5343\u4eba\u5343\u9762\u4e4b\u95f4\u8c0b\u53d6\u5e73\u8861,<br \/>\u5728\u6ee1\u8db3\u5e7f\u6cdb\u6d89\u730e\u4e0e\u8ffd\u6c42\u672f\u4e1a\u4e13\u653b\u4e4b\u95f4\u8c0b\u53d6\u5e73\u8861.<br \/>\u5a92\u4ecb\u63d2\u4e0a\u4eba\u5de5\u667a\u80fd\u7684\u7fc5\u8180\u5c06\u5982\u864e\u6dfb\u7ffc, \u4e0e\u8d44\u8baf\u6bd4\u7ffc\u53cc\u98de.<br \/>\u65b0\u95fb\u7231\u597d\u8005\u7684\u826f\u5fc3\u4e4b\u9009, \u5320\u5fc3\u4e4b\u4f5c.<\/p>\n\n\n\n<p>UfqiNews presents the hot spots globally, with all interesting points at a glance.<br \/>Information is organized here and there is a clear storyline within every single detail.<br \/>UfqiNews brings a brand new reading experience, no&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/ufqi.com\/naturedns\/search?q=-R\/N2SJ\" target=\"_blank\">information overload<\/a>&nbsp;and no&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/ufqi.com\/naturedns\/search?q=-R\/r2SQ\" target=\"_blank\">information Cocoons<\/a>,<\/p>\n\n\n\n<p>In seeking a balance of the maximum social consensus and meeting thousands of people for each interest,<br \/>In achieving a balance between satisfying a wide range of hunting and pursuing specialization in the industry.<br \/>That media is being born with wings of the artificial intelligence will be even more powerful and the information will fly swifter than ever.<br \/>Better choices of newsreaders and the art of work from them.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-ufqi-blog wp-block-embed-ufqi-blog\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"9WGaD4rqS1\"><a href=\"https:\/\/ufqi.com\/blog\/ufqinews-gwa2-php8\/\">\u60ca\u9b42\u4e00\u591c!\u6709\u798f\u65b0\u95fbUfqiNews\u5347\u7ea7\u5230PHP8<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"\u300a\u60ca\u9b42\u4e00\u591c!\u6709\u798f\u65b0\u95fbUfqiNews\u5347\u7ea7\u5230PHP8\u300b\u2014-UFQI-Blog\" src=\"https:\/\/ufqi.com\/blog\/ufqinews-gwa2-php8\/embed\/#?secret=9WGaD4rqS1\" data-secret=\"9WGaD4rqS1\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u798f\u65b0\u95fbUfqiNews\u7684\u8001\u7248\u672c\u4f9d\u7136\u8fd0\u884c\u5728 GWA2 PHP ( https:\/ &hellip; <a href=\"https:\/\/ufqi.com\/blog\/ufqinews-gwa2-php8\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":2648,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[42,433,3,6,2],"tags":[86,442,323,443,152],"_links":{"self":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2647"}],"collection":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/comments?post=2647"}],"version-history":[{"count":7,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2647\/revisions"}],"predecessor-version":[{"id":2660,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2647\/revisions\/2660"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/media\/2648"}],"wp:attachment":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/media?parent=2647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/categories?post=2647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/tags?post=2647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}