add the patch
This commit is contained in:
parent
822cc6656c
commit
73eafd0eed
1 changed files with 74 additions and 0 deletions
74
php53.patch
Normal file
74
php53.patch
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
From 81a489d890cadab94efb57d37ed35be8c65bfb9e Mon Sep 17 00:00:00 2001
|
||||
From: Remi Collet <remi@remirepo.net>
|
||||
Date: Mon, 16 Sep 2019 09:33:19 +0200
|
||||
Subject: [PATCH] fix tests for 5.3
|
||||
|
||||
---
|
||||
tests/Unit/File/ASN1Test.php | 16 ++++++++--------
|
||||
tests/Unit/File/X509/X509Test.php | 2 +-
|
||||
tests/Unit/Math/BigInteger/TestCase.php | 4 ++--
|
||||
3 files changed, 11 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/tests/Unit/File/ASN1Test.php b/tests/Unit/File/ASN1Test.php
|
||||
index b75333b78..3a44bdc48 100644
|
||||
--- a/tests/Unit/File/ASN1Test.php
|
||||
+++ b/tests/Unit/File/ASN1Test.php
|
||||
@@ -369,21 +369,21 @@ public function testOIDs()
|
||||
*/
|
||||
public function testExplicitImplicitDate()
|
||||
{
|
||||
- $map = [
|
||||
+ $map = array(
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
- 'children' => [
|
||||
- 'notBefore' => [
|
||||
+ 'children' => array(
|
||||
+ 'notBefore' => array(
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
- 'type' => ASN1::TYPE_GENERALIZED_TIME],
|
||||
- 'notAfter' => [
|
||||
+ 'type' => ASN1::TYPE_GENERALIZED_TIME),
|
||||
+ 'notAfter' => array(
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
- 'type' => ASN1::TYPE_GENERALIZED_TIME]
|
||||
- ]
|
||||
- ];
|
||||
+ 'type' => ASN1::TYPE_GENERALIZED_TIME)
|
||||
+ )
|
||||
+ );
|
||||
|
||||
$asn1 = new ASN1();
|
||||
$a = pack('H*', '3026a011180f32303137303432313039303535305aa111180f32303138303432313230353935395a');
|
||||
diff --git a/tests/Unit/File/X509/X509Test.php b/tests/Unit/File/X509/X509Test.php
|
||||
index 6c0879c2a..9df21d97a 100644
|
||||
--- a/tests/Unit/File/X509/X509Test.php
|
||||
+++ b/tests/Unit/File/X509/X509Test.php
|
||||
@@ -795,6 +795,6 @@ public function testNameConstraintIP()
|
||||
-----END CERTIFICATE-----');
|
||||
$r = $x509->saveX509($r);
|
||||
$r = $x509->loadX509($r);
|
||||
- $this->assertSame($r['tbsCertificate']['extensions'][5]['extnValue']['excludedSubtrees'][1]['base']['iPAddress'], ['0.0.0.0', '0.0.0.0']);
|
||||
+ $this->assertSame($r['tbsCertificate']['extensions'][5]['extnValue']['excludedSubtrees'][1]['base']['iPAddress'], array('0.0.0.0', '0.0.0.0'));
|
||||
}
|
||||
}
|
||||
diff --git a/tests/Unit/Math/BigInteger/TestCase.php b/tests/Unit/Math/BigInteger/TestCase.php
|
||||
index 0d37a8c45..efef0a7d6 100644
|
||||
--- a/tests/Unit/Math/BigInteger/TestCase.php
|
||||
+++ b/tests/Unit/Math/BigInteger/TestCase.php
|
||||
@@ -434,10 +434,10 @@ public function testZeroBase10()
|
||||
|
||||
public function testNegativePrecision()
|
||||
{
|
||||
- $vals = [
|
||||
+ $vals = array(
|
||||
'-9223372036854775808', // eg. 8000 0000 0000 0000
|
||||
'-1'
|
||||
- ];
|
||||
+ );
|
||||
foreach ($vals as $val) {
|
||||
$x = $this->getInstance($val);
|
||||
$x->setPrecision(64); // ie. 8 bytes
|
||||
Loading…
Add table
Add a link
Reference in a new issue