{"id":902,"date":"2022-04-29T01:13:28","date_gmt":"2022-04-28T16:13:28","guid":{"rendered":"http:\/\/systemdev.comsys-blog.com\/?p=902"},"modified":"2022-04-29T01:13:28","modified_gmt":"2022-04-28T16:13:28","slug":"smarty-4-x-php-7-4-%e5%a4%89%e6%95%b0%e3%81%ab%e6%97%a5%e6%9c%ac%e8%aa%9e%e3%82%92%e4%bd%bf%e3%81%84%e3%81%9f%e3%81%8b%e3%81%a3%e3%81%9f-_0_","status":"publish","type":"post","link":"https:\/\/tamura.jp\/?p=902","title":{"rendered":"Smarty 4.x: PHP 7.4 \u5909\u6570\u306b\u65e5\u672c\u8a9e\u3092\u4f7f\u3044\u305f\u304b\u3063\u305f ;;_0_;;"},"content":{"rendered":"<p>class Smarty_Internal_Templatelexer<br \/>\n{<br \/>\n       \u30fb<br \/>\n       \u30fb<br \/>\n       \u30fb<\/p>\n<p>    public function yylex2()<br \/>\n    {<br \/>\n        if (!isset($this-&gt;yy_global_pattern2)) {<br \/>\n            $this-&gt;yy_global_pattern2 = $this-&gt;replace(&#8220;\/\\G((SMARTYldel)SMARTYal(if|elseif|else if|while)\\\\s+)|\\G((SMARTYldel)SMARTYalfor\\\\s+)|\\G((SMARTYldel)SMARTYalforeach(?![^\\s]))|\\G((SMARTYldel)SMARTYalsetfilter\\\\s+)|\\G((SMARTYldel)SMARTYalmake_nocache\\\\s+)|\\G((SMARTYldel)SMARTYal[0-9]*[\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa0a-zA-Z_][\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa0a-zA-Z_][\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa00-9a-zA-Z_]*(\\\\s+nocache)?\\\\s*SMARTYrdel)|\\G((SMARTYldel)SMARTYal[$]smarty\\\\.block\\\\.(child|parent)\\\\s*SMARTYrdel)|\\G((SMARTYldel)SMARTYal[\\\/][0-9]*[\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa0a-zA-Z_][\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa0a-zA-Z_][\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa00-9a-zA-Z_]*\\\\s*SMARTYrdel)|\\G((SMARTYldel)SMARTYal[$][0-9]*[\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa0a-zA-Z_][\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa0a-zA-Z_][\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa00-9a-zA-Z_]*(\\\\s+nocache)?\\\\s*SMARTYrdel)|\\G((SMARTYldel)SMARTYal[\\\/])|\\G((SMARTYldel)SMARTYal)\/isS&#8221;);<\/p>\n<p>       \u30fb<br \/>\n       \u30fb<br \/>\n       \u30fb<\/p>\n<p>    public function yylex3()<br \/>\n    {<br \/>\n        if (!isset($this-&gt;yy_global_pattern3)) {<br \/>\n            $this-&gt;yy_global_pattern3 = $this-&gt;replace(&#8220;\/\\G(\\\\s*SMARTYrdel)|\\G((SMARTYldel)SMARTYal)|\\G([\\&#8221;])|\\G(&#8216;[^&#8217;\\\\\\\\]*(?:\\\\\\\\.[^&#8217;\\\\\\\\]*)*&#8217;)|\\G([$][0-9]*[\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa0a-zA-Z_][\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa00-9a-zA-Z_]*)|\\G([$])|\\G(\\\\s+is\\\\s+in\\\\s+)|\\G(\\\\s+as\\\\s+)|\\G(\\\\s+to\\\\s+)|\\G(\\\\s+step\\\\s+)|\\G(\\\\s+instanceof\\\\s+)|\\G(\\\\s*([!=][=]{1,2}|[]?|[&gt;][=]?|[&amp;|]{2})\\\\s*)|\\G(\\\\s+(eq|ne|neq|gt|ge|gte|lt|le|lte|mod|and|or|xor)\\\\s+)|\\G(\\\\s+is\\\\s+(not\\\\s+)?(odd|even|div)\\\\s+by\\\\s+)|\\G(\\\\s+is\\\\s+(not\\\\s+)?(odd|even))|\\G([!]\\\\s*|not\\\\s+)|\\G([(](int(eger)?|bool(ean)?|float|double|real|string|binary|array|object)[)]\\\\s*)|\\G(\\\\s*[(]\\\\s*)|\\G(\\\\s*[)])|\\G(\\\\[\\\\s*)|\\G(\\\\s*\\\\])|\\G(\\\\s*[-][&gt;]\\\\s*)|\\G(\\\\s*[=][&gt;]\\\\s*)|\\G(\\\\s*[=]\\\\s*)|\\G(([+]|[-]){2})|\\G(\\\\s*([+]|[-])\\\\s*)|\\G(\\\\s*([*]{1,2}|[%\\\/^&amp;]|[]{2})\\\\s*)|\\G([@])|\\G(array\\\\s*[(]\\\\s*)|\\G([#])|\\G(\\\\s+[0-9]*[\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa0a-zA-Z_][\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa0a-zA-Z0-9_\\-:]*\\\\s*[=]\\\\s*)|\\G(([0-9]*[\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa0a-zA-Z_][\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa00-9a-zA-Z_]*)?(\\\\\\\\[0-9]*[\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa0a-zA-Z_][\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa00-9a-zA-Z_]*)+)|\\G([0-9]*[\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa0a-zA-Z_][\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa00-9a-zA-Z_]*)|\\G(\\\\d+)|\\G([`])|\\G([|][@]?)|\\G([.])|\\G(\\\\s*[,]\\\\s*)|\\G(\\\\s*[;]\\\\s*)|\\G([:]{2})|\\G(\\\\s*[:]\\\\s*)|\\G(\\\\s*[?]\\\\s*)|\\G(0[xX][0-9a-fA-F]+)|\\G(\\\\s+)|\\G([\\S\\s])\/isS&#8221;);<\/p>\n<p>       \u30fb<br \/>\n       \u30fb<br \/>\n       \u30fb<\/p>\n<p>    public function yylex5()<br \/>\n    {<br \/>\n        if (!isset($this-&gt;yy_global_pattern5)) {<br \/>\n            $this-&gt;yy_global_pattern5 = $this-&gt;replace(&#8220;\/\\G((SMARTYldel)SMARTYautoliteral\\\\s+SMARTYliteral)|\\G((SMARTYldel)SMARTYalliteral\\\\s*SMARTYrdel)|\\G((SMARTYldel)SMARTYal[\\\/]literal\\\\s*SMARTYrdel)|\\G((SMARTYldel)SMARTYal[\\\/])|\\G((SMARTYldel)SMARTYal[0-9]*[\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa0a-zA-Z_][\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa0a-zA-Z_][\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa00-9a-zA-Z_]*)|\\G((SMARTYldel)SMARTYal)|\\G([\\&#8221;])|\\G([`][$])|\\G([$][0-9]*[\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa0a-zA-Z_][\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa0a-zA-Z_][\u3001-\u25ef\u30a2-\u30f3\u30ac-\u30dc\u30a1-\u30e7\u30ee\u30c3\u30fc\u3042-\u3093\u304c-\u307c\u3041-\u3087\u308e\u3063\u30fc\u4e9c-\u9fa00-9a-zA-Z_]*)|\\G([$])|\\G(([^\\&#8221;\\\\\\\\]*?)((?:\\\\\\\\.[^\\&#8221;\\\\\\\\]*?)*?)(?=((SMARTYldel)SMARTYal|\\\\$|`\\\\$|\\&#8221;SMARTYliteral)))|\\G([\\S\\s])\/isS&#8221;);<\/p>\n<p>       \u30fb<br \/>\n       \u30fb<br \/>\n       \u30fb<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>class Smarty_Internal_Templatelexer { \u30fb \u30fb \u30fb public function yylex2() { if (!isset($this-&gt;yy_global_pattern2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-902","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/tamura.jp\/index.php?rest_route=\/wp\/v2\/posts\/902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tamura.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tamura.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tamura.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tamura.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=902"}],"version-history":[{"count":0,"href":"https:\/\/tamura.jp\/index.php?rest_route=\/wp\/v2\/posts\/902\/revisions"}],"wp:attachment":[{"href":"https:\/\/tamura.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tamura.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tamura.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}