Как установить официальный патч php7.2? - PullRequest
0 голосов
/ 01 марта 2019

Я использую Magento 1.9.4.0.Я пытаюсь установить патч поддержки PHP 7.2, найденный здесь .Я скачал версию для 1.9.3.1 - 1.9.3.9.

Я получил:

$ patch -p0 < PATCH-1.9.3.1-1.9.3.9_PHP7-2018-09-13-08-01-43.2_v2
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/app/Mage.php b/app/Mage.php
|index 532eaca..9928cfa 100644
|--- a/app/Mage.php
|+++ b/app/Mage.php
--------------------------
File to patch:

Нужен ли мне этот патч, или Magento 1.9.4.0 поддерживает PHP 7.2 изbox?

Я использую PHP 7.2.5

1 Ответ

0 голосов
/ 01 марта 2019

Я нашел ответ здесь .

Инструкции на официальном сайте неверны, вы должны использовать patch –p1 < patch_file_name.patch вместо patch –p0 < patch_file_name.patch

Так что явыполнил patch –p1 < PATCH-1.9.3.1-1.9.3.9_PHP7-2018-09-13-08-01-43.2_v2

Затем появилось несколько интерактивных вопросов, на которые я только что ответил n, потому что у меня уже было установлено большинство исправлений.

$ patch -p1 < PATCH-1.9.3.1-1.9.3.9_PHP7-2018-09-13-08-01-43.2_v2
patching file app/Mage.php
Hunk #1 succeeded at 56 with fuzz 2 (offset 3 lines).
patching file app/code/core/Mage/Core/Helper/Data.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Core/Helper/Data.php.rej
patching file app/code/core/Mage/Core/Model/Resource/Session.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Core/Model/Resource/Session.php.rej
patching file app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file app/code/core/Mage/Core/Model/Session/Abstract/Varien.php.rej
patching file app/code/core/Mage/Core/functions.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file app/code/core/Mage/Core/functions.php.rej
patching file app/code/core/Mage/Customer/Model/Customer/Attribute/Source/Group.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Customer/Model/Customer/Attribute/Source/Group.php.rej
patching file app/code/core/Mage/Customer/Model/Customer/Attribute/Source/Store.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Customer/Model/Customer/Attribute/Source/Store.php.rej
patching file app/code/core/Mage/Customer/Model/Customer/Attribute/Source/Website.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Customer/Model/Customer/Attribute/Source/Website.php.rej
patching file app/code/core/Mage/Customer/Model/Entity/Address/Attribute/Source/Country.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Customer/Model/Entity/Address/Attribute/Source/Country.php.rej
patching file app/code/core/Mage/Customer/Model/Resource/Address/Attribute/Source/Country.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Customer/Model/Resource/Address/Attribute/Source/Country.php.rej
patching file app/code/core/Mage/Customer/Model/Resource/Address/Attribute/Source/Region.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Customer/Model/Resource/Address/Attribute/Source/Region.php.rej
patching file app/code/core/Mage/Eav/Model/Entity/Attribute/Source/Store.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Eav/Model/Entity/Attribute/Source/Store.php.rej
patching file app/code/core/Mage/Install/etc/install.xml
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Install/etc/install.xml.rej
patching file app/code/core/Mage/Sales/etc/config.xml
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file app/code/core/Mage/Sales/etc/config.xml.rej
patching file app/code/core/Mage/Shipping/Model/Carrier/Abstract.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Shipping/Model/Carrier/Abstract.php.rej
patching file app/code/core/Mage/Wishlist/Model/Observer.php
Hunk #1 FAILED at 102.
Hunk #2 FAILED at 125.
2 out of 2 hunks FAILED -- saving rejects to file app/code/core/Mage/Wishlist/Model/Observer.php.rej
patching file lib/Varien/Autoload.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/Varien/Autoload.php.rej
patching file lib/Varien/File/Uploader.php
Hunk #1 FAILED at 519.
1 out of 1 hunk FAILED -- saving rejects to file lib/Varien/File/Uploader.php.rej
patching file lib/Varien/Io/Sftp.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file lib/Varien/Io/Sftp.php.rej
The next patch would create the file lib/mcrypt_compat/mcrypt.php,
which already exists!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
patching file lib/phpseclib/Crypt/AES.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file lib/phpseclib/Crypt/AES.php.rej
The next patch would create the file lib/phpseclib/Crypt/Base.php,
which already exists!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file lib/phpseclib/Crypt/Blowfish.php,
which already exists!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
patching file lib/phpseclib/Crypt/DES.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file lib/phpseclib/Crypt/DES.php.rej
patching file lib/phpseclib/Crypt/Hash.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
29 out of 29 hunks ignored -- saving rejects to file lib/phpseclib/Crypt/Hash.php.rej
The next patch would create the file lib/phpseclib/Crypt/RC2.php,
which already exists!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
patching file lib/phpseclib/Crypt/RC4.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
5 out of 5 hunks ignored -- saving rejects to file lib/phpseclib/Crypt/RC4.php.rej
patching file lib/phpseclib/Crypt/RSA.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
101 out of 101 hunks ignored -- saving rejects to file lib/phpseclib/Crypt/RSA.php.rej
patching file lib/phpseclib/Crypt/Random.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/phpseclib/Crypt/Random.php.rej
patching file lib/phpseclib/Crypt/Rijndael.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
13 out of 13 hunks ignored -- saving rejects to file lib/phpseclib/Crypt/Rijndael.php.rej
patching file lib/phpseclib/Crypt/TripleDES.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
5 out of 5 hunks ignored -- saving rejects to file lib/phpseclib/Crypt/TripleDES.php.rej
The next patch would create the file lib/phpseclib/Crypt/Twofish.php,
which already exists!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file lib/phpseclib/File/ANSI.php,
which already exists!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file lib/phpseclib/File/ASN1.php,
which already exists!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file lib/phpseclib/File/ASN1/Element.php,
which already exists!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file lib/phpseclib/File/X509.php,
which already exists!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
patching file lib/phpseclib/Math/BigInteger.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
143 out of 143 hunks ignored -- saving rejects to file lib/phpseclib/Math/BigInteger.php.rej
The next patch would create the file lib/phpseclib/Net/SCP.php,
which already exists!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
patching file lib/phpseclib/Net/SFTP.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
41 out of 41 hunks ignored -- saving rejects to file lib/phpseclib/Net/SFTP.php.rej
The next patch would create the file lib/phpseclib/Net/SFTP/Stream.php,
which already exists!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
patching file lib/phpseclib/Net/SSH1.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
35 out of 35 hunks ignored -- saving rejects to file lib/phpseclib/Net/SSH1.php.rej
patching file lib/phpseclib/Net/SSH2.php
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
47 out of 47 hunks ignored -- saving rejects to file lib/phpseclib/Net/SSH2.php.rej
patching file lib/phpseclib/PHP/Compat/Function/array_fill.php
patching file lib/phpseclib/PHP/Compat/Function/bcpowmod.php
patching file lib/phpseclib/PHP/Compat/Function/str_split.php
The next patch would create the file lib/phpseclib/System/SSH/Agent.php,
which already exists!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file lib/phpseclib/System/SSH/Agent/Identity.php,
which already exists!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file lib/phpseclib/bootstrap.php,
which already exists!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file lib/phpseclib/openssl.cnf,
which already exists!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
...