{"id":123,"date":"2010-06-26T09:33:09","date_gmt":"2010-06-26T03:33:09","guid":{"rendered":"http:\/\/blog.amigas.ru\/?p=123"},"modified":"2014-03-17T15:45:08","modified_gmt":"2014-03-17T09:45:08","slug":"php-5-3-i-deprecated-funkcii-chast-2","status":"publish","type":"post","link":"http:\/\/blog.amigas.ru\/?p=123","title":{"rendered":"PHP 5.3 \u0438 Deprecated \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u0427\u0430\u0441\u0442\u044c-2."},"content":{"rendered":"<p>\u0417\u0434\u0435\u0441\u044c \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u043b\u043e\u0436\u0443 (\u043a\u0430\u043a \u043f\u0430\u043c\u044f\u0442\u043a\u0443) \u043a\u0430\u043a\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 PHP\u00a0 \u043d\u0430 \u0447\u0442\u043e \u0438 \u043a\u0430\u043a \u043c\u0435\u043d\u044f\u0442\u044c.<\/p>\n<p><code><br \/>\n<span style=\"color: #ff0000;\"><span style=\"text-decoration: underline;\">ereg():<\/span><\/span><\/p>\n<p>ereg(\"\\.([^\\.]*$)\", $this-&gt;file_src_name, $extension);<\/p>\n<p>preg_match(\"\/\\.([^\\.]*$)\/\", $this-&gt;file_src_name, $extension);<\/p>\n<p><span style=\"color: #ff0000;\"><span style=\"text-decoration: underline;\">ereg_replace():<\/span><\/span><\/p>\n<p>$this-&gt;file_dst_name_body = ereg_replace(\"[^A-Za-z0-9_]\", \"\",$this-&gt;file_dst_name_body);<\/p>\n<p>$this-&gt;file_dst_name_body = preg_replace(\"\/[^A-Za-z0-9_]\/\", \"\",$this-&gt;file_dst_name_body);<\/p>\n<p><span style=\"color: #ff0000;\"><span style=\"text-decoration: underline;\">eregi():<\/span><\/span><\/p>\n<p>eregi(\"\\.([^\\.]*$)\", $this-&gt;file_src_name, $extension);<\/p>\n<p>preg_match(\"\/\\.([^\\.]*$)\/i\", $this-&gt;file_src_name, $extension);<\/p>\n<p>\u041d\u043e \u043c\u043e\u0436\u043d\u043e \u0438 \u043d\u0435 \u043c\u0435\u043d\u044f\u0442\u044c \u044d\u0442\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0449\u0435\u043c \u0432 php.ini \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 (\u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043a\u043e\u043d\u0435\u0446 \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0432\u044b\u0445 \u043d\u0435\u0442\u0443 \u0432 \u0432\u0430\u0448\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0435 :) ):<\/p>\n<p><a href=\"http:\/\/ru2.php.net\/manual\/en\/mbstring.overload.php\" target=\"_blank\">http:\/\/ru2.php.net\/manual\/en\/mbstring.overload.php<\/a><\/p>\n<p>;0: No overload<br \/>\n; 1: Overload mail() function<br \/>\n; 2: Overload str*() functions<br \/>\n; 4: Overload ereg*() functions<\/p>\n<p>; <a href=\"http:\/\/ru2.php.net\/manual\/en\/mbstring.configuration.php#ini.mbstring.func-overload\" target=\"_blank\">http:\/\/ru2.php.net\/manual\/en\/mbstring.configuration.php#ini.mbstring.func-overload<\/a><br \/>\nmbstring.func_overload = 0<\/p>\n<p>\u0427\u0442\u043e \u044d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442? \u0410 \u0432\u043e\u0442 \u0447\u0442\u043e!!!<\/p>\n<p>0 - \u041e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0441\u0435 \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439.<br \/>\n1-4 \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u0434\u043d\u0443 \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0439.<br \/>\n7 - \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u0432\u0441\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<br \/>\n<\/code><\/p>\n<p>\u0422\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u043c\u044b \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0441\u0442\u0430\u0440\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u043e\u0432\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u044b.<\/p>\n<p>\u041d\u0443 \u0432\u043e\u0442 \u0438 \u0432\u0441\u0451 \u043f\u043e\u043a\u0430.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0434\u0435\u0441\u044c \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u043b\u043e\u0436\u0443 (\u043a\u0430\u043a \u043f\u0430\u043c\u044f\u0442\u043a\u0443) \u043a\u0430\u043a\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 PHP\u00a0 \u043d\u0430 \u0447\u0442\u043e \u0438 \u043a\u0430\u043a \u043c\u0435\u043d\u044f\u0442\u044c. ereg(): ereg(&#171;\\.([^\\.]*$)&#187;, $this-&gt;file_src_name, $extension); preg_match(&#171;\/\\.([^\\.]*$)\/&#187;, $this-&gt;file_src_name, $extension); ereg_replace(): $this-&gt;file_dst_name_body = ereg_replace(&#171;[^A-Za-z0-9_]&#187;, &#171;&#187;,$this-&gt;file_dst_name_body); $this-&gt;file_dst_name_body = preg_replace(&#171;\/[^A-Za-z0-9_]\/&#187;, &#171;&#187;,$this-&gt;file_dst_name_body); eregi(): eregi(&#171;\\.([^\\.]*$)&#187;, $this-&gt;file_src_name, $extension); preg_match(&#171;\/\\.([^\\.]*$)\/i&#187;, $this-&gt;file_src_name, $extension); \u041d\u043e \u043c\u043e\u0436\u043d\u043e \u0438 \u043d\u0435 \u043c\u0435\u043d\u044f\u0442\u044c \u044d\u0442\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0449\u0435\u043c \u0432 php.ini \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 (\u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043a\u043e\u043d\u0435\u0446 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[4],"tags":[16,149,17,150,18,5],"class_list":["post-123","post","type-post","status-publish","format-standard","hentry","category-php","tag-deprecated","tag-freebsd","tag-function-split","tag-php","tag-preg_split","tag-nastrojka"],"views":1630,"_links":{"self":[{"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=\/wp\/v2\/posts\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=123"}],"version-history":[{"count":9,"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":2061,"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions\/2061"}],"wp:attachment":[{"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}