Skip to content

Commit a09a014

Browse files
committed
update php to 8.0.7
1 parent 9ba1b11 commit a09a014

File tree

7 files changed

+23
-16
lines changed

7 files changed

+23
-16
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.0.6-alpine
1+
FROM php:8.0.7-alpine
22
RUN echo 'memory_limit = 512M' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini
33
COPY --from=composer /usr/bin/composer /usr/bin/composer
44

PDO/PDO.php

+9-2
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,13 @@ class PDO
548548
*/
549549
public const FETCH_ORI_REL = 5;
550550

551+
/**
552+
* Specifies that the default fetch mode shall be used.
553+
* @since 8.0.7
554+
* @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-default
555+
*/
556+
public const FETCH_DEFAULT = 0;
557+
551558
/**
552559
* Create a <b>PDOStatement</b> object with a forward-only cursor. This is the
553560
* default cursor choice, as it is the fastest and most common data access
@@ -1467,13 +1474,13 @@ public function fetchAll($mode = PDO::FETCH_BOTH, ...$args) {}
14671474
* @param string $class [optional] <p>
14681475
* Name of the created class.
14691476
* </p>
1470-
* @param array $ctorArgs [optional] <p>
1477+
* @param array $constructorArgs [optional] <p>
14711478
* Elements of this array are passed to the constructor.
14721479
* </p>
14731480
* @return mixed an instance of the required class with property names that
14741481
* correspond to the column names or <b>FALSE</b> on failure.
14751482
*/
1476-
public function fetchObject($class = "stdClass", array $ctorArgs = []) {}
1483+
public function fetchObject($class = "stdClass", array $constructorArgs = []) {}
14771484

14781485
/**
14791486
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>

SimpleXML/SimpleXML.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ function simplexml_load_string(string $data, ?string $class_name = "SimpleXMLEle
450450
/**
451451
* Get a SimpleXMLElement object from a DOM node.
452452
* @link https://php.net/manual/en/function.simplexml-import-dom.php
453-
* @param DOMNode $node <p>
453+
* @param SimpleXMLElement|DOMNode $node <p>
454454
* A DOM Element node
455455
* </p>
456456
* @param string|null $class_name [optional] <p>
@@ -461,6 +461,6 @@ function simplexml_load_string(string $data, ?string $class_name = "SimpleXMLEle
461461
* </p>
462462
* @return SimpleXMLElement|null a SimpleXMLElement or <b>FALSE</b> on failure.
463463
*/
464-
function simplexml_import_dom(DOMNode $node, ?string $class_name = "SimpleXMLElement"): ?SimpleXMLElement {}
464+
function simplexml_import_dom(SimpleXMLElement|DOMNode $node, ?string $class_name = "SimpleXMLElement"): ?SimpleXMLElement {}
465465

466466
// End of SimpleXML v.0.1

curl/curl_d.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@
11441144
* Will be the most recent age value for the libcurl.
11451145
* @link https://php.net/manual/en/curl.constants.php
11461146
*/
1147-
define('CURLVERSION_NOW', 8);
1147+
define('CURLVERSION_NOW', 9);
11481148
/**
11491149
* All fine. Proceed as usual.
11501150
* @link https://php.net/manual/en/curl.constants.php

openssl/openssl.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1020,12 +1020,12 @@ function openssl_get_cert_locations(): array {}
10201020
function openssl_get_curve_names(): array|false {}
10211021

10221022
/**
1023-
* @param string $input_filename
1023+
* @param string $data
10241024
* @param array &$certificates
10251025
* @return bool
10261026
* @since 7.2
10271027
*/
1028-
function openssl_pkcs7_read(string $input_filename, &$certificates): bool {}
1028+
function openssl_pkcs7_read(string $data, &$certificates): bool {}
10291029

10301030
/**
10311031
* Verifies that the data block is intact, the signer is who they say they are, and returns the certs of the signers.

sodium/sodium.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -316,12 +316,12 @@ function sodium_crypto_stream_keygen(): string {}
316316
* Add padding data
317317
* @link https://php.net/manual/en/function.sodium-pad.php
318318
* @param string $string
319-
* @param int $length
319+
* @param int $block_size
320320
* @return string
321321
* @throws SodiumException
322322
* @since 7.2
323323
*/
324-
function sodium_pad(string $string, int $length): string {}
324+
function sodium_pad(string $string, int $block_size): string {}
325325

326326
/**
327327
* Remove padding data
@@ -428,12 +428,12 @@ function sodium_crypto_box_publickey_from_secretkey(string $secret_key): string
428428
* X25519 + Xsalsa20 + Poly1305 + BLAKE2b
429429
* @link https://www.php.net/manual/en/function.sodium-crypto-box-seal.php
430430
* @param string $message
431-
* @param string $key_pair
431+
* @param string $public_key
432432
* @return string
433433
* @throws SodiumException
434434
* @since 7.2
435435
*/
436-
function sodium_crypto_box_seal(string $message, string $key_pair): string {}
436+
function sodium_crypto_box_seal(string $message, string $public_key): string {}
437437

438438
/**
439439
* Anonymous public-key encryption (decrypt)
@@ -728,13 +728,13 @@ function sodium_crypto_sign_keypair_from_secretkey_and_publickey(
728728
/**
729729
* Verify a signed message and return the plaintext
730730
* @link https://www.php.net/manual/en/function.sodium-crypto-sign-open.php
731-
* @param string $ciphertext
731+
* @param string $signed_message
732732
* @param string $public_key
733733
* @return string|false
734734
* @throws SodiumException
735735
* @since 7.2
736736
*/
737-
function sodium_crypto_sign_open(string $ciphertext, string $public_key): string|false {}
737+
function sodium_crypto_sign_open(string $signed_message, string $public_key): string|false {}
738738

739739
/**
740740
* Get the public key from an Ed25519 keypair

standard/standard_9.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -921,9 +921,9 @@ class AssertionError extends Error {}
921921
* @param mixed $value [optional] <p>
922922
* An optional new value for the option.
923923
* </p>
924-
* @return object|array|string|int|null The original setting of any option.
924+
* @return mixed The original setting of any option.
925925
*/
926-
function assert_options(int $option, mixed $value): object|array|string|int|null {}
926+
function assert_options(int $option, mixed $value): mixed {}
927927

928928
/**
929929
* Compares two "PHP-standardized" version number strings

0 commit comments

Comments
 (0)