Skip to content

Commit

Permalink
update php to 8.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
isfedorov committed Jun 6, 2021
1 parent 9ba1b11 commit a09a014
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.0.6-alpine
FROM php:8.0.7-alpine
RUN echo 'memory_limit = 512M' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini
COPY --from=composer /usr/bin/composer /usr/bin/composer

Expand Down
11 changes: 9 additions & 2 deletions PDO/PDO.php
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,13 @@ class PDO
*/
public const FETCH_ORI_REL = 5;

/**
* Specifies that the default fetch mode shall be used.
* @since 8.0.7
* @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-default
*/
public const FETCH_DEFAULT = 0;

/**
* Create a <b>PDOStatement</b> object with a forward-only cursor. This is the
* default cursor choice, as it is the fastest and most common data access
Expand Down Expand Up @@ -1467,13 +1474,13 @@ public function fetchAll($mode = PDO::FETCH_BOTH, ...$args) {}
* @param string $class [optional] <p>
* Name of the created class.
* </p>
* @param array $ctorArgs [optional] <p>
* @param array $constructorArgs [optional] <p>
* Elements of this array are passed to the constructor.
* </p>
* @return mixed an instance of the required class with property names that
* correspond to the column names or <b>FALSE</b> on failure.
*/
public function fetchObject($class = "stdClass", array $ctorArgs = []) {}
public function fetchObject($class = "stdClass", array $constructorArgs = []) {}

/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
Expand Down
4 changes: 2 additions & 2 deletions SimpleXML/SimpleXML.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ function simplexml_load_string(string $data, ?string $class_name = "SimpleXMLEle
/**
* Get a SimpleXMLElement object from a DOM node.
* @link https://php.net/manual/en/function.simplexml-import-dom.php
* @param DOMNode $node <p>
* @param SimpleXMLElement|DOMNode $node <p>
* A DOM Element node
* </p>
* @param string|null $class_name [optional] <p>
Expand All @@ -461,6 +461,6 @@ function simplexml_load_string(string $data, ?string $class_name = "SimpleXMLEle
* </p>
* @return SimpleXMLElement|null a SimpleXMLElement or <b>FALSE</b> on failure.
*/
function simplexml_import_dom(DOMNode $node, ?string $class_name = "SimpleXMLElement"): ?SimpleXMLElement {}
function simplexml_import_dom(SimpleXMLElement|DOMNode $node, ?string $class_name = "SimpleXMLElement"): ?SimpleXMLElement {}

// End of SimpleXML v.0.1
2 changes: 1 addition & 1 deletion curl/curl_d.php
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@
* Will be the most recent age value for the libcurl.
* @link https://php.net/manual/en/curl.constants.php
*/
define('CURLVERSION_NOW', 8);
define('CURLVERSION_NOW', 9);
/**
* All fine. Proceed as usual.
* @link https://php.net/manual/en/curl.constants.php
Expand Down
4 changes: 2 additions & 2 deletions openssl/openssl.php
Original file line number Diff line number Diff line change
Expand Up @@ -1020,12 +1020,12 @@ function openssl_get_cert_locations(): array {}
function openssl_get_curve_names(): array|false {}

/**
* @param string $input_filename
* @param string $data
* @param array &$certificates
* @return bool
* @since 7.2
*/
function openssl_pkcs7_read(string $input_filename, &$certificates): bool {}
function openssl_pkcs7_read(string $data, &$certificates): bool {}

/**
* Verifies that the data block is intact, the signer is who they say they are, and returns the certs of the signers.
Expand Down
12 changes: 6 additions & 6 deletions sodium/sodium.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,12 @@ function sodium_crypto_stream_keygen(): string {}
* Add padding data
* @link https://php.net/manual/en/function.sodium-pad.php
* @param string $string
* @param int $length
* @param int $block_size
* @return string
* @throws SodiumException
* @since 7.2
*/
function sodium_pad(string $string, int $length): string {}
function sodium_pad(string $string, int $block_size): string {}

/**
* Remove padding data
Expand Down Expand Up @@ -428,12 +428,12 @@ function sodium_crypto_box_publickey_from_secretkey(string $secret_key): string
* X25519 + Xsalsa20 + Poly1305 + BLAKE2b
* @link https://www.php.net/manual/en/function.sodium-crypto-box-seal.php
* @param string $message
* @param string $key_pair
* @param string $public_key
* @return string
* @throws SodiumException
* @since 7.2
*/
function sodium_crypto_box_seal(string $message, string $key_pair): string {}
function sodium_crypto_box_seal(string $message, string $public_key): string {}

/**
* Anonymous public-key encryption (decrypt)
Expand Down Expand Up @@ -728,13 +728,13 @@ function sodium_crypto_sign_keypair_from_secretkey_and_publickey(
/**
* Verify a signed message and return the plaintext
* @link https://www.php.net/manual/en/function.sodium-crypto-sign-open.php
* @param string $ciphertext
* @param string $signed_message
* @param string $public_key
* @return string|false
* @throws SodiumException
* @since 7.2
*/
function sodium_crypto_sign_open(string $ciphertext, string $public_key): string|false {}
function sodium_crypto_sign_open(string $signed_message, string $public_key): string|false {}

/**
* Get the public key from an Ed25519 keypair
Expand Down
4 changes: 2 additions & 2 deletions standard/standard_9.php
Original file line number Diff line number Diff line change
Expand Up @@ -921,9 +921,9 @@ class AssertionError extends Error {}
* @param mixed $value [optional] <p>
* An optional new value for the option.
* </p>
* @return object|array|string|int|null The original setting of any option.
* @return mixed The original setting of any option.
*/
function assert_options(int $option, mixed $value): object|array|string|int|null {}
function assert_options(int $option, mixed $value): mixed {}

/**
* Compares two "PHP-standardized" version number strings
Expand Down

0 comments on commit a09a014

Please sign in to comment.