2019-02-07 18:25:57 +01:00
|
|
|
<?php // phpcs:ignoreFile
|
|
|
|
|
|
|
|
/**
|
2021-08-08 15:40:26 +02:00
|
|
|
* This contains the information needed to convert the function signatures for php 7.1 to php 7.0 (and vice versa)
|
2019-02-07 18:25:57 +01:00
|
|
|
*
|
2021-08-08 10:39:54 +02:00
|
|
|
* This file has three sections.
|
2021-08-08 17:55:19 +02:00
|
|
|
* The 'added' section contains function/method names from FunctionSignatureMap (And alternates, if applicable) that did not exist prior to PHP 7.1
|
2021-08-08 15:40:26 +02:00
|
|
|
* The 'removed' section contains the signatures that were removed in php 7.1.
|
2021-08-08 10:39:54 +02:00
|
|
|
* The 'changed' section contains functions for which the signature has changed for php 7.1.
|
2021-08-08 17:55:19 +02:00
|
|
|
* Each function in the 'changed' section has an 'old' and a 'new' section,
|
|
|
|
* representing the function as it was in PHP before 7.1 and in PHP 7.1, respectively
|
2019-02-07 18:25:57 +01:00
|
|
|
*
|
2021-08-08 10:39:54 +02:00
|
|
|
* @see CallMap.php
|
2019-02-07 18:25:57 +01:00
|
|
|
*
|
|
|
|
* @phan-file-suppress PhanPluginMixedKeyNoKey (read by Phan when analyzing this file)
|
|
|
|
*/
|
|
|
|
return [
|
2021-08-08 10:39:54 +02:00
|
|
|
'added' => [
|
2019-02-07 18:25:57 +01:00
|
|
|
'Closure::fromCallable' => ['Closure', 'callable'=>'callable'],
|
2021-08-01 19:12:05 +02:00
|
|
|
'curl_multi_errno' => ['int|false', 'mh'=>'resource'],
|
|
|
|
'curl_share_errno' => ['int|false', 'sh'=>'resource'],
|
|
|
|
'curl_share_strerror' => ['?string', 'error_code'=>'int'],
|
2019-02-07 18:25:57 +01:00
|
|
|
'getenv\'1' => ['array<string,string>'],
|
2021-08-01 19:12:05 +02:00
|
|
|
'hash_hkdf' => ['string|false', 'algo'=>'string', 'key'=>'string', 'length='=>'int', 'info='=>'string', 'salt='=>'string'],
|
2020-12-01 18:05:58 +01:00
|
|
|
'is_iterable' => ['bool', 'value'=>'mixed'],
|
2021-08-01 19:12:05 +02:00
|
|
|
'openssl_get_curve_names' => ['list<string>'],
|
2020-12-01 18:05:58 +01:00
|
|
|
'pcntl_async_signals' => ['bool', 'enable='=>'bool'],
|
|
|
|
'pcntl_signal_get_handler' => ['int|string', 'signal'=>'int'],
|
2019-02-07 18:25:57 +01:00
|
|
|
'sapi_windows_cp_conv' => ['string', 'in_codepage'=>'int|string', 'out_codepage'=>'int|string', 'subject'=>'string'],
|
|
|
|
'sapi_windows_cp_get' => ['int'],
|
|
|
|
'sapi_windows_cp_is_utf8' => ['bool'],
|
2020-12-01 18:05:58 +01:00
|
|
|
'sapi_windows_cp_set' => ['bool', 'codepage'=>'int'],
|
2019-02-07 18:25:57 +01:00
|
|
|
'session_create_id' => ['string', 'prefix='=>'string'],
|
2021-08-01 19:12:05 +02:00
|
|
|
'session_gc' => ['int|false'],
|
2021-08-08 10:39:54 +02:00
|
|
|
],
|
|
|
|
'changed' => [
|
|
|
|
'DateTimeZone::listIdentifiers' => [
|
|
|
|
'old' => ['list<string>|false', 'timezoneGroup='=>'int', 'countryCode='=>'string'],
|
|
|
|
'new' => ['list<string>|false', 'timezoneGroup='=>'int', 'countryCode='=>'string|null'],
|
|
|
|
],
|
|
|
|
'SQLite3::createFunction' => [
|
|
|
|
'old' => ['bool', 'name'=>'string', 'callback'=>'callable', 'argCount='=>'int'],
|
|
|
|
'new' => ['bool', 'name'=>'string', 'callback'=>'callable', 'argCount='=>'int', 'flags='=>'int'],
|
|
|
|
],
|
|
|
|
'get_headers' => [
|
|
|
|
'old' => ['array|false', 'url'=>'string', 'associative='=>'int'],
|
|
|
|
'new' => ['array|false', 'url'=>'string', 'associative='=>'int', 'context='=>'resource'],
|
|
|
|
],
|
|
|
|
'getopt' => [
|
|
|
|
'old' => ['array<string,string>|array<string,false>|array<string,list<mixed>>|false', 'short_options'=>'string', 'long_options='=>'array'],
|
|
|
|
'new' => ['array<string,string>|array<string,false>|array<string,list<mixed>>|false', 'short_options'=>'string', 'long_options='=>'array', '&w_rest_index='=>'int'],
|
|
|
|
],
|
|
|
|
'pg_fetch_all' => [
|
2021-10-29 01:22:55 +02:00
|
|
|
'old' => ['array<array>', 'result'=>'resource'],
|
|
|
|
'new' => ['array<array>', 'result'=>'resource', 'result_type='=>'int'],
|
2021-08-08 10:39:54 +02:00
|
|
|
],
|
|
|
|
'pg_last_error' => [
|
|
|
|
'old' => ['string', 'connection='=>'resource'],
|
|
|
|
'new' => ['string', 'connection='=>'resource', 'operation='=>'int'],
|
|
|
|
],
|
|
|
|
'pg_select' => [
|
2021-10-29 01:22:55 +02:00
|
|
|
'old' => ['string|array|false', 'connection'=>'resource', 'table_name'=>'string', 'assoc_array'=>'array', 'options='=>'int'],
|
|
|
|
'new' => ['string|array|false', 'connection'=>'resource', 'table_name'=>'string', 'assoc_array'=>'array', 'options='=>'int', 'result_type='=>'int'],
|
2021-08-08 10:39:54 +02:00
|
|
|
],
|
|
|
|
'timezone_identifiers_list' => [
|
|
|
|
'old' => ['list<string>|false', 'timezoneGroup='=>'int', 'countryCode='=>'string'],
|
|
|
|
'new' => ['list<string>|false', 'timezoneGroup='=>'int', 'countryCode='=>'?string'],
|
|
|
|
],
|
|
|
|
'unpack' => [
|
|
|
|
'old' => ['array', 'format'=>'string', 'string'=>'string'],
|
|
|
|
'new' => ['array|false', 'format'=>'string', 'string'=>'string', 'offset='=>'int'],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'removed' => [
|
|
|
|
],
|
2019-02-07 18:25:57 +01:00
|
|
|
];
|