{"id":497898,"date":"2026-10-08T14:44:55","date_gmt":"2026-10-08T11:44:55","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=497898"},"modified":"2026-10-08T14:44:55","modified_gmt":"2026-10-08T11:44:55","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=497898","title":{"rendered":"\u041e\u0434\u0438\u043d SoapFault \u2014 \u0438 \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u043c\u0443\u0441\u043e\u0440\u0430 PHP \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430. \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043e\u0434\u043d\u043e\u0439 \u0443\u0442\u0435\u0447\u043a\u0438 \u043f\u0430\u043c\u044f\u0442\u0438"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u043e\u043d\u0441\u044c\u044e\u043c\u0435\u0440 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043d\u0430 PHP, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u043d\u044c\u0448\u0435 \u0440\u0430\u0437 \u0432 \u043f\u044f\u0442\u044c-\u0448\u0435\u0441\u0442\u044c \u0447\u0430\u0441\u043e\u0432 \u043f\u0430\u0434\u0430\u043b \u043f\u043e OOMKilled \u043d\u0430 \u043b\u0438\u043c\u0438\u0442\u0435 2 \u0413\u0438\u0411. \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0442\u0435\u0440\u044f\u043b\u0438\u0441\u044c: Kubernetes \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u043b \u043f\u043e\u0434, \u0438 \u043a\u043e\u043d\u0441\u044c\u044e\u043c\u0435\u0440 \u0434\u043e\u0447\u0438\u0442\u044b\u0432\u0430\u043b \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u0442\u0430\u043a \u0447\u0442\u043e \u0441\u043d\u0430\u0440\u0443\u0436\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u043f\u043e\u0447\u0442\u0438 \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u0430. \u041d\u043e \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0435 \u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u043f\u043e \u043f\u0430\u043c\u044f\u0442\u0438 \u2014 \u043d\u0435 \u043d\u043e\u0440\u043c\u0430, \u0438 \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u0434\u043e\u043a\u043e\u043f\u0430\u0442\u044c\u0441\u044f \u0434\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u044b.<\/p>\n<p>\u0421\u043f\u043e\u0439\u043b\u0435\u0440: <span class=\"habrahidden\">\u0432\u0438\u043d\u043e\u0432\u0430\u0442 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043d\u0435 \u043d\u0430\u0448 \u043a\u043e\u0434 \u0438 \u043d\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u0430 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u0430\u043c\u043e\u0433\u043e PHP \u043f\u043e\u0441\u043b\u0435 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043e\u0448\u0438\u0431\u043e\u043a \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f ext-soap. \u0411\u0430\u0433 \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u0441 2016 \u0433\u043e\u0434\u0430, issue \u0432 php-src \u043e\u0442\u043a\u0440\u044b\u0442 \u0441 2022-\u0433\u043e, \u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043e\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432 \u0436\u0438\u0432\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0438 \u043a\u0430\u043a \u0435\u0433\u043e \u043d\u0430\u0439\u0442\u0438, \u044f \u043d\u0435 \u043d\u0430\u0448\u0451\u043b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0438\u0448\u0443.<\/span><\/p>\n<p>PHP 8.4, Symfony 6.4, RabbitMQ, Kubernetes. \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u044b.<\/p>\n<h3>\u0421\u0438\u043c\u043f\u0442\u043e\u043c<\/h3>\n<p>\u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0441\u044c\u044e\u043c\u0435\u0440 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0441\u0435\u0440\u0432\u0438\u0441. \u0421\u0435\u0440\u0432\u0438\u0441 \u043e\u0442\u0434\u0430\u0451\u0442 API \u043f\u043e SOAP, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b\u0437\u043e\u0432 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"php\">$client = new SoapClient('https:\/\/partner.example\/ws\/service?wsdl', $options);$result = $client-&gt;checkStatus($request);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper\"><\/span><\/a><\/div><\/pre>\n<p>\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043d\u0430 \u043f\u043e\u0434. \u041f\u0430\u043c\u044f\u0442\u044c \u0440\u0430\u0441\u0442\u0451\u0442 \u043b\u0438\u043d\u0435\u0439\u043d\u043e, \u043e\u043a\u043e\u043b\u043e 120 \u041c\u0438\u0411 \u0432 \u0447\u0430\u0441, \u0447\u0435\u0440\u0435\u0437 5\u20136 \u0447\u0430\u0441\u043e\u0432 \u2014 OOMKilled.<\/p>\n<p>\u0421\u0442\u0440\u0430\u043d\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438 \u043d\u0435 \u0441\u0440\u0430\u0437\u0443:<\/p>\n<ul>\n<li>\n<p>\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u0443\u0442\u0435\u0447\u043a\u0430 \u043d\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u043d\u0438\u043a\u0430\u043a \u2014 \u043d\u0438 \u043d\u0430 \u0441\u0442\u0435\u043d\u0434\u0435, \u043d\u0438 \u043f\u0440\u0438 \u043f\u0440\u043e\u0433\u043e\u043d\u0435 \u0442\u043e\u0433\u043e \u0436\u0435 \u043a\u043e\u0434\u0430 \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u043e\u0442\u0432\u0435\u0442\u0430\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043d\u0438 \u043d\u0430 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u043c RabbitMQ \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u044b \u0447\u0430\u0441\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0432 \u043f\u0440\u043e\u0434\u0435 \u043f\u043e\u0441\u043b\u0435 \u0441\u0442\u0430\u0440\u0442\u0430 \u043f\u043e\u0434\u0430 \u043f\u0430\u043c\u044f\u0442\u044c \u0438\u043d\u043e\u0433\u0434\u0430 \u0441\u0442\u043e\u044f\u043b\u0430 \u0440\u043e\u0432\u043d\u043e 20\u2013120 \u043c\u0438\u043d\u0443\u0442, \u0430 \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0430 \u0440\u0430\u0441\u0442\u0438 \u2014 \u0440\u0435\u0437\u043a\u043e, \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u043f\u0430\u0440\u044b \u043c\u0438\u043d\u0443\u0442;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0435 \u043a\u043e\u043d\u0441\u044c\u044e\u043c\u0435\u0440\u044b \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 \u043a\u043e\u0434\u0435 \u0438 \u0441 \u0442\u0435\u043c \u0436\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435\u043c \u043d\u0435 \u0442\u0435\u043a\u043b\u0438.<\/p>\n<\/li>\n<\/ul>\n<h3>\u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u043f\u0435\u0440\u0432\u0430\u044f: \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u0432\u0430\u0435\u043c\u044b\u0435<\/h3>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b\u0438 \u0432\u0441\u0451, \u0447\u0442\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0432 \u0434\u043e\u043b\u0433\u043e\u0436\u0438\u0432\u0443\u0449\u0438\u0445 PHP-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u0445: \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u0435\u0448\u0438 \u0432 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u0445, <code>EntityManager<\/code> Doctrine, \u0431\u0443\u0444\u0435\u0440\u044b \u043b\u043e\u0433\u0433\u0435\u0440\u0430, \u0431\u0443\u0444\u0435\u0440 \u043e\u0448\u0438\u0431\u043e\u043a libxml. \u0421\u0434\u0435\u043b\u0430\u043b\u0438 \u043e\u0431\u0445\u043e\u0434 \u0433\u0440\u0430\u0444\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043e\u0442 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0438 \u0441\u0442\u0435\u043a\u0430 \u2014 \u0433\u0440\u0430\u0444 \u043d\u0435 \u0440\u0430\u0441\u0442\u0451\u0442.<\/p>\n<p><code>gc_collect_cycles()<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u043b 0, <code>gc_status()['roots']<\/code> \u0432\u0441\u0451 \u0432\u0440\u0435\u043c\u044f \u0431\u044b\u043b 0. \u041c\u044b \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b\u0438 \u044d\u0442\u043e \u043a\u0430\u043a \u00ab\u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u0443\u0441\u043e\u0440\u0430 \u043d\u0435\u0442, \u0437\u043d\u0430\u0447\u0438\u0442, \u0434\u0435\u043b\u043e \u043d\u0435 \u0432 \u0446\u0438\u043a\u043b\u0430\u0445\u00bb \u2014 \u0438 \u043f\u043e\u0448\u043b\u0438 \u0434\u0430\u043b\u044c\u0448\u0435. \u042d\u0442\u043e \u0431\u044b\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u0435\u0449\u0451 \u0432\u0435\u0440\u043d\u0443\u0441\u044c.<\/p>\n<h3>\u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u0432\u0442\u043e\u0440\u0430\u044f: \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438<\/h3>\n<p>\u0417\u0430\u0448\u043b\u0438 \u0432 \u043f\u043e\u0434 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u043d\u0430 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u044b \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430:<\/p>\n<pre><code class=\"bash\">ls -l \/proc\/1\/fd | awk '{print $NF}' | sort | uniq -c | sort -rn | head<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0422\u044b\u0441\u044f\u0447\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u043e\u0432 \u043d\u0430 \u0442\u0440\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0441 \u043a\u043b\u0430\u0441\u0441\u0430\u043c\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u041d\u0430\u0448\u043b\u0430\u0441\u044c \u0444\u0430\u0431\u0440\u0438\u043a\u0430 \u0442\u0430\u043a\u043e\u0433\u043e \u0432\u0438\u0434\u0430:<\/p>\n<pre><code class=\"php\">final class HandlerFactory{    private static function classes(): \\Generator    {        foreach (new \\DirectoryIterator(__DIR__ . '\/Handler') as $file) {            if (!$file-&gt;isDot()) {                yield __NAMESPACE__ . '\\\\Handler\\\\' . $file-&gt;getBasename('.php');            }        }    }    public static function create(string $name): Handler    {        foreach (self::classes() as $class) {            if ($class::NAME === $name) {                return new $class();            }        }        throw new \\InvalidArgumentException($name);    }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0420\u0430\u043d\u043d\u0438\u0439 <code>return<\/code> \u0431\u0440\u043e\u0441\u0430\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043d\u0435\u0434\u043e\u0438\u0442\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c, \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0433\u043e \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f <code>DirectoryIterator<\/code> \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u043c. \u0412 \u043d\u043e\u0440\u043c\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0430\u0435\u0442\u0441\u044f, \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043d\u0435\u0433\u043e \u043d\u0435 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0441\u0441\u044b\u043b\u043e\u043a, \u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f. \u0412 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u043e\u0434\u0435 \u2014 \u043d\u0435\u0442: \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u0444\u0430\u0431\u0440\u0438\u043a\u0438 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u043b \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433, \u043e\u043a\u043e\u043b\u043e 11 \u041a\u0411 \u043f\u0430\u043c\u044f\u0442\u0438. \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u043d\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u2014 \u0438 \u0432\u043e\u0442 \u043d\u0430\u0448\u0438 120 \u041c\u0438\u0411 \u0432 \u0447\u0430\u0441.<\/p>\n<p>\u041c\u044b \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b\u0438 \u0444\u0430\u0431\u0440\u0438\u043a\u0438 \u043d\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u0440\u043e\u0441\u0442 \u0443\u043f\u0430\u043b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432 \u0434\u0435\u0441\u044f\u0442\u044c \u0440\u0430\u0437. \u041d\u043e \u043d\u0435 \u0434\u043e \u043d\u0443\u043b\u044f: \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043e\u043a\u043e\u043b\u043e 2 \u041a\u0411 \u043d\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435. \u0418 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0431\u0435\u0437 \u043e\u0442\u0432\u0435\u0442\u0430: <strong>\u043f\u043e\u0447\u0435\u043c\u0443 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043d\u0435 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0430\u0435\u0442\u0441\u044f?<\/strong> \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u0442\u043e\u0442 \u0436\u0435 \u043a\u043e\u0434 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u043b.<\/p>\n<h3>\u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u0442\u0440\u0435\u0442\u044c\u044f: memprof \u0432 \u043f\u0440\u043e\u0434\u0435<\/h3>\n<p>\u041f\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0432 \u043f\u0440\u043e\u0434 <a href=\"https:\/\/github.com\/arnaud-lb\/php-memory-profiler\" rel=\"noopener nofollow\">memprof<\/a> \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043b\u0438 \u0441\u043d\u0438\u043c\u043a\u0438 <code>memprof_dump_array()<\/code> \u043a\u0430\u0436\u0434\u044b\u0435 3000 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439. \u0420\u043e\u0441\u0442 \u0434\u0430\u0432\u0430\u043b\u0438 \u0440\u043e\u0432\u043d\u043e \u0442\u0435 \u043c\u0435\u0441\u0442\u0430, \u0433\u0434\u0435 <strong>\u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 Symfony \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0434\u043b\u044f <code>!tagged_iterator<\/code> (<code>RewindableGenerator<\/code>) \u2014 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043f\u043e 176 \u0431\u0430\u0439\u0442 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u044b\u0437\u043e\u0432, \u043e\u043a\u043e\u043b\u043e \u0448\u0435\u0441\u0442\u0438 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u043d\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u044f, \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u0432 <code>GuzzleHttp\\Promise\\Coroutine::of()<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u0447\u0451\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u2014 \u043d\u0435 \u0431\u0440\u043e\u0448\u0435\u043d\u043d\u044b\u0435, \u043d\u0435 \u0432 \u0446\u0438\u043a\u043b\u0430\u0445. \u041c\u044b \u0443\u0431\u0440\u0430\u043b\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438\u0437 \u0433\u043e\u0440\u044f\u0447\u0435\u0433\u043e \u043f\u0443\u0442\u0438, \u0438 \u0440\u043e\u0441\u0442 \u0443\u043f\u0430\u043b \u0435\u0449\u0451 \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437. \u041d\u043e \u0432\u043e\u043f\u0440\u043e\u0441 \u00ab\u043f\u043e\u0447\u0435\u043c\u0443\u00bb \u0441\u0442\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u0442\u0440\u0435\u0435: \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0439 \u043a\u043e\u043d\u0441\u044c\u044e\u043c\u0435\u0440 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b \u0442\u0435 \u0436\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043c\u0435\u0442\u0440\u0438\u043a (\u043e\u043d\u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0439 HTTP-\u0437\u0430\u043f\u0440\u043e\u0441), \u0434\u0435\u043b\u0430\u043b \u044d\u0442\u043e \u0432 \u0447\u0435\u0442\u044b\u0440\u0435 \u0440\u0430\u0437\u0430 \u0440\u0435\u0436\u0435 \u0438 \u0432\u0441\u044e \u043d\u043e\u0447\u044c \u0434\u0435\u0440\u0436\u0430\u043b \u043f\u0430\u043c\u044f\u0442\u044c \u0440\u043e\u0432\u043d\u043e, \u0441 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e \u0434\u043e \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442\u0430. \u041f\u043e \u043d\u0430\u0448\u0435\u0439 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0435 \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u043d\u0430\u0431\u0440\u0430\u0442\u044c 15 \u041c\u0438\u0411.<\/p>\n<p>\u0417\u043d\u0430\u0447\u0438\u0442, \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0442\u0435\u043a\u0443\u0442 \u043d\u0435 \u0432\u0435\u0437\u0434\u0435. \u0427\u0442\u043e-\u0442\u043e \u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435.<\/p>\n<h3>\u0420\u0430\u0437\u0433\u0430\u0434\u043a\u0430: gc_status()[&#8216;protected&#8217;]<\/h3>\n<p>\u0412\u0435\u0440\u043d\u0451\u043c\u0441\u044f \u043a \u043d\u0443\u043b\u044e \u0432 <code>gc_status()['roots']<\/code>. \u0412 \u0437\u0434\u043e\u0440\u043e\u0432\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u044d\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043a\u043e\u043b\u0435\u0431\u043b\u0435\u0442\u0441\u044f: \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u0441\u0447\u0451\u0442\u0447\u0438\u043a \u0441\u0441\u044b\u043b\u043e\u043a \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442\u0441\u044f, \u043d\u043e \u043d\u0435 \u0434\u043e \u043d\u0443\u043b\u044f, \u043e\u0431\u044a\u0435\u043a\u0442 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u0431\u0443\u0444\u0435\u0440 \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u0432 \u043d\u0430 \u0441\u0431\u043e\u0440\u043a\u0443. \u041d\u043e\u043b\u044c \u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0441\u0431\u043e\u0440\u0449\u0438\u043a <strong>\u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f<\/strong> \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u0432. \u0417\u0430 \u044d\u0442\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043f\u043e\u043b\u0435 <code>protected<\/code>, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u044b \u0440\u0430\u043d\u044c\u0448\u0435 \u043d\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u043b\u0438.<\/p>\n<p>\u041c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0442\u0430\u043a\u043e\u0439. \u0427\u0430\u0441\u0442\u044c \u043e\u0448\u0438\u0431\u043e\u043a <code>ext-soap<\/code> \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442 \u043a\u0430\u043a \u0444\u0430\u0442\u0430\u043b\u044c\u043d\u044b\u0435 (<code>E_ERROR<\/code>) \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e <code>soap_error<\/code>. \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0432 <code>zend_try<\/code>\/<code>zend_catch<\/code>, \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0444\u0430\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443 \u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0435\u0451 \u0432 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 <code>SoapFault<\/code>. \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0436\u0438\u0432\u0451\u0442 \u0434\u0430\u043b\u044c\u0448\u0435, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0432\u044b\u0437\u043e\u0432\u044b SOAP \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e.<\/p>\n<p>\u041d\u043e \u0444\u0430\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0432 \u0434\u0432\u0438\u0436\u043a\u0435 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u044b\u0437\u043e\u0432\u043e\u043c <code>zend_bailout()<\/code>, \u0430 \u043e\u043d \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u044b\u0436\u043a\u043e\u043c \u0432 <code>zend_catch<\/code> \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u0432\u0430 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u043b\u0430\u0433\u0430, \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u0435\u0439\u0447\u0430\u0441 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0441\u044f:<\/p>\n<pre><code>gc_protect(1);CG(unclean_shutdown) = 1;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p><code>ext-soap<\/code> \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0430 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0447\u0430\u0441\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u043d\u043e \u044d\u0442\u0438 \u0434\u0432\u0430 \u0444\u043b\u0430\u0433\u0430 \u043d\u0435 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/p>\n<ul>\n<li>\n<p><code><strong>gc_protect(1)<\/strong><\/code><strong> \u2014 \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u0443\u0441\u043e\u0440\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0436\u0438\u0437\u043d\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430;<\/strong><\/p>\n<\/li>\n<li>\n<p><code><strong>CG(unclean_shutdown) = 1<\/strong><\/code><strong> \u2014 \u0434\u0432\u0438\u0436\u043e\u043a \u0441\u0447\u0438\u0442\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0430\u0432\u0430\u0440\u0438\u0439\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f, \u0438 \u043d\u0435 \u0434\u043e\u0447\u0438\u0449\u0430\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b.<\/strong><\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430: <a href=\"https:\/\/github.com\/php\/php-src\/issues\/10026\" rel=\"noopener nofollow\">php-src#10026<\/a> \u00abGarbage collection stops after exception in SoapClient\u00bb \u043e\u0442\u043a\u0440\u044b\u0442 \u0432 \u043d\u043e\u044f\u0431\u0440\u0435 2022 \u0433\u043e\u0434\u0430 \u0434\u043b\u044f PHP 8.1, \u043f\u043e\u043c\u0435\u0447\u0435\u043d \u043a\u0430\u043a Verified. \u0410 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 2016 \u0433\u043e\u0434\u0430 \u043a <a href=\"https:\/\/bugs.php.net\/bug.php?id=66151\" rel=\"noopener nofollow\">bug #66151<\/a> \u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e: \u00abLooks like after SoapFault happens GC stops to work at all\u00bb. \u041d\u0430 PHP 8.4.19 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0442\u043e \u0436\u0435.<\/p>\n<h3>\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h3>\n<p>\u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e WSDL, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0443\u044e \u0441\u0445\u0435\u043c\u0443:<\/p>\n<pre><code class=\"php\">&lt;?php$wsdl = &lt;&lt;&lt;'XML'&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;&lt;definitions xmlns=\"http:\/\/schemas.xmlsoap.org\/wsdl\/\"             xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\"             xmlns:tns=\"urn:example\" targetNamespace=\"urn:example\"&gt;    &lt;types&gt;        &lt;xsd:schema&gt;            &lt;xsd:import namespace=\"urn:example\" schemaLocation=\"http:\/\/127.0.0.1:1\/schema.xsd\"\/&gt;        &lt;\/xsd:schema&gt;    &lt;\/types&gt;&lt;\/definitions&gt;XML;function report(string $label): void{    $before = memory_get_usage();    $generator = function () { yield 1; };    for ($i = 0; $i &lt; 100_000; $i++) {        foreach ($generator() as $value) {        }    }    printf(\"%s: protected=%s, +%.1f MiB\\n\", $label,        var_export(gc_status()['protected'], true),        (memory_get_usage() - $before) \/ 1048576);}report('\u0434\u043e \u043e\u0448\u0438\u0431\u043a\u0438');try {    new SoapClient('data:\/\/text\/plain;base64,' . base64_encode($wsdl));} catch (SoapFault $e) {    echo $e-&gt;getMessage(), PHP_EOL;}report('\u043f\u043e\u0441\u043b\u0435 SoapFault');gc_enable();report('\u043f\u043e\u0441\u043b\u0435 gc_enable()');<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<pre><code>\u0434\u043e \u043e\u0448\u0438\u0431\u043a\u0438: protected=false, +0.0 MiBSOAP-ERROR: Parsing Schema: can't import schema from 'http:\/\/127.0.0.1:1\/schema.xsd'\u043f\u043e\u0441\u043b\u0435 SoapFault: protected=true, +9.2 MiB\u043f\u043e\u0441\u043b\u0435 gc_enable(): protected=true, +9.2 MiB<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0421\u0442\u043e \u0442\u044b\u0441\u044f\u0447 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432, \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0440\u043e\u0439\u0434\u0435\u043d \u0434\u043e \u043a\u043e\u043d\u0446\u0430, \u2014 \u0438 9 \u041c\u0438\u0411, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0436\u0435 \u043d\u0435 \u0432\u0435\u0440\u043d\u0443\u0442\u044c. <code>gc_enable()<\/code>, <code>gc_disable()<\/code> + <code>gc_enable()<\/code>, <code>ini_set('zend.enable_gc', \u2026)<\/code> \u0444\u043b\u0430\u0433 \u043d\u0435 \u0441\u043d\u0438\u043c\u0430\u044e\u0442: \u043e\u043d\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442 \u0434\u0440\u0443\u0433\u0438\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c. \u0424\u0443\u043d\u043a\u0446\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043d\u044f\u043b\u0438 \u0431\u044b <code>protected<\/code> \u0438\u043b\u0438 <code>unclean_shutdown<\/code>, \u0432 PHP \u043d\u0435\u0442.<\/p>\n<h3>\u0427\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0435\u0447\u0451\u0442<\/h3>\n<p>\u0417\u0430\u043c\u0435\u0440 \u043d\u0430 PHP 8.4, \u043f\u043e 100 000 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0427\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0451\u043c<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0412\u0441\u0451 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041f\u043e\u0441\u043b\u0435 SoapFault<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 (\u043b\u044e\u0431\u043e\u0439, \u0434\u0430\u0436\u0435 \u043d\u0438 \u0440\u0430\u0437\u0443 \u043d\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0439)<\/p>\n<\/td>\n<td>\n<p align=\"left\">0 \u0411<\/p>\n<\/td>\n<td>\n<p align=\"left\">~100\u2013130 \u0411 \u043d\u0430 \u0448\u0442\u0443\u043a\u0443<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043e\u0431\u044a\u0435\u043a\u0442 \u0441 \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u043e\u0439<\/p>\n<\/td>\n<td>\n<p align=\"left\">0 \u0411<\/p>\n<\/td>\n<td>\n<p align=\"left\">~425 \u0411 \u043d\u0430 \u0448\u0442\u0443\u043a\u0443<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u0435<\/p>\n<\/td>\n<td>\n<p align=\"left\">0 \u0411<\/p>\n<\/td>\n<td>\n<p align=\"left\">0 \u0411<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0431\u0440\u043e\u0448\u0435\u043d\u043d\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0441 <code>DirectoryIterator<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0437\u0430\u043a\u0440\u044b\u0442<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u043e\u0442\u043a\u0440\u044b\u0442<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0414\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442, \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0443 \u0441\u0441\u044b\u043b\u043e\u043a. \u0426\u0438\u043a\u043b\u044b \u0442\u0435\u043a\u0443\u0442 \u0438\u0437-\u0437\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0431\u043e\u0440\u0449\u0438\u043a\u0430. \u0421 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u043c\u0438 \u0441\u043b\u043e\u0436\u043d\u0435\u0435: \u0432 \u0446\u0438\u043a\u043b \u043e\u043d\u0438 \u043d\u0435 \u0432\u0445\u043e\u0434\u044f\u0442, \u0438 \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u0442\u0443\u0442 \u043d\u0438 \u043f\u0440\u0438 \u0447\u0451\u043c. \u0418\u0445 \u043b\u043e\u043c\u0430\u0435\u0442 \u0432\u0442\u043e\u0440\u043e\u0439 \u0444\u043b\u0430\u0433. \u0412\u043e\u0442 \u043d\u0430\u0447\u0430\u043b\u043e <code>zend_generator_close()<\/code>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f \u0438\u043b\u0438 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0430\u0435\u0442\u0441\u044f:<\/p>\n<pre><code>zend_free_compiled_variables(execute_data);\/* ... *\/\/* A fatal error \/ die occurred during the generator execution. * Trying to clean up the stack may not be safe in this case. *\/if (UNEXPECTED(CG(unclean_shutdown))) {    generator-&gt;execute_data = NULL;    return;}zend_vm_stack_free_extra_args(execute_data);if (UNEXPECTED(!finished_execution)) {    zend_generator_cleanup_unfinished_execution(generator, execute_data, 0);}efree(execute_data);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u044e\u0442\u0441\u044f \u0434\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0432 \u043d\u0438\u0445 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442. \u0410 \u0434\u0430\u043b\u044c\u0448\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0440\u0430\u043d\u044c\u0448\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438:<\/p>\n<ul>\n<li>\n<p><code>efree(execute_data)<\/code> \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u2014 \u043a\u0430\u0436\u0434\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u0441\u0432\u043e\u0439 \u0444\u0440\u0435\u0439\u043c, \u044d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c ~100\u2013130 \u0431\u0430\u0439\u0442 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b;<\/p>\n<\/li>\n<li>\n<p><code>zend_generator_cleanup_unfinished_execution()<\/code> \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u2014 \u0443 \u0431\u0440\u043e\u0448\u0435\u043d\u043d\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043d\u0435 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u044e\u0442\u0441\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438\u0442\u0435\u0440\u0430\u0442\u043e\u0440 \u0446\u0438\u043a\u043b\u0430 <code>foreach<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u2014 \u043d\u0430\u0448\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438. <code>new \\DirectoryIterator(\u2026)<\/code> \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 <code>foreach<\/code> \u2014 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0430 \u043d\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f, \u0438 \u043f\u043e\u0441\u043b\u0435 \u0441\u0431\u043e\u044f \u043e\u043d\u043e \u043d\u0435 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0438\u043a\u043e\u0433\u0434\u0430. \u0422\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 \u00ab\u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u0435\u0447\u0451\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0440\u043e\u0434\u0435\u00bb, \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043d\u0435 \u0442\u0451\u043a. \u041e\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u043b \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043f\u043e\u0441\u043b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 SOAP.<\/p>\n<h3>\u041a\u0430\u043a\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 SOAP \u043e\u043f\u0430\u0441\u043d\u044b<\/h3>\n<p>\u041d\u0435 \u0432\u0441\u044f\u043a\u0438\u0439 <code>SoapFault<\/code>. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043b \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e, \u0441 \u043f\u043e\u0434\u043c\u0435\u043d\u0451\u043d\u043d\u044b\u043c \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043e\u043c (<code>__doRequest<\/code>):<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0421\u0438\u0442\u0443\u0430\u0446\u0438\u044f<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0427\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043a\u043e\u0434<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041f\u0440\u043e\u0446\u0435\u0441\u0441<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>&lt;soap:Fault&gt;<\/code> \u043e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>SoapFault<\/code> \u0441 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">HTML \u0432\u043c\u0435\u0441\u0442\u043e XML (502 \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430)<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>SoapFault: looks like we got no XML document<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043f\u0443\u0441\u0442\u043e\u0439 \u0438\u043b\u0438 \u043e\u0431\u0440\u0435\u0437\u0430\u043d\u043d\u044b\u0439 \u043e\u0442\u0432\u0435\u0442<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438\u043b\u0438 \u0442\u043e\u0442 \u0436\u0435 <code>SoapFault<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>xsd:import<\/code> \u0432 WSDL \u043d\u0435 \u0441\u043a\u0430\u0447\u0430\u043b\u0441\u044f<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>SOAP-ERROR: Parsing Schema: can't import schema \u2026<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0441\u043b\u043e\u043c\u0430\u043d<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0432 \u043e\u0442\u0432\u0435\u0442\u0435 \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0442\u0438\u043f: \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u043e\u043c \u043f\u043e\u043b\u0435, \u0442\u0435\u043a\u0441\u0442 \u0432 <code>long<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>SOAP-ERROR: Encoding: Violation of encoding rules<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0441\u043b\u043e\u043c\u0430\u043d<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u043d\u0435\u0442 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>SOAP-ERROR: Encoding: object has no '\u2026' property<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0441\u043b\u043e\u043c\u0430\u043d<\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435: \u043e\u043f\u0430\u0441\u043d\u044b \u043e\u0448\u0438\u0431\u043a\u0438, \u0442\u0435\u043a\u0441\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 <code>SOAP-ERROR:<\/code>. \u042d\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f, \u043f\u043e\u0434\u043d\u044f\u0442\u044b\u0435 \u043a\u0430\u043a \u0444\u0430\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0438 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0447\u0435\u043d\u043d\u044b\u0435 \u0438\u043c \u0441\u0430\u043c\u0438\u043c. \u041e\u0431\u0430 \u0444\u043b\u0430\u0433\u0430 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 <code>gc_status()['protected']<\/code> \u0433\u043e\u0434\u0438\u0442\u0441\u044f \u043a\u0430\u043a \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0438 \u0434\u043b\u044f \u0432\u0442\u043e\u0440\u043e\u0433\u043e.<\/p>\n<h3>\u041e\u0442\u043a\u0443\u0434\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0431\u0440\u0430\u043b\u0430\u0441\u044c \u0432 \u043f\u0440\u043e\u0434\u0435<\/h3>\n<p>WSDL \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043b \u0441\u0445\u0435\u043c\u0443, \u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u043b \u0435\u0451:<\/p>\n<pre><code class=\"xml\">&lt;types&gt;    &lt;xsd:schema&gt;        &lt;xsd:import namespace=\"urn:partner\" schemaLocation=\"https:\/\/partner.example\/ws\/schema.xsd\"\/&gt;    &lt;\/xsd:schema&gt;&lt;\/types&gt;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p><code>SoapClient<\/code> \u0443 \u043d\u0430\u0441 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0441\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u044b\u0437\u043e\u0432, WSDL \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043b\u0441\u044f \u0447\u0435\u0440\u0435\u0437 Guzzle, \u0430 \u0441\u0445\u0435\u043c\u0443 <code>ext-soap<\/code> \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043b \u0441\u0430\u043c \u2014 \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0442\u043e\u043a\u0438 libxml, \u043c\u0438\u043c\u043e HTTP-\u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438 \u0435\u0433\u043e \u043b\u043e\u0433\u043e\u0432. \u0421\u0445\u0435\u043c\u0430 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043b\u0430\u0441\u044c \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435. \u0421\u0442\u043e\u0438\u043b\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044e \u0441\u043e\u0440\u0432\u0430\u0442\u044c\u0441\u044f \u2014 \u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0434\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0436\u0438\u043b \u0432 \u0441\u043b\u043e\u043c\u0430\u043d\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438.<\/p>\n<p>\u041f\u0440\u044f\u043c\u044b\u0445 \u043b\u043e\u0433\u043e\u0432 \u043e\u0448\u0438\u0431\u043a\u0438 \u043d\u0435 \u0431\u044b\u043b\u043e: \u043a\u043e\u0434 \u0432\u044b\u0448\u0435 \u043f\u043e \u0441\u0442\u0435\u043a\u0443 \u043b\u043e\u0432\u0438\u043b <code>\\Throwable<\/code> \u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u043b \u0435\u0433\u043e \u0432 \u00ab\u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043f\u043e\u0437\u0436\u0435\u00bb. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u043a\u043e\u0441\u0432\u0435\u043d\u043d\u044b\u0435, \u043d\u043e, \u043f\u043e-\u043c\u043e\u0435\u043c\u0443, \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435:<\/p>\n<ul>\n<li>\n<p>\u041f\u043e \u043c\u0435\u0442\u0440\u0438\u043a\u0430\u043c \u043f\u0430\u043c\u044f\u0442\u0438 \u0441 \u0448\u0430\u0433\u043e\u043c \u0432 2 \u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0430\u0448\u043b\u0438 \u0442\u043e\u0447\u043d\u044b\u0435 \u043c\u0438\u043d\u0443\u0442\u044b, \u043a\u043e\u0433\u0434\u0430 \u0443 \u043f\u043e\u0434\u043e\u0432 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0441\u044f \u0440\u043e\u0441\u0442.<\/p>\n<\/li>\n<li>\n<p>\u0412 \u043b\u043e\u0433\u0430\u0445 \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u043e\u0434\u0430 \u0440\u043e\u0432\u043d\u043e \u0432 \u044d\u0442\u0438 \u043c\u0438\u043d\u0443\u0442\u044b \u0435\u0441\u0442\u044c \u0432\u044b\u0437\u043e\u0432\u044b, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 WSDL \u0441\u043a\u0430\u0447\u0430\u043d (200, \u043f\u043e\u043b\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440), \u0430 POST \u043a \u0441\u0435\u0440\u0432\u0438\u0441\u0443 \u0442\u0430\u043a \u0438 \u043d\u0435 \u0443\u0448\u0451\u043b. \u041e\u0434\u043d\u0430\u0436\u0434\u044b \u2014 \u0443 \u0442\u0440\u0451\u0445 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0437\u0430 1,6 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0434\u0435.<\/p>\n<\/li>\n<li>\n<p>\u0423 \u0442\u0435\u0445 \u0436\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0434\u043e \u0438 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0439 \u043c\u0438\u043d\u0443\u0442\u044b \u0432\u044b\u0437\u043e\u0432\u044b \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u2014 \u0437\u043d\u0430\u0447\u0438\u0442, \u0434\u0435\u043b\u043e \u043d\u0435 \u0432 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0430\u0443\u0437\u0430 \u043f\u043e\u0441\u043b\u0435 WSDL \u0442\u0430\u043a\u0430\u044f \u0436\u0435, \u043a\u0430\u043a \u0443 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0445 \u0432\u044b\u0437\u043e\u0432\u043e\u0432, \u0433\u0434\u0435 \u0437\u0430 \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0445\u0435\u043c\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0442\u0441\u044e\u0434\u0430 \u0438 \u00ab\u043f\u0430\u043c\u044f\u0442\u044c \u0441\u0442\u043e\u0438\u0442 \u0447\u0430\u0441, \u0430 \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0440\u0430\u0441\u0442\u0438\u00bb: \u0440\u043e\u0441\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0441\u044f \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u043e\u0440\u0432\u0430\u0432\u0448\u0435\u0433\u043e\u0441\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b. \u0418 \u043e\u0442\u0441\u044e\u0434\u0430 \u0436\u0435 \u00ab\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f\u00bb: \u0441\u0442\u0430\u0431\u044b \u043e\u0442\u0434\u0430\u0432\u0430\u043b\u0438 WSDL \u0441\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u0441\u0445\u0435\u043c\u043e\u0439, \u0441\u0431\u043e\u0435\u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0435 \u0431\u044b\u043b\u043e, \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0441\u044f \u0437\u0434\u043e\u0440\u043e\u0432\u044b\u043c.<\/p>\n<p>\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u044d\u0442\u043e \u043d\u0430 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e: \u0441\u0442\u0430\u0431 \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0434\u0430\u0451\u0442 WSDL \u0441 <code>xsd:import<\/code>, \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0439 \u043d\u0430 \u043e\u0434\u0438\u043d \u0437\u0430\u043f\u0440\u043e\u0441 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \u0441\u0445\u0435\u043c\u044b. \u0414\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u2014 \u0442\u0440\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043d\u0430 \u0432\u044b\u0437\u043e\u0432 (WSDL, \u0441\u0445\u0435\u043c\u0430, POST) \u0438 \u0441\u043b\u043e\u043c\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u043e\u0441\u043b\u0435 \u0441\u0431\u043e\u044f. \u041f\u043e\u0441\u043b\u0435 \u2014 \u043e\u0434\u0438\u043d POST \u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435.<\/p>\n<h3>\u0427\u0442\u043e \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438<\/h3>\n<p><strong>\u041f\u0435\u0440\u0435\u0441\u0442\u0430\u043b\u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0441\u0445\u0435\u043c\u044b \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b.<\/strong> WSDL \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0441\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u0441\u0445\u0435\u043c\u043e\u0439 \u043b\u0435\u0436\u0438\u0442 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438, \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0435\u0439 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u043e\u043f\u0446\u0438\u0435\u0439 <code>location<\/code>:<\/p>\n<pre><code class=\"php\">$client = new SoapClient(__DIR__ . '\/service.wsdl', [    'location' =&gt; $config-&gt;serviceEndpoint(),]);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u042d\u0442\u043e \u0437\u0430\u043e\u0434\u043d\u043e \u0443\u0431\u0440\u0430\u043b\u043e \u0434\u0432\u0430 \u043b\u0438\u0448\u043d\u0438\u0445 HTTP-\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u044b\u0437\u043e\u0432.<\/p>\n<p><strong>\u041d\u0430\u0447\u0430\u043b\u0438 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u043f\u0430\u0441\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438.<\/strong> \u0412\u0441\u0435 <code>SoapFault<\/code> \u0441 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c <code>SOAP-ERROR:<\/code> \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0432 \u043b\u043e\u0433 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 <code>error<\/code> \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0444\u043b\u0430\u0433\u043e\u043c <code>gc_status()['protected']<\/code>, \u043d\u0430 \u043d\u0438\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u0430\u043b\u0435\u0440\u0442. \u041e\u0431\u044b\u0447\u043d\u044b\u0435 \u043e\u0442\u043a\u0430\u0437\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0435 \u043b\u043e\u0433\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u2014 \u044d\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430.<\/p>\n<pre><code class=\"php\">if (str_starts_with($fault-&gt;getMessage(), 'SOAP-ERROR:')) {    $logger-&gt;error('SOAP internal error: ' . $fault-&gt;getMessage(), [        'gc_disabled' =&gt; gc_status()['protected'],    ]);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p><strong>\u041d\u0430 \u0431\u0443\u0434\u0443\u0449\u0435\u0435<\/strong> \u2014 \u0435\u0441\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 <code>Encoding: Violation of encoding rules<\/code> \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f \u0432 \u043b\u043e\u0433\u0430\u0445, \u0443 <code>SoapClient<\/code> \u0435\u0441\u0442\u044c \u043e\u043f\u0446\u0438\u044f <code>typemap<\/code>: \u0440\u0430\u0437\u0431\u043e\u0440 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 XSD \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u0438\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u043f\u0430\u0434\u0430\u044e\u0442 \u043d\u0430 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u041d\u0430 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0435 \u044d\u0442\u043e \u0443\u0431\u0438\u0440\u0430\u0435\u0442 \u0444\u0430\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443 \u0434\u043b\u044f \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0441 \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0442\u0438\u043f\u0430\u043c\u0438.<\/p>\n<h3>\u0418\u0442\u043e\u0433 \u043f\u043e \u0446\u0438\u0444\u0440\u0430\u043c<\/h3>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\n<\/th>\n<th>\n<p align=\"left\">\u041f\u0430\u043c\u044f\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0434\u043e \u0432\u0441\u0435\u0433\u043e<\/p>\n<\/td>\n<td>\n<p align=\"left\">+~120 \u041c\u0438\u0411\/\u0447, OOM \u043a\u0430\u0436\u0434\u044b\u0435 5\u20136 \u0447\u0430\u0441\u043e\u0432<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043f\u043e\u0441\u043b\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0444\u0430\u0431\u0440\u0438\u043a<\/p>\n<\/td>\n<td>\n<p align=\"left\">+~10 \u041c\u0438\u0411\/\u0447<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0443\u0431\u0440\u0430\u043b\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438\u0437 \u0433\u043e\u0440\u044f\u0447\u0435\u0433\u043e \u043f\u0443\u0442\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\">+~1 \u041c\u0438\u0411\/\u0447<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0443\u0431\u0440\u0430\u043b\u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0441\u0445\u0435\u043c<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0441\u0431\u043e\u0435\u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0445\u0435\u043c\u044b \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435\u0442, \u043f\u0430\u043c\u044f\u0442\u044c \u0440\u043e\u0432\u043d\u0430\u044f<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h3>\u0427\u0442\u043e \u044f \u0432\u044b\u043d\u0435\u0441<\/h3>\n<ol>\n<li>\n<p><strong>\u0412 \u0434\u043e\u043b\u0433\u043e\u0436\u0438\u0432\u0443\u0449\u0435\u043c PHP-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 SOAP \u043e\u043f\u0430\u0441\u0435\u043d \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043e\u0442\u0432\u0435\u0442\u0430\u043c\u0438.<\/strong> \u041e\u0434\u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 <code>SOAP-ERROR:<\/code> \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u00ab\u0430\u0432\u0430\u0440\u0438\u0439\u043d\u043e\u0433\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f\u00bb: \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u043c\u0443\u0441\u043e\u0440\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d, \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043d\u0435 \u0434\u043e\u0447\u0438\u0449\u0430\u044e\u0442\u0441\u044f, \u0438 \u0441\u043d\u0430\u0440\u0443\u0436\u0438 \u044d\u0442\u043e \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0432\u0438\u0434\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p><code><strong>gc_status()<\/strong><\/code><strong> \u043d\u0430\u0434\u043e \u0447\u0438\u0442\u0430\u0442\u044c \u0446\u0435\u043b\u0438\u043a\u043e\u043c.<\/strong> <code>roots = 0<\/code> \u0438 <code>collected = 0<\/code> \u043d\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0442 \u00ab\u043c\u0443\u0441\u043e\u0440\u0430 \u043d\u0435\u0442\u00bb. \u0421\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 <code>protected<\/code>: \u0432 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043e\u043d \u0432\u0441\u0435\u0433\u0434\u0430 <code>false<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u00ab\u0422\u0435\u0447\u0451\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0440\u043e\u0434\u0435\u00bb \u2014 \u043f\u043e\u0432\u043e\u0434 \u0438\u0441\u043a\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430, \u0430 \u043d\u0435 \u0432 \u043a\u043e\u0434\u0435.<\/strong> \u041d\u0430\u0448 \u043a\u043e\u0434 \u0431\u044b\u043b \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c; \u0440\u0430\u0437\u043d\u044b\u043c \u0431\u044b\u043b\u043e \u0442\u043e, \u0441\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043b\u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u0438\u043d \u0441\u0431\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0445\u0435\u043c\u044b.<\/p>\n<\/li>\n<li>\n<p><strong>\u041d\u0435 \u0442\u044f\u043d\u0438\u0442\u0435 \u0441\u0445\u0435\u043c\u044b \u043f\u043e \u0441\u0435\u0442\u0438 \u0432 \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0435.<\/strong> WSDL \u0438 XSD \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043b\u0443\u0447\u0448\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0440\u044f\u0434\u043e\u043c \u0441 \u043a\u043e\u0434\u043e\u043c \u2014 \u044d\u0442\u043e \u0438 \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0438 \u043d\u0430\u0434\u0451\u0436\u043d\u0435\u0435.<\/p>\n<\/li>\n<li>\n<p><strong>\u041d\u0435 \u0433\u043b\u043e\u0442\u0430\u0439\u0442\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043c\u043e\u043b\u0447\u0430.<\/strong> <code>catch (\\Throwable)<\/code> \u0431\u0435\u0437 \u043b\u043e\u0433\u0430 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b \u043f\u043e\u043d\u044f\u0442\u043d\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443 \u0432 \u0434\u043e\u043b\u0433\u0443\u044e \u0437\u0430\u0433\u0430\u0434\u043a\u0443.<\/p>\n<\/li>\n<li>\n<p><strong>\u0413\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438 \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u044f \u0432 \u0433\u043e\u0440\u044f\u0447\u0435\u043c \u043f\u0443\u0442\u0438 \u0434\u043e\u043b\u0433\u043e\u0436\u0438\u0432\u0443\u0449\u0435\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u2014 \u043d\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b,<\/strong> \u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u043e\u0434\u043d\u0430\u0436\u0434\u044b \u0441\u043b\u043e\u043c\u0430\u0435\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441. \u041c\u044b \u0443\u0431\u0440\u0430\u043b\u0438 \u0438\u0445 \u0438\u0437 \u0442\u0435\u0445 \u043c\u0435\u0441\u0442, \u0433\u0434\u0435 \u043e\u043d\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0438\u0441\u044c \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435.<\/p>\n<\/li>\n<\/ol>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u043e\u043b\u0433\u043e\u0436\u0438\u0432\u0443\u0449\u0438\u0439 PHP-\u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441 <code>SoapClient<\/code> \u0438 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u0430\u044f \u0443\u0442\u0435\u0447\u043a\u0430 \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 <code>gc_status()['protected']<\/code>. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u044d\u0442\u043e \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u0432\u0430\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0434\u0435\u043b\u044c.<\/p>\n<h3>\u0421\u0441\u044b\u043b\u043a\u0438<\/h3>\n<ul>\n<li>\n<p><a href=\"https:\/\/github.com\/php\/php-src\/issues\/10026\" rel=\"noopener nofollow\">php-src#10026: Garbage collection stops after exception in SoapClient<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/bugs.php.net\/bug.php?id=66151\" rel=\"noopener nofollow\">PHP bug #66151: Memory leak when SOAP fails to process a WSDL file<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/arnaud-lb\/php-memory-profiler\" rel=\"noopener nofollow\">php-memprof<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.php.net\/manual\/en\/features.gc.collecting-cycles.php\" rel=\"noopener nofollow\">PHP: Collecting Cycles<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1092030\/\">https:\/\/habr.com\/ru\/articles\/1092030\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u043e\u043d\u0441\u044c\u044e\u043c\u0435\u0440 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043d\u0430 PHP, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u043d\u044c\u0448\u0435 \u0440\u0430\u0437 \u0432 \u043f\u044f\u0442\u044c-\u0448\u0435\u0441\u0442\u044c \u0447\u0430\u0441\u043e\u0432 \u043f\u0430\u0434\u0430\u043b \u043f\u043e OOMKilled \u043d\u0430 \u043b\u0438\u043c\u0438\u0442\u0435 2 \u0413\u0438\u0411. \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0442\u0435\u0440\u044f\u043b\u0438\u0441\u044c: Kubernetes \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u043b \u043f\u043e\u0434, \u0438 \u043a\u043e\u043d\u0441\u044c\u044e\u043c\u0435\u0440 \u0434\u043e\u0447\u0438\u0442\u044b\u0432\u0430\u043b \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u0442\u0430\u043a \u0447\u0442\u043e \u0441\u043d\u0430\u0440\u0443\u0436\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u043f\u043e\u0447\u0442\u0438 \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u0430. \u041d\u043e \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0435 \u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u043f\u043e \u043f\u0430\u043c\u044f\u0442\u0438 \u2014 \u043d\u0435 \u043d\u043e\u0440\u043c\u0430, \u0438 \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u0434\u043e\u043a\u043e\u043f\u0430\u0442\u044c\u0441\u044f \u0434\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u044b.\u0421\u043f\u043e\u0439\u043b\u0435\u0440: \u0432\u0438\u043d\u043e\u0432\u0430\u0442 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043d\u0435 \u043d\u0430\u0448 \u043a\u043e\u0434 \u0438 \u043d\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u0430 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u0430\u043c\u043e\u0433\u043e PHP \u043f\u043e\u0441\u043b\u0435 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043e\u0448\u0438\u0431\u043e\u043a \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f ext-soap. \u0411\u0430\u0433 \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u0441 2016 \u0433\u043e\u0434\u0430, issue \u0432 php-src \u043e\u0442\u043a\u0440\u044b\u0442 \u0441 2022-\u0433\u043e, \u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043e\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432 \u0436\u0438\u0432\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0438 \u043a\u0430\u043a \u0435\u0433\u043e \u043d\u0430\u0439\u0442\u0438, \u044f \u043d\u0435 \u043d\u0430\u0448\u0451\u043b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0438\u0448\u0443.PHP 8.4, Symfony 6.4, RabbitMQ, Kubernetes. \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u044b.\u0421\u0438\u043c\u043f\u0442\u043e\u043c\u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0441\u044c\u044e\u043c\u0435\u0440 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0441\u0435\u0440\u0432\u0438\u0441. \u0421\u0435\u0440\u0432\u0438\u0441 \u043e\u0442\u0434\u0430\u0451\u0442 API \u043f\u043e SOAP, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b\u0437\u043e\u0432 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:$client = new SoapClient(&#8216;https:\/\/partner.example\/ws\/service?wsdl&#8217;, $options);$result = $client-&gt;checkStatus($request);\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043d\u0430 \u043f\u043e\u0434. \u041f\u0430\u043c\u044f\u0442\u044c \u0440\u0430\u0441\u0442\u0451\u0442 \u043b\u0438\u043d\u0435\u0439\u043d\u043e, \u043e\u043a\u043e\u043b\u043e 120 \u041c\u0438\u0411 \u0432 \u0447\u0430\u0441, \u0447\u0435\u0440\u0435\u0437 5\u20136 \u0447\u0430\u0441\u043e\u0432 \u2014 OOMKilled.\u0421\u0442\u0440\u0430\u043d\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438 \u043d\u0435 \u0441\u0440\u0430\u0437\u0443:\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u0443\u0442\u0435\u0447\u043a\u0430 \u043d\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u043d\u0438\u043a\u0430\u043a \u2014 \u043d\u0438 \u043d\u0430 \u0441\u0442\u0435\u043d\u0434\u0435, \u043d\u0438 \u043f\u0440\u0438 \u043f\u0440\u043e\u0433\u043e\u043d\u0435 \u0442\u043e\u0433\u043e \u0436\u0435 \u043a\u043e\u0434\u0430 \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u043e\u0442\u0432\u0435\u0442\u0430\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043d\u0438 \u043d\u0430 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u043c RabbitMQ \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u044b \u0447\u0430\u0441\u043e\u0432;\u0432 \u043f\u0440\u043e\u0434\u0435 \u043f\u043e\u0441\u043b\u0435 \u0441\u0442\u0430\u0440\u0442\u0430 \u043f\u043e\u0434\u0430 \u043f\u0430\u043c\u044f\u0442\u044c \u0438\u043d\u043e\u0433\u0434\u0430 \u0441\u0442\u043e\u044f\u043b\u0430 \u0440\u043e\u0432\u043d\u043e 20\u2013120 \u043c\u0438\u043d\u0443\u0442, \u0430 \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0430 \u0440\u0430\u0441\u0442\u0438 \u2014 \u0440\u0435\u0437\u043a\u043e, \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u043f\u0430\u0440\u044b \u043c\u0438\u043d\u0443\u0442;\u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0435 \u043a\u043e\u043d\u0441\u044c\u044e\u043c\u0435\u0440\u044b \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 \u043a\u043e\u0434\u0435 \u0438 \u0441 \u0442\u0435\u043c \u0436\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435\u043c \u043d\u0435 \u0442\u0435\u043a\u043b\u0438.\u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u043f\u0435\u0440\u0432\u0430\u044f: \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u0432\u0430\u0435\u043c\u044b\u0435\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b\u0438 \u0432\u0441\u0451, \u0447\u0442\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0432 \u0434\u043e\u043b\u0433\u043e\u0436\u0438\u0432\u0443\u0449\u0438\u0445 PHP-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u0445: \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u0435\u0448\u0438 \u0432 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u0445, EntityManager Doctrine, \u0431\u0443\u0444\u0435\u0440\u044b \u043b\u043e\u0433\u0433\u0435\u0440\u0430, \u0431\u0443\u0444\u0435\u0440 \u043e\u0448\u0438\u0431\u043e\u043a libxml. \u0421\u0434\u0435\u043b\u0430\u043b\u0438 \u043e\u0431\u0445\u043e\u0434 \u0433\u0440\u0430\u0444\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043e\u0442 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0438 \u0441\u0442\u0435\u043a\u0430 \u2014 \u0433\u0440\u0430\u0444 \u043d\u0435 \u0440\u0430\u0441\u0442\u0451\u0442.gc_collect_cycles() \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u043b 0, gc_status()[&#8216;roots&#8217;] \u0432\u0441\u0451 \u0432\u0440\u0435\u043c\u044f \u0431\u044b\u043b 0. \u041c\u044b \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b\u0438 \u044d\u0442\u043e \u043a\u0430\u043a \u00ab\u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u0443\u0441\u043e\u0440\u0430 \u043d\u0435\u0442, \u0437\u043d\u0430\u0447\u0438\u0442, \u0434\u0435\u043b\u043e \u043d\u0435 \u0432 \u0446\u0438\u043a\u043b\u0430\u0445\u00bb \u2014 \u0438 \u043f\u043e\u0448\u043b\u0438 \u0434\u0430\u043b\u044c\u0448\u0435. \u042d\u0442\u043e \u0431\u044b\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u0435\u0449\u0451 \u0432\u0435\u0440\u043d\u0443\u0441\u044c.\u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u0432\u0442\u043e\u0440\u0430\u044f: \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438\u0417\u0430\u0448\u043b\u0438 \u0432 \u043f\u043e\u0434 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u043d\u0430 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u044b \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430:ls -l \/proc\/1\/fd | awk &#8216;{print $NF}&#8217; | sort | uniq -c | sort -rn | head\u0422\u044b\u0441\u044f\u0447\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u043e\u0432 \u043d\u0430 \u0442\u0440\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0441 \u043a\u043b\u0430\u0441\u0441\u0430\u043c\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u041d\u0430\u0448\u043b\u0430\u0441\u044c \u0444\u0430\u0431\u0440\u0438\u043a\u0430 \u0442\u0430\u043a\u043e\u0433\u043e \u0432\u0438\u0434\u0430:final class HandlerFactory{    private static function classes(): \\Generator    {        foreach (new \\DirectoryIterator(__DIR__ . &#8216;\/Handler&#8217;) as $file) {            if (!$file-&gt;isDot()) {                yield __NAMESPACE__ . &#8216;\\\\Handler\\\\&#8217; . $file-&gt;getBasename(&#8216;.php&#8217;);            }        }    }    public static function create(string $name): Handler    {        foreach (self::classes() as $class) {            if ($class::NAME === $name) {                return new $class();            }        }        throw new \\InvalidArgumentException($name);    }}\u0420\u0430\u043d\u043d\u0438\u0439 return \u0431\u0440\u043e\u0441\u0430\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043d\u0435\u0434\u043e\u0438\u0442\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c, \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0433\u043e \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f DirectoryIterator \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u043c. \u0412 \u043d\u043e\u0440\u043c\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0430\u0435\u0442\u0441\u044f, \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043d\u0435\u0433\u043e \u043d\u0435 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0441\u0441\u044b\u043b\u043e\u043a, \u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f. \u0412 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u043e\u0434\u0435 \u2014 \u043d\u0435\u0442: \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u0444\u0430\u0431\u0440\u0438\u043a\u0438 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u043b \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433, \u043e\u043a\u043e\u043b\u043e 11 \u041a\u0411 \u043f\u0430\u043c\u044f\u0442\u0438. \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u043d\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u2014 \u0438 \u0432\u043e\u0442 \u043d\u0430\u0448\u0438 120 \u041c\u0438\u0411 \u0432 \u0447\u0430\u0441.\u041c\u044b \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b\u0438 \u0444\u0430\u0431\u0440\u0438\u043a\u0438 \u043d\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u0440\u043e\u0441\u0442 \u0443\u043f\u0430\u043b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432 \u0434\u0435\u0441\u044f\u0442\u044c \u0440\u0430\u0437. \u041d\u043e \u043d\u0435 \u0434\u043e \u043d\u0443\u043b\u044f: \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043e\u043a\u043e\u043b\u043e 2 \u041a\u0411 \u043d\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435. \u0418 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0431\u0435\u0437 \u043e\u0442\u0432\u0435\u0442\u0430: \u043f\u043e\u0447\u0435\u043c\u0443 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043d\u0435 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0430\u0435\u0442\u0441\u044f? \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u0442\u043e\u0442 \u0436\u0435 \u043a\u043e\u0434 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u043b.\u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u0442\u0440\u0435\u0442\u044c\u044f: memprof \u0432 \u043f\u0440\u043e\u0434\u0435\u041f\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0432 \u043f\u0440\u043e\u0434 memprof \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043b\u0438 \u0441\u043d\u0438\u043c\u043a\u0438 memprof_dump_array() \u043a\u0430\u0436\u0434\u044b\u0435 3000 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439. \u0420\u043e\u0441\u0442 \u0434\u0430\u0432\u0430\u043b\u0438 \u0440\u043e\u0432\u043d\u043e \u0442\u0435 \u043c\u0435\u0441\u0442\u0430, \u0433\u0434\u0435 \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b:\u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 Symfony \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0434\u043b\u044f !tagged_iterator (RewindableGenerator) \u2014 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043f\u043e 176 \u0431\u0430\u0439\u0442 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u044b\u0437\u043e\u0432, \u043e\u043a\u043e\u043b\u043e \u0448\u0435\u0441\u0442\u0438 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u043d\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435;\u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u044f, \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u0432 GuzzleHttp\\Promise\\Coroutine::of().\u041f\u0440\u0438\u0447\u0451\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u2014 \u043d\u0435 \u0431\u0440\u043e\u0448\u0435\u043d\u043d\u044b\u0435, \u043d\u0435 \u0432 \u0446\u0438\u043a\u043b\u0430\u0445. \u041c\u044b \u0443\u0431\u0440\u0430\u043b\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438\u0437 \u0433\u043e\u0440\u044f\u0447\u0435\u0433\u043e \u043f\u0443\u0442\u0438, \u0438 \u0440\u043e\u0441\u0442 \u0443\u043f\u0430\u043b \u0435\u0449\u0451 \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437. \u041d\u043e \u0432\u043e\u043f\u0440\u043e\u0441 \u00ab\u043f\u043e\u0447\u0435\u043c\u0443\u00bb \u0441\u0442\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u0442\u0440\u0435\u0435: \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0439 \u043a\u043e\u043d\u0441\u044c\u044e\u043c\u0435\u0440 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b \u0442\u0435 \u0436\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043c\u0435\u0442\u0440\u0438\u043a (\u043e\u043d\u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0439 HTTP-\u0437\u0430\u043f\u0440\u043e\u0441), \u0434\u0435\u043b\u0430\u043b \u044d\u0442\u043e \u0432 \u0447\u0435\u0442\u044b\u0440\u0435 \u0440\u0430\u0437\u0430 \u0440\u0435\u0436\u0435 \u0438 \u0432\u0441\u044e \u043d\u043e\u0447\u044c \u0434\u0435\u0440\u0436\u0430\u043b \u043f\u0430\u043c\u044f\u0442\u044c \u0440\u043e\u0432\u043d\u043e, \u0441 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e \u0434\u043e \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442\u0430. \u041f\u043e \u043d\u0430\u0448\u0435\u0439 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0435 \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u043d\u0430\u0431\u0440\u0430\u0442\u044c 15 \u041c\u0438\u0411.\u0417\u043d\u0430\u0447\u0438\u0442, \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0442\u0435\u043a\u0443\u0442 \u043d\u0435 \u0432\u0435\u0437\u0434\u0435. \u0427\u0442\u043e-\u0442\u043e \u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435.\u0420\u0430\u0437\u0433\u0430\u0434\u043a\u0430: gc_status()[&#8216;protected&#8217;]\u0412\u0435\u0440\u043d\u0451\u043c\u0441\u044f \u043a \u043d\u0443\u043b\u044e \u0432 gc_status()[&#8216;roots&#8217;]. \u0412 \u0437\u0434\u043e\u0440\u043e\u0432\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u044d\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043a\u043e\u043b\u0435\u0431\u043b\u0435\u0442\u0441\u044f: \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u0441\u0447\u0451\u0442\u0447\u0438\u043a \u0441\u0441\u044b\u043b\u043e\u043a \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442\u0441\u044f, \u043d\u043e \u043d\u0435 \u0434\u043e \u043d\u0443\u043b\u044f, \u043e\u0431\u044a\u0435\u043a\u0442 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u0431\u0443\u0444\u0435\u0440 \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u0432 \u043d\u0430 \u0441\u0431\u043e\u0440\u043a\u0443. \u041d\u043e\u043b\u044c \u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u0432. \u0417\u0430 \u044d\u0442\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043f\u043e\u043b\u0435 protected, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u044b \u0440\u0430\u043d\u044c\u0448\u0435 \u043d\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u043b\u0438.\u041c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0442\u0430\u043a\u043e\u0439. \u0427\u0430\u0441\u0442\u044c \u043e\u0448\u0438\u0431\u043e\u043a ext-soap \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442 \u043a\u0430\u043a \u0444\u0430\u0442\u0430\u043b\u044c\u043d\u044b\u0435 (E_ERROR) \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e soap_error. \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0432 zend_try\/zend_catch, \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0444\u0430\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443 \u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0435\u0451 \u0432 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 SoapFault. \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0436\u0438\u0432\u0451\u0442 \u0434\u0430\u043b\u044c\u0448\u0435, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0432\u044b\u0437\u043e\u0432\u044b SOAP \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e.\u041d\u043e \u0444\u0430\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0432 \u0434\u0432\u0438\u0436\u043a\u0435 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u044b\u0437\u043e\u0432\u043e\u043c zend_bailout(), \u0430 \u043e\u043d \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u044b\u0436\u043a\u043e\u043c \u0432 zend_catch \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u0432\u0430 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u043b\u0430\u0433\u0430, \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u0435\u0439\u0447\u0430\u0441 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0441\u044f:gc_protect(1);CG(unclean_shutdown) = 1;ext-soap \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0430 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0447\u0430\u0441\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u043d\u043e \u044d\u0442\u0438 \u0434\u0432\u0430 \u0444\u043b\u0430\u0433\u0430 \u043d\u0435 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:gc_protect(1) \u2014 \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u0443\u0441\u043e\u0440\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0436\u0438\u0437\u043d\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430;CG(unclean_shutdown) = 1 \u2014 \u0434\u0432\u0438\u0436\u043e\u043a \u0441\u0447\u0438\u0442\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0430\u0432\u0430\u0440\u0438\u0439\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f, \u0438 \u043d\u0435 \u0434\u043e\u0447\u0438\u0449\u0430\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b.\u042d\u0442\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430: php-src#10026 \u00abGarbage collection stops after exception in SoapClient\u00bb \u043e\u0442\u043a\u0440\u044b\u0442 \u0432 \u043d\u043e\u044f\u0431\u0440\u0435 2022 \u0433\u043e\u0434\u0430 \u0434\u043b\u044f PHP 8.1, \u043f\u043e\u043c\u0435\u0447\u0435\u043d \u043a\u0430\u043a Verified. \u0410 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 2016 \u0433\u043e\u0434\u0430 \u043a bug #66151 \u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e: \u00abLooks like after SoapFault happens GC stops to work at all\u00bb. \u041d\u0430 PHP 8.4.19 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0442\u043e \u0436\u0435.\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e WSDL, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0443\u044e \u0441\u0445\u0435\u043c\u0443:&lt;?php$wsdl = &lt;&lt;&lt;&#8216;XML'&lt;?xml version=&#187;1.0&#8243; encoding=&#187;UTF-8&#8243;?&gt;&lt;definitions xmlns=&#187;http:\/\/schemas.xmlsoap.org\/wsdl\/&#187;             xmlns:xsd=&#187;http:\/\/www.w3.org\/2001\/XMLSchema&#187;             xmlns:tns=&#187;urn:example&#187; targetNamespace=&#187;urn:example&#187;&gt;    &lt;types&gt;        &lt;xsd:schema&gt;            &lt;xsd:import namespace=&#187;urn:example&#187; schemaLocation=&#187;http:\/\/127.0.0.1:1\/schema.xsd&#187;\/&gt;        &lt;\/xsd:schema&gt;    &lt;\/types&gt;&lt;\/definitions&gt;XML;function report(string $label): void{    $before = memory_get_usage();    $generator = function () { yield 1; };    for ($i = 0; $i &lt; 100_000; $i++) {        foreach ($generator() as $value) {        }    }    printf(&#171;%s: protected=%s, +%.1f MiB\\n&#187;, $label,        var_export(gc_status()[&#8216;protected&#8217;], true),        (memory_get_usage() &#8212; $before) \/ 1048576);}report(&#8216;\u0434\u043e \u043e\u0448\u0438\u0431\u043a\u0438&#8217;);try {    new SoapClient(&#8216;data:\/\/text\/plain;base64,&#8217; . base64_encode($wsdl));} catch (SoapFault $e) {    echo $e-&gt;getMessage(), PHP_EOL;}report(&#8216;\u043f\u043e\u0441\u043b\u0435 SoapFault&#8217;);gc_enable();report(&#8216;\u043f\u043e\u0441\u043b\u0435 gc_enable()&#8217;);\u0434\u043e \u043e\u0448\u0438\u0431\u043a\u0438: protected=false, +0.0 MiBSOAP-ERROR: Parsing Schema: can&#8217;t import schema from &#8216;http:\/\/127.0.0.1:1\/schema.xsd&#8217;\u043f\u043e\u0441\u043b\u0435 SoapFault: protected=true, +9.2 MiB\u043f\u043e\u0441\u043b\u0435 gc_enable(): protected=true, +9.2 MiB\u0421\u0442\u043e \u0442\u044b\u0441\u044f\u0447 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432, \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0440\u043e\u0439\u0434\u0435\u043d \u0434\u043e \u043a\u043e\u043d\u0446\u0430, \u2014 \u0438 9 \u041c\u0438\u0411, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0436\u0435 \u043d\u0435 \u0432\u0435\u0440\u043d\u0443\u0442\u044c. gc_enable(), gc_disable() + gc_enable(), ini_set(&#8216;zend.enable_gc&#8217;, \u2026) \u0444\u043b\u0430\u0433 \u043d\u0435 \u0441\u043d\u0438\u043c\u0430\u044e\u0442: \u043e\u043d\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442 \u0434\u0440\u0443\u0433\u0438\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c. \u0424\u0443\u043d\u043a\u0446\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043d\u044f\u043b\u0438 \u0431\u044b protected \u0438\u043b\u0438 unclean_shutdown, \u0432 PHP \u043d\u0435\u0442.\u0427\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0435\u0447\u0451\u0442\u0417\u0430\u043c\u0435\u0440 \u043d\u0430 PHP 8.4, \u043f\u043e 100 000 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432:\u0427\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0451\u043c\u0412\u0441\u0451 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435\u041f\u043e\u0441\u043b\u0435 SoapFault\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 (\u043b\u044e\u0431\u043e\u0439, \u0434\u0430\u0436\u0435 \u043d\u0438 \u0440\u0430\u0437\u0443 \u043d\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0439)0 \u0411~100\u2013130 \u0411 \u043d\u0430 \u0448\u0442\u0443\u043a\u0443\u043e\u0431\u044a\u0435\u043a\u0442 \u0441 \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u043e\u04390 \u0411~425 \u0411 \u043d\u0430 \u0448\u0442\u0443\u043a\u0443\u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u04350 \u04110 \u0411\u0431\u0440\u043e\u0448\u0435\u043d\u043d\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0441 DirectoryIterator\u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0437\u0430\u043a\u0440\u044b\u0442\u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u043e\u0442\u043a\u0440\u044b\u0442\u0414\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442, \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0443 \u0441\u0441\u044b\u043b\u043e\u043a. \u0426\u0438\u043a\u043b\u044b \u0442\u0435\u043a\u0443\u0442 \u0438\u0437-\u0437\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0431\u043e\u0440\u0449\u0438\u043a\u0430. \u0421 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u043c\u0438 \u0441\u043b\u043e\u0436\u043d\u0435\u0435: \u0432 \u0446\u0438\u043a\u043b \u043e\u043d\u0438 \u043d\u0435 \u0432\u0445\u043e\u0434\u044f\u0442, \u0438 \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u0442\u0443\u0442 \u043d\u0438 \u043f\u0440\u0438 \u0447\u0451\u043c. \u0418\u0445 \u043b\u043e\u043c\u0430\u0435\u0442 \u0432\u0442\u043e\u0440\u043e\u0439 \u0444\u043b\u0430\u0433. \u0412\u043e\u0442 \u043d\u0430\u0447\u0430\u043b\u043e zend_generator_close(), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f \u0438\u043b\u0438 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0430\u0435\u0442\u0441\u044f:zend_free_compiled_variables(execute_data);\/* &#8230; *\/\/* A fatal error \/ die occurred during the generator execution. * Trying to clean up the stack may not be safe in this case. *\/if (UNEXPECTED(CG(unclean_shutdown))) {    generator-&gt;execute_data = NULL;    return;}zend_vm_stack_free_extra_args(execute_data);if (UNEXPECTED(!finished_execution)) {    zend_generator_cleanup_unfinished_execution(generator, execute_data, 0);}efree(execute_data);\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u044e\u0442\u0441\u044f \u0434\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0432 \u043d\u0438\u0445 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442. \u0410 \u0434\u0430\u043b\u044c\u0448\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0440\u0430\u043d\u044c\u0448\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438:efree(execute_data) \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u2014 \u043a\u0430\u0436\u0434\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u0441\u0432\u043e\u0439 \u0444\u0440\u0435\u0439\u043c, \u044d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c ~100\u2013130 \u0431\u0430\u0439\u0442 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b;zend_generator_cleanup_unfinished_execution() \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u2014 \u0443 \u0431\u0440\u043e\u0448\u0435\u043d\u043d\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043d\u0435 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u044e\u0442\u0441\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438\u0442\u0435\u0440\u0430\u0442\u043e\u0440 \u0446\u0438\u043a\u043b\u0430 foreach.\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u2014 \u043d\u0430\u0448\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438. new \\DirectoryIterator(\u2026) \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 foreach \u2014 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0430 \u043d\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f, \u0438 \u043f\u043e\u0441\u043b\u0435 \u0441\u0431\u043e\u044f \u043e\u043d\u043e \u043d\u0435 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0438\u043a\u043e\u0433\u0434\u0430. \u0422\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 \u00ab\u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u0435\u0447\u0451\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0440\u043e\u0434\u0435\u00bb, \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043d\u0435 \u0442\u0451\u043a. \u041e\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u043b \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043f\u043e\u0441\u043b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 SOAP.\u041a\u0430\u043a\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 SOAP \u043e\u043f\u0430\u0441\u043d\u044b\u041d\u0435 \u0432\u0441\u044f\u043a\u0438\u0439 SoapFault. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043b \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e, \u0441 \u043f\u043e\u0434\u043c\u0435\u043d\u0451\u043d\u043d\u044b\u043c \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043e\u043c (__doRequest):\u0421\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0427\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043a\u043e\u0434\u041f\u0440\u043e\u0446\u0435\u0441\u0441&lt;soap:Fault&gt; \u043e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430SoapFault \u0441 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435HTML \u0432\u043c\u0435\u0441\u0442\u043e XML (502 \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430)SoapFault: looks like we got no XML document\u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435\u043f\u0443\u0441\u0442\u043e\u0439 \u0438\u043b\u0438 \u043e\u0431\u0440\u0435\u0437\u0430\u043d\u043d\u044b\u0439 \u043e\u0442\u0432\u0435\u0442\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438\u043b\u0438 \u0442\u043e\u0442 \u0436\u0435 SoapFault\u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435xsd:import \u0432 WSDL \u043d\u0435 \u0441\u043a\u0430\u0447\u0430\u043b\u0441\u044fSOAP-ERROR: Parsing Schema: can&#8217;t import schema \u2026\u0441\u043b\u043e\u043c\u0430\u043d\u0432 \u043e\u0442\u0432\u0435\u0442\u0435 \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0442\u0438\u043f: \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u043e\u043c \u043f\u043e\u043b\u0435, \u0442\u0435\u043a\u0441\u0442 \u0432 longSOAP-ERROR: Encoding: Violation of encoding rules\u0441\u043b\u043e\u043c\u0430\u043d\u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u043d\u0435\u0442 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044fSOAP-ERROR: Encoding: object has no &#8216;\u2026&#8217; property\u0441\u043b\u043e\u043c\u0430\u043d\u041f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435: \u043e\u043f\u0430\u0441\u043d\u044b \u043e\u0448\u0438\u0431\u043a\u0438, \u0442\u0435\u043a\u0441\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 SOAP-ERROR:. \u042d\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f, \u043f\u043e\u0434\u043d\u044f\u0442\u044b\u0435 \u043a\u0430\u043a \u0444\u0430\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0438 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0447\u0435\u043d\u043d\u044b\u0435 \u0438\u043c \u0441\u0430\u043c\u0438\u043c. \u041e\u0431\u0430 \u0444\u043b\u0430\u0433\u0430 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 gc_status()[&#8216;protected&#8217;] \u0433\u043e\u0434\u0438\u0442\u0441\u044f \u043a\u0430\u043a \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0438 \u0434\u043b\u044f \u0432\u0442\u043e\u0440\u043e\u0433\u043e.\u041e\u0442\u043a\u0443\u0434\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0431\u0440\u0430\u043b\u0430\u0441\u044c \u0432 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-497898","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/497898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=497898"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/497898\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=497898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=497898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=497898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}