2019-02-07 18:25:57 +01:00
|
|
|
<?php // phpcs:ignoreFile
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This contains the information needed to convert the function signatures for php 7.1 to php 7.0 (and vice versa)
|
|
|
|
*
|
|
|
|
* This has two sections.
|
|
|
|
* The 'new' section contains function/method names from FunctionSignatureMap (And alternates, if applicable) that do not exist in php7.0 or have different signatures in php 7.1.
|
|
|
|
* If they were just updated, the function/method will be present in the 'added' signatures.
|
|
|
|
* The 'old' signatures contains the signatures that are different in php 7.0.
|
|
|
|
* Functions are expected to be removed only in major releases of php. (e.g. php 7.0 removed various functions that were deprecated in 5.6)
|
|
|
|
*
|
|
|
|
* @see FunctionSignatureMap.php
|
|
|
|
*
|
|
|
|
* @phan-file-suppress PhanPluginMixedKeyNoKey (read by Phan when analyzing this file)
|
|
|
|
*/
|
|
|
|
return [
|
|
|
|
'new' => [
|
|
|
|
'Closure::fromCallable' => ['Closure', 'callable'=>'callable'],
|
2020-12-01 18:05:58 +01:00
|
|
|
'SQLite3::createFunction' => ['bool', 'name'=>'string', 'callback'=>'callable', 'argCount='=>'int', 'flags='=>'int'],
|
|
|
|
'curl_multi_errno' => ['int', 'multi_handle'=>'resource'],
|
|
|
|
'curl_share_errno' => ['int', 'share_handle'=>'resource'],
|
|
|
|
'curl_share_strerror' => ['string', 'error_code'=>'int'],
|
|
|
|
'get_headers' => ['array|false', 'url'=>'string', 'associative='=>'int', 'context='=>'resource'],
|
2019-02-07 18:25:57 +01:00
|
|
|
'getenv\'1' => ['array<string,string>'],
|
2020-12-01 18:05:58 +01:00
|
|
|
'getopt' => ['array<string,string>|array<string,false>|array<string,array<int,string|false>>', 'short_options'=>'string', 'long_options='=>'array', '&w_rest_index='=>'int'],
|
|
|
|
'hash_hkdf' => ['string', 'algo'=>'string', 'key'=>'string', 'length='=>'int', 'info='=>'string', 'salt='=>'string'],
|
|
|
|
'is_iterable' => ['bool', 'value'=>'mixed'],
|
2019-02-07 18:25:57 +01:00
|
|
|
'openssl_get_curve_names' => ['array<int,string>'],
|
2020-12-01 18:05:58 +01:00
|
|
|
'pcntl_async_signals' => ['bool', 'enable='=>'bool'],
|
|
|
|
'pcntl_signal_get_handler' => ['int|string', 'signal'=>'int'],
|
|
|
|
'pg_fetch_all' => ['array', 'result'=>'resource', 'mode='=>'int'],
|
2019-02-07 18:25:57 +01:00
|
|
|
'pg_last_error' => ['string', 'connection='=>'resource', 'operation='=>'int'],
|
2020-12-01 18:05:58 +01:00
|
|
|
'pg_select' => ['mixed', 'connection'=>'resource', 'table_name'=>'string', 'conditions'=>'array', 'flags='=>'int', 'mode='=>'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'],
|
|
|
|
'session_gc' => ['int'],
|
2020-12-01 18:05:58 +01:00
|
|
|
'unpack' => ['array', 'format'=>'string', 'string'=>'string', 'offset='=>'int'],
|
2019-02-07 18:25:57 +01:00
|
|
|
],
|
|
|
|
'old' => [
|
2020-12-01 18:05:58 +01:00
|
|
|
'SQLite3::createFunction' => ['bool', 'name'=>'string', 'callback'=>'callable', 'argCount='=>'int'],
|
|
|
|
'get_headers' => ['array|false', 'url'=>'string', 'associative='=>'int'],
|
|
|
|
'getopt' => ['array<string,string>|array<string,false>|array<string,array<int,string|false>>', 'short_options'=>'string', 'long_options='=>'array'],
|
2019-02-07 18:25:57 +01:00
|
|
|
'pg_fetch_all' => ['array', 'result'=>'resource'],
|
|
|
|
'pg_last_error' => ['string', 'connection='=>'resource'],
|
2020-12-01 18:05:58 +01:00
|
|
|
'pg_select' => ['mixed', 'connection'=>'resource', 'table_name'=>'string', 'conditions'=>'array', 'flags='=>'int'],
|
|
|
|
'unpack' => ['array', 'format'=>'string', 'string'=>'string'],
|
2019-02-07 18:25:57 +01:00
|
|
|
],
|
|
|
|
];
|