[phpstorm-stubs] update stubs to migration version for php 5.5

This commit is contained in:
Ivan Fedorov 2022-11-02 22:58:53 +01:00 committed by Ivan Fedorov
parent a0b2f055eb
commit fc34c9fad7
22 changed files with 5563 additions and 41 deletions

View File

@ -685,6 +685,18 @@ class PDO
*/
public const MYSQL_ATTR_SSL_CIPHER = 1011;
/**
* <p>
* Disables multi query execution in both {@see PDO::prepare()} and {@see PDO::query()} when set to FALSE.
* </p>
* <p>
* Note, this constant can only be used in the driver_options array when constructing a new database handle.
* </p>
* @since 5.5.21
* @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-multi-statements
*/
public const MYSQL_ATTR_MULTI_STATEMENTS = 1013;
#[Deprecated("Use PDO::ATTR_EMULATE_PREPARES instead")]
public const PGSQL_ASSOC = 1;

View File

@ -59,6 +59,8 @@ const CLASSES = array (
'DateInterval' => 'date/date_c.php',
'DatePeriod' => 'date/date_c.php',
'DateTime' => 'date/date_c.php',
'DateTimeImmutable' => 'date/date_c.php',
'DateTimeInterface' => 'date/date_c.php',
'DateTimeZone' => 'date/date_c.php',
'Directory' => 'standard/standard_0.php',
'DirectoryIterator' => 'SPL/SPL_c1.php',
@ -74,9 +76,16 @@ const CLASSES = array (
'Generator' => 'standard/_types.php',
'GlobIterator' => 'SPL/SPL_c1.php',
'InfiniteIterator' => 'SPL/SPL.php',
'IntlBreakIterator' => 'intl/intl.php',
'IntlCalendar' => 'intl/intl.php',
'IntlCodePointBreakIterator' => 'intl/intl.php',
'IntlDateFormatter' => 'intl/intl.php',
'IntlException' => 'intl/intl.php',
'IntlGregorianCalendar' => 'intl/intl.php',
'IntlIterator' => 'intl/intl.php',
'IntlPartsIterator' => 'intl/intl.php',
'IntlRuleBasedBreakIterator' => 'intl/intl.php',
'IntlTimeZone' => 'intl/intl.php',
'InvalidArgumentException' => 'SPL/SPL.php',
'Iterator' => 'Core/Core_c.php',
'IteratorAggregate' => 'Core/Core_c.php',
@ -142,6 +151,7 @@ const CLASSES = array (
'Serializable' => 'Core/Core_c.php',
'SessionHandler' => 'session/SessionHandler.php',
'SessionHandlerInterface' => 'session/SessionHandler.php',
'SessionIdInterface' => 'session/SessionHandler.php',
'SimpleXMLElement' => 'SimpleXML/SimpleXML.php',
'SimpleXMLIterator' => 'SimpleXML/SimpleXML.php',
'SoapClient' => 'soap/soap.php',
@ -222,6 +232,7 @@ const FUNCTIONS = array (
'apache_setenv' => 'apache/apache.php',
'array_change_key_case' => 'standard/standard_9.php',
'array_chunk' => 'standard/standard_9.php',
'array_column' => 'standard/standard_9.php',
'array_combine' => 'standard/standard_9.php',
'array_count_values' => 'standard/standard_9.php',
'array_diff' => 'standard/standard_9.php',
@ -296,6 +307,7 @@ const FUNCTIONS = array (
'bind_textdomain_codeset' => 'gettext/gettext.php',
'bindec' => 'standard/standard_3.php',
'bindtextdomain' => 'gettext/gettext.php',
'boolval' => 'standard/standard_5.php',
'bzclose' => 'bz2/bz2.php',
'bzcompress' => 'bz2/bz2.php',
'bzdecompress' => 'bz2/bz2.php',
@ -331,6 +343,8 @@ const FUNCTIONS = array (
'class_parents' => 'SPL/SPL_f.php',
'class_uses' => 'SPL/SPL_f.php',
'clearstatcache' => 'standard/standard_7.php',
'cli_get_process_title' => 'standard/basic.php',
'cli_set_process_title' => 'standard/basic.php',
'closedir' => 'standard/standard_7.php',
'closelog' => 'standard/standard_8.php',
'collator_asort' => 'intl/intl.php',
@ -377,7 +391,9 @@ const FUNCTIONS = array (
'curl_copy_handle' => 'curl/curl.php',
'curl_errno' => 'curl/curl.php',
'curl_error' => 'curl/curl.php',
'curl_escape' => 'curl/curl.php',
'curl_exec' => 'curl/curl.php',
'curl_file_create' => 'curl/curl.php',
'curl_getinfo' => 'curl/curl.php',
'curl_init' => 'curl/curl.php',
'curl_multi_add_handle' => 'curl/curl.php',
@ -388,14 +404,24 @@ const FUNCTIONS = array (
'curl_multi_init' => 'curl/curl.php',
'curl_multi_remove_handle' => 'curl/curl.php',
'curl_multi_select' => 'curl/curl.php',
'curl_multi_setopt' => 'curl/curl.php',
'curl_multi_strerror' => 'curl/curl.php',
'curl_pause' => 'curl/curl.php',
'curl_reset' => 'curl/curl.php',
'curl_setopt' => 'curl/curl.php',
'curl_setopt_array' => 'curl/curl.php',
'curl_share_close' => 'curl/curl.php',
'curl_share_init' => 'curl/curl.php',
'curl_share_setopt' => 'curl/curl.php',
'curl_strerror' => 'curl/curl.php',
'curl_unescape' => 'curl/curl.php',
'curl_version' => 'curl/curl.php',
'current' => 'standard/standard_8.php',
'date' => 'date/date.php',
'date_add' => 'date/date.php',
'date_create' => 'date/date.php',
'date_create_from_format' => 'date/date.php',
'date_create_immutable' => 'date/date.php',
'date_create_immutable_from_format' => 'date/date.php',
'date_date_set' => 'date/date.php',
'date_default_timezone_get' => 'date/date.php',
@ -421,6 +447,7 @@ const FUNCTIONS = array (
'date_timezone_set' => 'date/date.php',
'datefmt_create' => 'intl/intl.php',
'datefmt_format' => 'intl/intl.php',
'datefmt_format_object' => 'intl/intl.php',
'datefmt_get_calendar' => 'intl/intl.php',
'datefmt_get_calendar_object' => 'intl/intl.php',
'datefmt_get_datetype' => 'intl/intl.php',
@ -429,6 +456,7 @@ const FUNCTIONS = array (
'datefmt_get_locale' => 'intl/intl.php',
'datefmt_get_pattern' => 'intl/intl.php',
'datefmt_get_timetype' => 'intl/intl.php',
'datefmt_get_timezone' => 'intl/intl.php',
'datefmt_get_timezone_id' => 'intl/intl.php',
'datefmt_is_lenient' => 'intl/intl.php',
'datefmt_localtime' => 'intl/intl.php',
@ -436,6 +464,7 @@ const FUNCTIONS = array (
'datefmt_set_calendar' => 'intl/intl.php',
'datefmt_set_lenient' => 'intl/intl.php',
'datefmt_set_pattern' => 'intl/intl.php',
'datefmt_set_timezone' => 'intl/intl.php',
'datefmt_set_timezone_id' => 'intl/intl.php',
'dba_close' => 'dba/dba.php',
'dba_delete' => 'dba/dba.php',
@ -806,6 +835,7 @@ const FUNCTIONS = array (
'hash_hmac' => 'hash/hash.php',
'hash_hmac_file' => 'hash/hash.php',
'hash_init' => 'hash/hash.php',
'hash_pbkdf2' => 'hash/hash.php',
'hash_update' => 'hash/hash.php',
'hash_update_file' => 'hash/hash.php',
'hash_update_stream' => 'hash/hash.php',
@ -893,6 +923,8 @@ const FUNCTIONS = array (
'image_type_to_extension' => 'standard/standard_0.php',
'image_type_to_mime_type' => 'standard/standard_0.php',
'imageaffine' => 'gd/gd.php',
'imageaffinematrixconcat' => 'gd/gd.php',
'imageaffinematrixget' => 'gd/gd.php',
'imagealphablending' => 'gd/gd.php',
'imageantialias' => 'gd/gd.php',
'imagearc' => 'gd/gd.php',
@ -934,6 +966,8 @@ const FUNCTIONS = array (
'imagecreatefromxbm' => 'gd/gd.php',
'imagecreatefromxpm' => 'gd/gd.php',
'imagecreatetruecolor' => 'gd/gd.php',
'imagecrop' => 'gd/gd.php',
'imagecropauto' => 'gd/gd.php',
'imagedashedline' => 'gd/gd.php',
'imagedestroy' => 'gd/gd.php',
'imageellipse' => 'gd/gd.php',
@ -944,6 +978,7 @@ const FUNCTIONS = array (
'imagefilledrectangle' => 'gd/gd.php',
'imagefilltoborder' => 'gd/gd.php',
'imagefilter' => 'gd/gd.php',
'imageflip' => 'gd/gd.php',
'imagefontheight' => 'gd/gd.php',
'imagefontwidth' => 'gd/gd.php',
'imageftbbox' => 'gd/gd.php',
@ -962,6 +997,7 @@ const FUNCTIONS = array (
'imageline' => 'gd/gd.php',
'imageloadfont' => 'gd/gd.php',
'imagepalettecopy' => 'gd/gd.php',
'imagepalettetotruecolor' => 'gd/gd.php',
'imagepng' => 'gd/gd.php',
'imagepolygon' => 'gd/gd.php',
'imagepsbbox' => 'gd/gd.php',
@ -974,7 +1010,9 @@ const FUNCTIONS = array (
'imagerectangle' => 'gd/gd.php',
'imagerotate' => 'gd/gd.php',
'imagesavealpha' => 'gd/gd.php',
'imagescale' => 'gd/gd.php',
'imagesetbrush' => 'gd/gd.php',
'imagesetinterpolation' => 'gd/gd.php',
'imagesetpixel' => 'gd/gd.php',
'imagesetstyle' => 'gd/gd.php',
'imagesetthickness' => 'gd/gd.php',
@ -1079,17 +1117,89 @@ const FUNCTIONS = array (
'ini_get_all' => 'standard/standard_4.php',
'ini_restore' => 'standard/standard_4.php',
'ini_set' => 'standard/standard_4.php',
'intcal_get_maximum' => 'intl/intl.php',
'interface_exists' => 'Core/Core.php',
'intl_error_name' => 'intl/intl.php',
'intl_get' => 'intl/intl.php',
'intl_get_error_code' => 'intl/intl.php',
'intl_get_error_message' => 'intl/intl.php',
'intl_is_failure' => 'intl/intl.php',
'intlcal_add' => 'intl/intl.php',
'intlcal_after' => 'intl/intl.php',
'intlcal_before' => 'intl/intl.php',
'intlcal_clear' => 'intl/intl.php',
'intlcal_create_instance' => 'intl/intl.php',
'intlcal_equals' => 'intl/intl.php',
'intlcal_field_difference' => 'intl/intl.php',
'intlcal_from_date_time' => 'intl/intl.php',
'intlcal_get' => 'intl/intl.php',
'intlcal_get_actual_maximum' => 'intl/intl.php',
'intlcal_get_actual_minimum' => 'intl/intl.php',
'intlcal_get_available_locales' => 'intl/intl.php',
'intlcal_get_day_of_week_type' => 'intl/intl.php',
'intlcal_get_error_code' => 'intl/intl.php',
'intlcal_get_error_message' => 'intl/intl.php',
'intlcal_get_first_day_of_week' => 'intl/intl.php',
'intlcal_get_greatest_minimum' => 'intl/intl.php',
'intlcal_get_keyword_values_for_locale' => 'intl/intl.php',
'intlcal_get_least_maximum' => 'intl/intl.php',
'intlcal_get_locale' => 'intl/intl.php',
'intlcal_get_maximum' => 'intl/intl.php',
'intlcal_get_minimal_days_in_first_week' => 'intl/intl.php',
'intlcal_get_minimum' => 'intl/intl.php',
'intlcal_get_now' => 'intl/intl.php',
'intlcal_get_repeated_wall_time_option' => 'intl/intl.php',
'intlcal_get_skipped_wall_time_option' => 'intl/intl.php',
'intlcal_get_time' => 'intl/intl.php',
'intlcal_get_time_zone' => 'intl/intl.php',
'intlcal_get_type' => 'intl/intl.php',
'intlcal_get_weekend_transition' => 'intl/intl.php',
'intlcal_greates_minimum' => 'intl/intl.php',
'intlcal_in_daylight_time' => 'intl/intl.php',
'intlcal_is_equivalent_to' => 'intl/intl.php',
'intlcal_is_lenient' => 'intl/intl.php',
'intlcal_is_set' => 'intl/intl.php',
'intlcal_is_weekend' => 'intl/intl.php',
'intlcal_roll' => 'intl/intl.php',
'intlcal_set' => 'intl/intl.php',
'intlcal_set_first_day_of_week' => 'intl/intl.php',
'intlcal_set_lenient' => 'intl/intl.php',
'intlcal_set_minimal_days_in_first_week' => 'intl/intl.php',
'intlcal_set_repeated_wall_time_option' => 'intl/intl.php',
'intlcal_set_skipped_wall_time_option' => 'intl/intl.php',
'intlcal_set_time' => 'intl/intl.php',
'intlcal_set_time_zone' => 'intl/intl.php',
'intlcal_to_date_time' => 'intl/intl.php',
'intlgregcal_create_instance' => 'intl/intl.php',
'intlgregcal_get_gregorian_change' => 'intl/intl.php',
'intlgregcal_is_leap_year' => 'intl/intl.php',
'intlgregcal_set_gregorian_change' => 'intl/intl.php',
'intltz_count_equivalent_ids' => 'intl/intl.php',
'intltz_create_default' => 'intl/intl.php',
'intltz_create_enumeration' => 'intl/intl.php',
'intltz_create_time_zone' => 'intl/intl.php',
'intltz_create_time_zone_id_enumeration' => 'intl/intl.php',
'intltz_from_date_time_zone' => 'intl/intl.php',
'intltz_getGMT' => 'intl/intl.php',
'intltz_get_canonical_id' => 'intl/intl.php',
'intltz_get_display_name' => 'intl/intl.php',
'intltz_get_dst_savings' => 'intl/intl.php',
'intltz_get_equivalent_id' => 'intl/intl.php',
'intltz_get_error_code' => 'intl/intl.php',
'intltz_get_error_message' => 'intl/intl.php',
'intltz_get_gmt' => 'intl/intl.php',
'intltz_get_id' => 'intl/intl.php',
'intltz_get_id_for_windows_id' => 'intl/intl.php',
'intltz_get_offset' => 'intl/intl.php',
'intltz_get_raw_offset' => 'intl/intl.php',
'intltz_get_region' => 'intl/intl.php',
'intltz_get_tz_data_version' => 'intl/intl.php',
'intltz_get_unknown' => 'intl/intl.php',
'intltz_get_windows_id' => 'intl/intl.php',
'intltz_has_same_rules' => 'intl/intl.php',
'intltz_to_date_time_zone' => 'intl/intl.php',
'intltz_use_daylight_time' => 'intl/intl.php',
'intlz_create_default' => 'intl/intl.php',
'intval' => 'standard/standard_5.php',
'ip2long' => 'standard/standard_3.php',
'iptcembed' => 'standard/standard_0.php',
@ -1139,6 +1249,7 @@ const FUNCTIONS = array (
'json_decode' => 'json/json.php',
'json_encode' => 'json/json.php',
'json_last_error' => 'json/json.php',
'json_last_error_msg' => 'json/json.php',
'juliantojd' => 'calendar/calendar.php',
'key' => 'standard/standard_8.php',
'key_exists' => 'standard/standard_9.php',
@ -1470,6 +1581,7 @@ const FUNCTIONS = array (
'mysql_unbuffered_query' => 'mysql/mysql.php',
'mysqli_affected_rows' => 'mysqli/mysqli.php',
'mysqli_autocommit' => 'mysqli/mysqli.php',
'mysqli_begin_transaction' => 'mysqli/mysqli.php',
'mysqli_bind_param' => 'mysqli/mysqli.php',
'mysqli_bind_result' => 'mysqli/mysqli.php',
'mysqli_change_user' => 'mysqli/mysqli.php',
@ -1534,8 +1646,10 @@ const FUNCTIONS = array (
'mysqli_real_query' => 'mysqli/mysqli.php',
'mysqli_reap_async_query' => 'mysqli/mysqli.php',
'mysqli_refresh' => 'mysqli/mysqli.php',
'mysqli_release_savepoint' => 'mysqli/mysqli.php',
'mysqli_report' => 'mysqli/mysqli.php',
'mysqli_rollback' => 'mysqli/mysqli.php',
'mysqli_savepoint' => 'mysqli/mysqli.php',
'mysqli_select_db' => 'mysqli/mysqli.php',
'mysqli_send_long_data' => 'mysqli/mysqli.php',
'mysqli_set_charset' => 'mysqli/mysqli.php',
@ -1764,6 +1878,11 @@ const FUNCTIONS = array (
'odbc_statistics' => 'odbc/odbc.php',
'odbc_tableprivileges' => 'odbc/odbc.php',
'odbc_tables' => 'odbc/odbc.php',
'opcache_compile_file' => 'Zend OPcache/OPcache.php',
'opcache_get_configuration' => 'Zend OPcache/OPcache.php',
'opcache_get_status' => 'Zend OPcache/OPcache.php',
'opcache_invalidate' => 'Zend OPcache/OPcache.php',
'opcache_reset' => 'Zend OPcache/OPcache.php',
'opendir' => 'standard/standard_7.php',
'openlog' => 'standard/standard_7.php',
'openssl_cipher_iv_length' => 'openssl/openssl.php',
@ -1785,6 +1904,7 @@ const FUNCTIONS = array (
'openssl_get_privatekey' => 'openssl/openssl.php',
'openssl_get_publickey' => 'openssl/openssl.php',
'openssl_open' => 'openssl/openssl.php',
'openssl_pbkdf2' => 'openssl/openssl.php',
'openssl_pkcs12_export' => 'openssl/openssl.php',
'openssl_pkcs12_export_to_file' => 'openssl/openssl.php',
'openssl_pkcs12_read' => 'openssl/openssl.php',
@ -1823,6 +1943,10 @@ const FUNCTIONS = array (
'parse_str' => 'standard/standard_2.php',
'parse_url' => 'standard/standard_2.php',
'passthru' => 'standard/standard_2.php',
'password_get_info' => 'standard/password.php',
'password_hash' => 'standard/password.php',
'password_needs_rehash' => 'standard/password.php',
'password_verify' => 'standard/password.php',
'pathinfo' => 'standard/standard_1.php',
'pclose' => 'standard/standard_5.php',
'pcntl_alarm' => 'pcntl/pcntl.php',
@ -2196,6 +2320,7 @@ const FUNCTIONS = array (
'socket_bind' => 'sockets/sockets.php',
'socket_clear_error' => 'sockets/sockets.php',
'socket_close' => 'sockets/sockets.php',
'socket_cmsg_space' => 'sockets/sockets.php',
'socket_connect' => 'sockets/sockets.php',
'socket_create' => 'sockets/sockets.php',
'socket_create_listen' => 'sockets/sockets.php',
@ -2212,8 +2337,10 @@ const FUNCTIONS = array (
'socket_read' => 'sockets/sockets.php',
'socket_recv' => 'sockets/sockets.php',
'socket_recvfrom' => 'sockets/sockets.php',
'socket_recvmsg' => 'sockets/sockets.php',
'socket_select' => 'sockets/sockets.php',
'socket_send' => 'sockets/sockets.php',
'socket_sendmsg' => 'sockets/sockets.php',
'socket_sendto' => 'sockets/sockets.php',
'socket_set_block' => 'sockets/sockets.php',
'socket_set_blocking' => 'standard/standard_6.php',
@ -2739,34 +2866,52 @@ const CONSTANTS = array (
'CURLFTPSSL_TRY' => 'curl/curl_d.php',
'CURLGSSAPI_DELEGATION_FLAG' => 'curl/curl_d.php',
'CURLGSSAPI_DELEGATION_POLICY_FLAG' => 'curl/curl_d.php',
'CURLINFO_APPCONNECT_TIME' => 'curl/curl_d.php',
'CURLINFO_CERTINFO' => 'curl/curl_d.php',
'CURLINFO_CONDITION_UNMET' => 'curl/curl_d.php',
'CURLINFO_CONNECT_TIME' => 'curl/curl_d.php',
'CURLINFO_CONTENT_LENGTH_DOWNLOAD' => 'curl/curl_d.php',
'CURLINFO_CONTENT_LENGTH_UPLOAD' => 'curl/curl_d.php',
'CURLINFO_CONTENT_TYPE' => 'curl/curl_d.php',
'CURLINFO_COOKIELIST' => 'curl/curl_d.php',
'CURLINFO_EFFECTIVE_URL' => 'curl/curl_d.php',
'CURLINFO_FILETIME' => 'curl/curl_d.php',
'CURLINFO_FTP_ENTRY_PATH' => 'curl/curl_d.php',
'CURLINFO_HEADER_OUT' => 'curl/curl_d.php',
'CURLINFO_HEADER_SIZE' => 'curl/curl_d.php',
'CURLINFO_HTTPAUTH_AVAIL' => 'curl/curl_d.php',
'CURLINFO_HTTP_CODE' => 'curl/curl_d.php',
'CURLINFO_HTTP_CONNECTCODE' => 'curl/curl_d.php',
'CURLINFO_LASTONE' => 'curl/curl_d.php',
'CURLINFO_LOCAL_IP' => 'curl/curl_d.php',
'CURLINFO_LOCAL_PORT' => 'curl/curl_d.php',
'CURLINFO_NAMELOOKUP_TIME' => 'curl/curl_d.php',
'CURLINFO_NUM_CONNECTS' => 'curl/curl_d.php',
'CURLINFO_OS_ERRNO' => 'curl/curl_d.php',
'CURLINFO_PRETRANSFER_TIME' => 'curl/curl_d.php',
'CURLINFO_PRIMARY_IP' => 'curl/curl_d.php',
'CURLINFO_PRIMARY_PORT' => 'curl/curl_d.php',
'CURLINFO_PRIVATE' => 'curl/curl_d.php',
'CURLINFO_PROXYAUTH_AVAIL' => 'curl/curl_d.php',
'CURLINFO_REDIRECT_COUNT' => 'curl/curl_d.php',
'CURLINFO_REDIRECT_TIME' => 'curl/curl_d.php',
'CURLINFO_REDIRECT_URL' => 'curl/curl_d.php',
'CURLINFO_REQUEST_SIZE' => 'curl/curl_d.php',
'CURLINFO_RESPONSE_CODE' => 'curl/curl_d.php',
'CURLINFO_RTSP_CLIENT_CSEQ' => 'curl/curl_d.php',
'CURLINFO_RTSP_CSEQ_RECV' => 'curl/curl_d.php',
'CURLINFO_RTSP_SERVER_CSEQ' => 'curl/curl_d.php',
'CURLINFO_RTSP_SESSION_ID' => 'curl/curl_d.php',
'CURLINFO_SIZE_DOWNLOAD' => 'curl/curl_d.php',
'CURLINFO_SIZE_UPLOAD' => 'curl/curl_d.php',
'CURLINFO_SPEED_DOWNLOAD' => 'curl/curl_d.php',
'CURLINFO_SPEED_UPLOAD' => 'curl/curl_d.php',
'CURLINFO_SSL_ENGINES' => 'curl/curl_d.php',
'CURLINFO_SSL_VERIFYRESULT' => 'curl/curl_d.php',
'CURLINFO_STARTTRANSFER_TIME' => 'curl/curl_d.php',
'CURLINFO_TOTAL_TIME' => 'curl/curl_d.php',
'CURLMOPT_MAXCONNECTS' => 'curl/curl_d.php',
'CURLMOPT_PIPELINING' => 'curl/curl_d.php',
'CURLMSG_DONE' => 'curl/curl_d.php',
'CURLM_ADDED_ALREADY' => 'curl/curl_d.php',
'CURLM_BAD_EASY_HANDLE' => 'curl/curl_d.php',
@ -2776,6 +2921,9 @@ const CONSTANTS = array (
'CURLM_OK' => 'curl/curl_d.php',
'CURLM_OUT_OF_MEMORY' => 'curl/curl_d.php',
'CURLOPT_ACCEPTTIMEOUT_MS' => 'curl/curl_d.php',
'CURLOPT_ACCEPT_ENCODING' => 'curl/curl_d.php',
'CURLOPT_ADDRESS_SCOPE' => 'curl/curl_d.php',
'CURLOPT_APPEND' => 'curl/curl_d.php',
'CURLOPT_AUTOREFERER' => 'curl/curl_d.php',
'CURLOPT_BINARYTRANSFER' => 'curl/curl_d.php',
'CURLOPT_BUFFERSIZE' => 'curl/curl_d.php',
@ -2785,13 +2933,18 @@ const CONSTANTS = array (
'CURLOPT_CLOSEPOLICY' => 'curl/curl_d.php',
'CURLOPT_CONNECTTIMEOUT' => 'curl/curl_d.php',
'CURLOPT_CONNECTTIMEOUT_MS' => 'curl/curl_d.php',
'CURLOPT_CONNECT_ONLY' => 'curl/curl_d.php',
'CURLOPT_COOKIE' => 'curl/curl_d.php',
'CURLOPT_COOKIEFILE' => 'curl/curl_d.php',
'CURLOPT_COOKIEJAR' => 'curl/curl_d.php',
'CURLOPT_COOKIELIST' => 'curl/curl_d.php',
'CURLOPT_COOKIESESSION' => 'curl/curl_d.php',
'CURLOPT_CRLF' => 'curl/curl_d.php',
'CURLOPT_CRLFILE' => 'curl/curl_d.php',
'CURLOPT_CUSTOMREQUEST' => 'curl/curl_d.php',
'CURLOPT_DIRLISTONLY' => 'curl/curl_d.php',
'CURLOPT_DNS_CACHE_TIMEOUT' => 'curl/curl_d.php',
'CURLOPT_DNS_SERVERS' => 'curl/curl_d.php',
'CURLOPT_DNS_USE_GLOBAL_CACHE' => 'curl/curl_d.php',
'CURLOPT_EGDSOCKET' => 'curl/curl_d.php',
'CURLOPT_ENCODING' => 'curl/curl_d.php',
@ -2807,12 +2960,17 @@ const CONSTANTS = array (
'CURLOPT_FTPLISTONLY' => 'curl/curl_d.php',
'CURLOPT_FTPPORT' => 'curl/curl_d.php',
'CURLOPT_FTPSSLAUTH' => 'curl/curl_d.php',
'CURLOPT_FTP_ACCOUNT' => 'curl/curl_d.php',
'CURLOPT_FTP_ALTERNATIVE_TO_USER' => 'curl/curl_d.php',
'CURLOPT_FTP_CREATE_MISSING_DIRS' => 'curl/curl_d.php',
'CURLOPT_FTP_FILEMETHOD' => 'curl/curl_d.php',
'CURLOPT_FTP_RESPONSE_TIMEOUT' => 'curl/curl_d.php',
'CURLOPT_FTP_SKIP_PASV_IP' => 'curl/curl_d.php',
'CURLOPT_FTP_SSL' => 'curl/curl_d.php',
'CURLOPT_FTP_SSL_CCC' => 'curl/curl_d.php',
'CURLOPT_FTP_USE_EPRT' => 'curl/curl_d.php',
'CURLOPT_FTP_USE_EPSV' => 'curl/curl_d.php',
'CURLOPT_FTP_USE_PRET' => 'curl/curl_d.php',
'CURLOPT_GSSAPI_DELEGATION' => 'curl/curl_d.php',
'CURLOPT_HEADER' => 'curl/curl_d.php',
'CURLOPT_HEADERFUNCTION' => 'curl/curl_d.php',
@ -2821,39 +2979,58 @@ const CONSTANTS = array (
'CURLOPT_HTTPGET' => 'curl/curl_d.php',
'CURLOPT_HTTPHEADER' => 'curl/curl_d.php',
'CURLOPT_HTTPPROXYTUNNEL' => 'curl/curl_d.php',
'CURLOPT_HTTP_CONTENT_DECODING' => 'curl/curl_d.php',
'CURLOPT_HTTP_TRANSFER_DECODING' => 'curl/curl_d.php',
'CURLOPT_HTTP_VERSION' => 'curl/curl_d.php',
'CURLOPT_IGNORE_CONTENT_LENGTH' => 'curl/curl_d.php',
'CURLOPT_INFILE' => 'curl/curl_d.php',
'CURLOPT_INFILESIZE' => 'curl/curl_d.php',
'CURLOPT_INTERFACE' => 'curl/curl_d.php',
'CURLOPT_IPRESOLVE' => 'curl/curl_d.php',
'CURLOPT_ISSUERCERT' => 'curl/curl_d.php',
'CURLOPT_KEYPASSWD' => 'curl/curl_d.php',
'CURLOPT_KRB4LEVEL' => 'curl/curl_d.php',
'CURLOPT_KRBLEVEL' => 'curl/curl_d.php',
'CURLOPT_LOCALPORT' => 'curl/curl_d.php',
'CURLOPT_LOCALPORTRANGE' => 'curl/curl_d.php',
'CURLOPT_LOW_SPEED_LIMIT' => 'curl/curl_d.php',
'CURLOPT_LOW_SPEED_TIME' => 'curl/curl_d.php',
'CURLOPT_MAIL_AUTH' => 'curl/curl_d.php',
'CURLOPT_MAIL_FROM' => 'curl/curl_d.php',
'CURLOPT_MAIL_RCPT' => 'curl/curl_d.php',
'CURLOPT_MAXCONNECTS' => 'curl/curl_d.php',
'CURLOPT_MAXFILESIZE' => 'curl/curl_d.php',
'CURLOPT_MAXREDIRS' => 'curl/curl_d.php',
'CURLOPT_MAX_RECV_SPEED_LARGE' => 'curl/curl_d.php',
'CURLOPT_MAX_SEND_SPEED_LARGE' => 'curl/curl_d.php',
'CURLOPT_MUTE' => 'curl/curl_d.php',
'CURLOPT_NETRC' => 'curl/curl_d.php',
'CURLOPT_NETRC_FILE' => 'curl/curl_d.php',
'CURLOPT_NEW_DIRECTORY_PERMS' => 'curl/curl_d.php',
'CURLOPT_NEW_FILE_PERMS' => 'curl/curl_d.php',
'CURLOPT_NOBODY' => 'curl/curl_d.php',
'CURLOPT_NOPROGRESS' => 'curl/curl_d.php',
'CURLOPT_NOPROXY' => 'curl/curl_d.php',
'CURLOPT_NOSIGNAL' => 'curl/curl_d.php',
'CURLOPT_PASSWDFUNCTION' => 'curl/curl_d.php',
'CURLOPT_PASSWORD' => 'curl/curl_d.php',
'CURLOPT_PORT' => 'curl/curl_d.php',
'CURLOPT_POST' => 'curl/curl_d.php',
'CURLOPT_POSTFIELDS' => 'curl/curl_d.php',
'CURLOPT_POSTQUOTE' => 'curl/curl_d.php',
'CURLOPT_POSTREDIR' => 'curl/curl_d.php',
'CURLOPT_PREQUOTE' => 'curl/curl_d.php',
'CURLOPT_PRIVATE' => 'curl/curl_d.php',
'CURLOPT_PROGRESSFUNCTION' => 'curl/curl_d.php',
'CURLOPT_PROTOCOLS' => 'curl/curl_d.php',
'CURLOPT_PROXY' => 'curl/curl_d.php',
'CURLOPT_PROXYAUTH' => 'curl/curl_d.php',
'CURLOPT_PROXYPASSWORD' => 'curl/curl_d.php',
'CURLOPT_PROXYPORT' => 'curl/curl_d.php',
'CURLOPT_PROXYTYPE' => 'curl/curl_d.php',
'CURLOPT_PROXYUSERNAME' => 'curl/curl_d.php',
'CURLOPT_PROXYUSERPWD' => 'curl/curl_d.php',
'CURLOPT_PROXY_TRANSFER_MODE' => 'curl/curl_d.php',
'CURLOPT_PUT' => 'curl/curl_d.php',
'CURLOPT_QUOTE' => 'curl/curl_d.php',
'CURLOPT_RANDOM_FILE' => 'curl/curl_d.php',
@ -2862,10 +3039,22 @@ const CONSTANTS = array (
'CURLOPT_READFUNCTION' => 'curl/curl_d.php',
'CURLOPT_REDIR_PROTOCOLS' => 'curl/curl_d.php',
'CURLOPT_REFERER' => 'curl/curl_d.php',
'CURLOPT_RESOLVE' => 'curl/curl_d.php',
'CURLOPT_RESUME_FROM' => 'curl/curl_d.php',
'CURLOPT_RETURNTRANSFER' => 'curl/curl_d.php',
'CURLOPT_RTSP_CLIENT_CSEQ' => 'curl/curl_d.php',
'CURLOPT_RTSP_REQUEST' => 'curl/curl_d.php',
'CURLOPT_RTSP_SERVER_CSEQ' => 'curl/curl_d.php',
'CURLOPT_RTSP_SESSION_ID' => 'curl/curl_d.php',
'CURLOPT_RTSP_STREAM_URI' => 'curl/curl_d.php',
'CURLOPT_RTSP_TRANSPORT' => 'curl/curl_d.php',
'CURLOPT_SAFE_UPLOAD' => 'curl/curl_d.php',
'CURLOPT_SHARE' => 'curl/curl_d.php',
'CURLOPT_SOCKS5_GSSAPI_NEC' => 'curl/curl_d.php',
'CURLOPT_SOCKS5_GSSAPI_SERVICE' => 'curl/curl_d.php',
'CURLOPT_SSH_AUTH_TYPES' => 'curl/curl_d.php',
'CURLOPT_SSH_HOST_PUBLIC_KEY_MD5' => 'curl/curl_d.php',
'CURLOPT_SSH_KNOWNHOSTS' => 'curl/curl_d.php',
'CURLOPT_SSH_PRIVATE_KEYFILE' => 'curl/curl_d.php',
'CURLOPT_SSH_PUBLIC_KEYFILE' => 'curl/curl_d.php',
'CURLOPT_SSLCERT' => 'curl/curl_d.php',
@ -2878,11 +3067,16 @@ const CONSTANTS = array (
'CURLOPT_SSLKEYTYPE' => 'curl/curl_d.php',
'CURLOPT_SSLVERSION' => 'curl/curl_d.php',
'CURLOPT_SSL_CIPHER_LIST' => 'curl/curl_d.php',
'CURLOPT_SSL_SESSIONID_CACHE' => 'curl/curl_d.php',
'CURLOPT_SSL_VERIFYHOST' => 'curl/curl_d.php',
'CURLOPT_SSL_VERIFYPEER' => 'curl/curl_d.php',
'CURLOPT_STDERR' => 'curl/curl_d.php',
'CURLOPT_TCP_KEEPALIVE' => 'curl/curl_d.php',
'CURLOPT_TCP_KEEPIDLE' => 'curl/curl_d.php',
'CURLOPT_TCP_KEEPINTVL' => 'curl/curl_d.php',
'CURLOPT_TCP_NODELAY' => 'curl/curl_d.php',
'CURLOPT_TELNETOPTIONS' => 'curl/curl_d.php',
'CURLOPT_TFTP_BLKSIZE' => 'curl/curl_d.php',
'CURLOPT_TIMECONDITION' => 'curl/curl_d.php',
'CURLOPT_TIMEOUT' => 'curl/curl_d.php',
'CURLOPT_TIMEOUT_MS' => 'curl/curl_d.php',
@ -2891,15 +3085,24 @@ const CONSTANTS = array (
'CURLOPT_TLSAUTH_TYPE' => 'curl/curl_d.php',
'CURLOPT_TLSAUTH_USERNAME' => 'curl/curl_d.php',
'CURLOPT_TRANSFERTEXT' => 'curl/curl_d.php',
'CURLOPT_TRANSFER_ENCODING' => 'curl/curl_d.php',
'CURLOPT_UNRESTRICTED_AUTH' => 'curl/curl_d.php',
'CURLOPT_UPLOAD' => 'curl/curl_d.php',
'CURLOPT_URL' => 'curl/curl_d.php',
'CURLOPT_USERAGENT' => 'curl/curl_d.php',
'CURLOPT_USERNAME' => 'curl/curl_d.php',
'CURLOPT_USERPWD' => 'curl/curl_d.php',
'CURLOPT_USE_SSL' => 'curl/curl_d.php',
'CURLOPT_VERBOSE' => 'curl/curl_d.php',
'CURLOPT_WILDCARDMATCH' => 'curl/curl_d.php',
'CURLOPT_WRITEFUNCTION' => 'curl/curl_d.php',
'CURLOPT_WRITEHEADER' => 'curl/curl_d.php',
'CURLPAUSE_ALL' => 'curl/curl_d.php',
'CURLPAUSE_CONT' => 'curl/curl_d.php',
'CURLPAUSE_RECV' => 'curl/curl_d.php',
'CURLPAUSE_RECV_CONT' => 'curl/curl_d.php',
'CURLPAUSE_SEND' => 'curl/curl_d.php',
'CURLPAUSE_SEND_CONT' => 'curl/curl_d.php',
'CURLPROTO_ALL' => 'curl/curl_d.php',
'CURLPROTO_DICT' => 'curl/curl_d.php',
'CURLPROTO_FILE' => 'curl/curl_d.php',
@ -2929,7 +3132,9 @@ const CONSTANTS = array (
'CURLPROTO_TFTP' => 'curl/curl_d.php',
'CURLPROXY_HTTP' => 'curl/curl_d.php',
'CURLPROXY_SOCKS4' => 'curl/curl_d.php',
'CURLPROXY_SOCKS4A' => 'curl/curl_d.php',
'CURLPROXY_SOCKS5' => 'curl/curl_d.php',
'CURLPROXY_SOCKS5_HOSTNAME' => 'curl/curl_d.php',
'CURLSHOPT_NONE' => 'curl/curl_d.php',
'CURLSHOPT_SHARE' => 'curl/curl_d.php',
'CURLSHOPT_UNSHARE' => 'curl/curl_d.php',
@ -2982,6 +3187,7 @@ const CONSTANTS = array (
'CURL_TIMECOND_LASTMOD' => 'curl/curl_d.php',
'CURL_TIMECOND_NONE' => 'curl/curl_d.php',
'CURL_TLSAUTH_SRP' => 'curl/curl_d.php',
'CURL_VERSION_HTTP2' => 'curl/curl_d.php',
'CURL_VERSION_IPV6' => 'curl/curl_d.php',
'CURL_VERSION_KERBEROS4' => 'curl/curl_d.php',
'CURL_VERSION_LIBZ' => 'curl/curl_d.php',
@ -3343,16 +3549,36 @@ const CONSTANTS = array (
'IMAP_OPENTIMEOUT' => 'imap/imap.php',
'IMAP_READTIMEOUT' => 'imap/imap.php',
'IMAP_WRITETIMEOUT' => 'imap/imap.php',
'IMG_AFFINE_ROTATE' => 'gd/gd.php',
'IMG_AFFINE_SCALE' => 'gd/gd.php',
'IMG_AFFINE_SHEAR_HORIZONTAL' => 'gd/gd.php',
'IMG_AFFINE_SHEAR_VERTICAL' => 'gd/gd.php',
'IMG_AFFINE_TRANSLATE' => 'gd/gd.php',
'IMG_ARC_CHORD' => 'gd/gd.php',
'IMG_ARC_EDGED' => 'gd/gd.php',
'IMG_ARC_NOFILL' => 'gd/gd.php',
'IMG_ARC_PIE' => 'gd/gd.php',
'IMG_ARC_ROUNDED' => 'gd/gd.php',
'IMG_BELL' => 'gd/gd.php',
'IMG_BESSEL' => 'gd/gd.php',
'IMG_BICUBIC' => 'gd/gd.php',
'IMG_BICUBIC_FIXED' => 'gd/gd.php',
'IMG_BILINEAR_FIXED' => 'gd/gd.php',
'IMG_BLACKMAN' => 'gd/gd.php',
'IMG_BOX' => 'gd/gd.php',
'IMG_BSPLINE' => 'gd/gd.php',
'IMG_CATMULLROM' => 'gd/gd.php',
'IMG_COLOR_BRUSHED' => 'gd/gd.php',
'IMG_COLOR_STYLED' => 'gd/gd.php',
'IMG_COLOR_STYLEDBRUSHED' => 'gd/gd.php',
'IMG_COLOR_TILED' => 'gd/gd.php',
'IMG_COLOR_TRANSPARENT' => 'gd/gd.php',
'IMG_CROP_BLACK' => 'gd/gd.php',
'IMG_CROP_DEFAULT' => 'gd/gd.php',
'IMG_CROP_SIDES' => 'gd/gd.php',
'IMG_CROP_THRESHOLD' => 'gd/gd.php',
'IMG_CROP_TRANSPARENT' => 'gd/gd.php',
'IMG_CROP_WHITE' => 'gd/gd.php',
'IMG_EFFECT_ALPHABLEND' => 'gd/gd.php',
'IMG_EFFECT_NORMAL' => 'gd/gd.php',
'IMG_EFFECT_OVERLAY' => 'gd/gd.php',
@ -3369,14 +3595,29 @@ const CONSTANTS = array (
'IMG_FILTER_PIXELATE' => 'gd/gd.php',
'IMG_FILTER_SELECTIVE_BLUR' => 'gd/gd.php',
'IMG_FILTER_SMOOTH' => 'gd/gd.php',
'IMG_FLIP_BOTH' => 'gd/gd.php',
'IMG_FLIP_HORIZONTAL' => 'gd/gd.php',
'IMG_FLIP_VERTICAL' => 'gd/gd.php',
'IMG_GAUSSIAN' => 'gd/gd.php',
'IMG_GD2_COMPRESSED' => 'gd/gd.php',
'IMG_GD2_RAW' => 'gd/gd.php',
'IMG_GENERALIZED_CUBIC' => 'gd/gd.php',
'IMG_GIF' => 'gd/gd.php',
'IMG_HAMMING' => 'gd/gd.php',
'IMG_HANNING' => 'gd/gd.php',
'IMG_HERMITE' => 'gd/gd.php',
'IMG_JPEG' => 'gd/gd.php',
'IMG_JPG' => 'gd/gd.php',
'IMG_MITCHELL' => 'gd/gd.php',
'IMG_NEAREST_NEIGHBOUR' => 'gd/gd.php',
'IMG_PNG' => 'gd/gd.php',
'IMG_POWER' => 'gd/gd.php',
'IMG_QUADRATIC' => 'gd/gd.php',
'IMG_SINC' => 'gd/gd.php',
'IMG_TGA' => 'gd/gd.php',
'IMG_TRIANGLE' => 'gd/gd.php',
'IMG_WBMP' => 'gd/gd.php',
'IMG_WEIGHTED4' => 'gd/gd.php',
'IMG_XPM' => 'gd/gd.php',
'INF' => 'standard/standard_defines.php',
'INFO_ALL' => 'standard/standard_defines.php',
@ -4303,6 +4544,10 @@ const CONSTANTS = array (
'SOAP_PERSISTENCE_SESSION' => 'soap/soap.php',
'SOAP_RPC' => 'soap/soap.php',
'SOAP_SINGLE_ELEMENT_ARRAYS' => 'soap/soap.php',
'SOAP_SSL_METHOD_SSLv2' => 'soap/soap.php',
'SOAP_SSL_METHOD_SSLv23' => 'soap/soap.php',
'SOAP_SSL_METHOD_SSLv3' => 'soap/soap.php',
'SOAP_SSL_METHOD_TLS' => 'soap/soap.php',
'SOAP_USE_XSI_ARRAY_TYPE' => 'soap/soap.php',
'SOAP_WAIT_ONE_WAY_CALLS' => 'soap/soap.php',
'SOCKET_E2BIG' => 'sockets/sockets.php',

View File

@ -67,6 +67,17 @@ abstract class ReflectionFunctionAbstract implements Reflector
#[TentativeType]
public function isUserDefined(): bool {}
/**
* Returns whether this function is a generator
*
* @link https://php.net/manual/en/reflectionfunctionabstract.isgenerator.php
* @return bool {@see true} if the function is generator, otherwise {@see false}
* @since 5.5
*/
#[Pure]
#[TentativeType]
public function isGenerator(): bool {}
/**
* Returns this pointer bound to closure
*

View File

@ -698,6 +698,18 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
#[TentativeType]
public function fgets(): string {}
/**
* Read from file
* @link https://php.net/manual/en/splfileobject.fread.php
* @param int $length <p>
* The number of bytes to read.
* </p>
* @return string|false returns the string read from the file or FALSE on failure.
* @since 5.5.11
*/
#[TentativeType]
public function fread($length): string|false {}
/**
* Gets line from file and parse as CSV fields
* @link https://php.net/manual/en/splfileobject.fgetcsv.php
@ -1045,6 +1057,17 @@ class SplDoublyLinkedList implements Iterator, Countable, ArrayAccess, Serializa
public const IT_MODE_DELETE = 1;
public const IT_MODE_KEEP = 0;
/**
* Add/insert a new value at the specified index
* @param mixed $index The index where the new value is to be inserted.
* @param mixed $value The new value for the index.
* @return void
* @link https://php.net/spldoublylinkedlist.add
* @since 5.5
*/
#[TentativeType]
public function add($index, $value): void {}
/**
* Pops a node from the end of the doubly linked list
* @link https://php.net/manual/en/spldoublylinkedlist.pop.php

60
Zend OPcache/OPcache.php Normal file
View File

@ -0,0 +1,60 @@
<?php
use JetBrains\PhpStorm\ArrayShape;
/**
* (PHP 5 >= 5.5.5, PECL ZendOpcache >= 7.0.2 )<br/>
* Compiles and caches a PHP script without executing it
* @link https://secure.php.net/manual/en/function.opcache-compile-file.php
* @param string $filename The path to the PHP script to be compiled.
* @return bool
* Returns <b>TRUE</b> if the opcode cache for <em>script</em> was
* invalidated or if there was nothing to invalidate, or <b>FALSE</b> if the opcode
* cache is disabled.
* @since 5.5
*/
function opcache_compile_file(string $filename): bool {}
/**
* (PHP 5 >= 5.5.0, PECL ZendOpcache >= 7.0.0 )<br/>
* Invalidates a cached script
* @link https://secure.php.net/manual/en/function.opcache-invalidate.php
* @param string $filename <p>The path to the script being invalidated.</p>
* @param bool $force [optional] <p> If set to <b>TRUE</b>, the script will be invalidated regardless of whether invalidation is necessary.</p>
* @return bool
* Returns <b>TRUE</b> if the opcode cache for <em>script</em> was
* invalidated or if there was nothing to invalidate, or <b>FALSE</b> if the opcode
* cache is disabled.
* @since 5.5
*/
function opcache_invalidate(string $filename, bool $force = false): bool {}
/**
* (PHP 5 >= 5.5.0, PECL ZendOpcache >= 7.0.0 )<br/>
* Resets the contents of the opcode cache
* @link https://secure.php.net/manual/en/function.opcache-reset.php
* @return bool Returns <b>TRUE</b> if the opcode cache was reset, or <b>FALSE</b> if the opcode cache is disabled.
* @since 5.5
*/
function opcache_reset(): bool {}
/**
* (PHP 5 >= 5.5.5, PECL ZendOpcache >= 7.0.2 )<br/>
* Get status information about the cache
* @link https://php.net/manual/en/function.opcache-get-status.php
* @param bool $include_scripts <p>Include script specific state information</p>
* @return array|false <p>Returns an array of information, optionally containing script specific state information</p>
* @since 5.5
*/
#[ArrayShape(["opcache_enabled" => "bool", "file_cache" => "string", "file_cache_only" => "bool", "cache_full" => "bool", "restart_pending" => "bool", "restart_in_progress" => "bool", "memory_usage" => "array", "interned_strings_usage" => "array", "opcache_statistics" => "array", "preload_statistics" => "array", "scripts" => "array"])]
function opcache_get_status(bool $include_scripts = true): array|false {}
/**
* (PHP 5 >= 5.5.5, PECL ZendOpcache >= 7.0.2 )<br/>
* Get configuration information about the cache
* @link https://php.net/manual/en/function.opcache-get-configuration.php
* @return array|false <p>Returns an array of information, including ini, blacklist and version</p>
* @since 5.5
*/
#[ArrayShape(["directives" => "array", "version" => "string[]", "blacklist" => "array"])]
function opcache_get_configuration(): array|false {}

View File

@ -1,6 +1,7 @@
<?php
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
/**
@ -2048,6 +2049,134 @@ function curl_setopt($handle, int $option, mixed $value): bool {}
*/
function curl_setopt_array($handle, array $options): bool {}
/**
* (PHP 5 >=5.5.0)<br/>
* Close a cURL share handle
* @link https://secure.php.net/manual/en/function.curl-share-close.php
* @param CurlShareHandle|resource $share_handle <p>
* A cURL share handle returned by {@link https://secure.php.net/manual/en/function.curl-share-init.php curl_share_init()}
* </p>
* @return void
* @since 5.5
*/
function curl_share_close($share_handle): void {}
/**
* (PHP 5 >=5.5.0)<br/>
* Initialize a cURL share handle
* @link https://secure.php.net/manual/en/function.curl-share-init.php
* @return resource|CurlShareHandle Returns resource of type "cURL Share Handle".
* @since 5.5
*/
function curl_share_init() {}
/**
* (PHP 5 >=5.5.0)<br/>
* Set an option for a cURL share handle.
* @link https://secure.php.net/manual/en/function.curl-share-setopt.php
* @param CurlShareHandle|resource $share_handle <p>
* A cURL share handle returned by {@link https://secure.php.net/manual/en/function.curl-share-init.php curl_share_init()}.
* </p>
* @param int $option <table>
*
* <thead>
* <tr>
* <th>Option</th>
* <th>Description</th>
* </tr>
* </thead>
*
* <tbody>
* <tr>
* <td style="vertical-align: top;"><b>CURLSHOPT_SHARE</b></td>
* <td style="vertical-align: top;">
* Specifies a type of data that should be shared.
* </td>
* </tr>
*
* <tr>
* <td style="vertical-align: top;"><b>CURLSHOPT_UNSHARE</b></td>
* <td style="vertical-align: top;">
* Specifies a type of data that will be no longer shared.
* </td>
* </tr>
*
* </tbody>
*
* </table>
* @param string $value <p><table>
*
* <thead>
* <tr>
* <th>Value</th>
* <th>Description</th>
* </tr>
* </thead>
*
* <tbody class="tbody">
* <tr>
* <td style="vertical-align: top;"><b>CURL_LOCK_DATA_COOKIE</b></td>
* <td style="vertical-align: top;">
* Shares cookie data.
* </td>
* </tr>
*
* <tr>
* <td style="vertical-align: top;"><b>CURL_LOCK_DATA_DNS</b></td>
* <td style="vertical-align: top;">
* Shares DNS cache. Note that when you use cURL multi handles,
* all handles added to the same multi handle will share DNS cache
* by default.
* </td>
* </tr>
*
* <tr>
* <td style="vertical-align: top;"><b>CURL_LOCK_DATA_SSL_SESSION</b></td>
* <td style="vertical-align: top;">
* Shares SSL session IDs, reducing the time spent on the SSL
* handshake when reconnecting to the same server. Note that SSL
* session IDs are reused within the same handle by default.
* </td>
* </tr>
*
* </tbody>
*
* </table>
* </p>
* @return bool
* Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
* @since 5.5
*/
function curl_share_setopt($share_handle, int $option, mixed $value): bool {}
/**
* (PHP 5 >=5.5.0)<br/>
* Return string describing the given error code
* @link https://secure.php.net/manual/en/function.curl-strerror.php
* @param int $error_code <p>
* One of the {@link https://curl.haxx.se/libcurl/c/libcurl-errors.html &nbsp;cURL error codes} constants.
* </p>
* @return string|null Returns error description or <b>NULL</b> for invalid error code.
* @since 5.5
*/
#[Pure]
function curl_strerror(int $error_code): ?string {}
/**
* (PHP 5 >=5.5.0)<br/>
* Decodes the given URL encoded string
* @link https://secure.php.net/manual/en/function.curl-unescape.php
* @param resource $handle <p>A cURL handle returned by
* {@link https://secure.php.net/manual/en/function.curl-init.php curl_init()}.</p>
* @param string $string <p>
* The URL encoded string to be decoded.
* </p>
* @return string|false Returns decoded string or FALSE on failure.
* @since 5.5
*/
#[Pure]
function curl_unescape($handle, string $string): string|false {}
/**
* Perform a cURL session
* @link https://php.net/manual/en/function.curl-exec.php
@ -2340,6 +2469,34 @@ function curl_error($handle): string {}
#[Pure(true)]
function curl_errno($handle): int {}
/**
* URL encodes the given string
* @link https://secure.php.net/manual/en/function.curl-escape.php
* @param resource $handle <p>
* A cURL handle returned by
* {@link https://secure.php.net/manual/en/function.curl-init.php curl_init()}.</p>
* @param string $string <p>
* The string to be encoded.</p>
* @return string|false Returns escaped string or FALSE on failure.
* @since 5.5
*/
#[Pure]
function curl_escape($handle, string $string): string|false {}
/**
* (PHP 5 >= 5.5.0) <br/>
* Create a CURLFile object
* @link https://secure.php.net/manual/en/curlfile.construct.php
* @param string $filename <p> Path to the file which will be uploaded.</p>
* @param string|null $mime_type <p>Mimetype of the file.</p>
* @param string|null $posted_filename <p>Name of the file.</p>
* @return CURLFile
* Returns a {@link https://secure.php.net/manual/en/class.curlfile.php CURLFile} object.
* @since 5.5
*/
#[Pure]
function curl_file_create(string $filename, ?string $mime_type = null, ?string $posted_filename = null): CURLFile {}
/**
* Close a cURL session
* @link https://php.net/manual/en/function.curl-close.php
@ -2386,6 +2543,93 @@ function curl_multi_remove_handle($multi_handle, $handle): int|false {}
*/
function curl_multi_select($multi_handle, float $timeout = 1.0): int {}
/**
* (PHP 5 >=5.5.0)<br/>
* Set an option for the cURL multi handle
* @link https://secure.php.net/manual/en/function.curl-multi-setopt.php
* @param resource $multi_handle
* @param int $option <p>
* One of the <b>CURLMOPT_*</b> constants.
* </p>
* @param mixed $value <p>
* The value to be set on <em>option</em>.
* </p>
* <p>
* <em>value</em> should be an {@link https://php.net/manual/en/language.types.integer.php int} for the
* following values of the <em>option</em> parameter:
* </p><table>
*
* <thead>
* <tr>
* <th>Option</th>
* <th>Set <em><code class="parameter">value</code></em> to</th>
* </tr>
* </thead>
*
* <tbody>
* <tr>
* <td><b>CURLMOPT_PIPELINING</b></td>
* <td style="vertical-align: top;">
* Pass 1 to enable or 0 to disable. Enabling pipelining on a multi
* handle will make it attempt to perform HTTP Pipelining as far as
* possible for transfers using this handle. This means that if you add
* a second request that can use an already existing connection, the
* second request will be "piped" on the same connection rather than
* being executed in parallel.
* </td>
* </tr>
*
* <tr>
* <td style="vertical-align: top;"><b>CURLMOPT_MAXCONNECTS</b></td>
* <td style="vertical-align: top;">
* Pass a number that will be used as the maximum amount of
* simultaneously open connections that libcurl may cache. Default is
* 10. When the cache is full, curl closes the oldest one in the cache
* to prevent the number of open connections from increasing.
* </td>
* </tr>
* </tbody>
* </table>
* @return bool Returns TRUE on success or FALSE on failure.
* @since 5.5
*/
function curl_multi_setopt($multi_handle, int $option, mixed $value): bool {}
/**
* (PHP 5 >=5.5.0)<br/>
* Return string describing error code
* @link https://secure.php.net/manual/en/function.curl-multi-strerror.php
* @param int $error_code <p>
* One of the {@link https://curl.haxx.se/libcurl/c/libcurl-errors.html CURLM error codes} constants.
* </p>
* @return string|null Returns error string for valid error code, NULL otherwise.
* @since 5.5
*/
function curl_multi_strerror(int $error_code): ?string {}
/**
* (PHP 5 >=5.5.0)<br/>
* Pause and unpause a connection
* @link https://secure.php.net/manual/en/function.curl-pause.php
* @param resource $handle
* <p>A cURL handle returned by {@link https://secure.php.net/manual/en/function.curl-init.php curl_init()}.</p>
* @param int $flags <p>One of <b>CURLPAUSE_*</b> constants.</p>
* @return int Returns an error code (<b>CURLE_OK</b> for no error).
* @since 5.5
*/
function curl_pause($handle, int $flags): int {}
/**
* (PHP 5 >=5.5.0)<br/>
* Reset all options of a libcurl session handle
* @link https://secure.php.net/manual/en/function.curl-reset.php
* @param resource $handle <p>A cURL handle returned by
* {@link https://secure.php.net/manual/en/function.curl-init.php curl_init()}.</p>
* @return void
* @since 5.5
*/
function curl_reset($handle): void {}
/**
* Run the sub-connections of the current cURL handle
* @link https://php.net/manual/en/function.curl-multi-exec.php
@ -2437,4 +2681,69 @@ class CURLFile
public $name;
public $mime;
public $postname;
/**
* Create a CURLFile object
* @link https://secure.php.net/manual/en/curlfile.construct.php
* @param string $filename <p>Path to the file which will be uploaded.</p>
* @param string $mime_type [optional] <p>Mimetype of the file.</p>
* @param string $posted_filename [optional] <p>Name of the file.</p>
* @since 5.5
*/
public function __construct($filename, $mime_type = '', $posted_filename = '') {}
/**
* Get file name
* @link https://secure.php.net/manual/en/curlfile.getfilename.php
* @return string Returns file name.
* @since 5.5
*/
#[Pure]
#[TentativeType]
public function getFilename(): string {}
/**
* Get MIME type
* @link https://secure.php.net/manual/en/curlfile.getmimetype.php
* @return string Returns MIME type.
* @since 5.5
*/
#[Pure]
#[TentativeType]
public function getMimeType(): string {}
/**
* Get file name for POST
* @link https://secure.php.net/manual/en/curlfile.getpostfilename.php
* @return string Returns file name for POST.
* @since 5.5
*/
#[Pure]
#[TentativeType]
public function getPostFilename(): string {}
/**
* Set MIME type
* @link https://secure.php.net/manual/en/curlfile.setmimetype.php
* @param string $mime_type
* @since 5.5
*/
#[TentativeType]
public function setMimeType($mime_type): void {}
/**
* Set file name for POST
* https://secure.php.net/manual/en/curlfile.setpostfilename.php
* @param string $posted_filename
* @since 5.5
*/
#[TentativeType]
public function setPostFilename($posted_filename): void {}
/**
* @link https://secure.php.net/manual/en/curlfile.wakeup.php
* Unserialization handler
* @since 5.5
*/
public function __wakeup() {}
}

View File

@ -11,6 +11,15 @@
*/
define('CURLOPT_SSH_AUTH_TYPES', 151);
/**
* <b>TRUE</b> tells the library to perform all the required proxy authentication
* and connection setup, but no data transfer. This option is implemented for
* HTTP, SMTP and POP3.
* @since 5.5
* @link https://php.net/manual/en/function.curl-setopt.php
*/
define('CURLOPT_CONNECT_ONLY', 141);
/**
* With the <b>CURLOPT_FOLLOWLOCATION</b> option disabled:
* redirect URL found in the last transaction, that should be requested manually next.
@ -49,6 +58,13 @@ define('CURLINFO_LOCAL_IP', 1048617);
*/
define('CURLINFO_LOCAL_PORT', 2097194);
/**
* A result of {@see curl_share_init()}. Makes the cURL handle to use the data from the shared handle.
* @link https://php.net/manual/en/function.curl-setopt.php
* @since 5.5
*/
define('CURLOPT_SHARE', 10100);
/**
* Allows an application to select what kind of IP addresses to use when resolving host names.
* This is only interesting when using host names that resolve addresses using more than one version of IP,
@ -959,6 +975,118 @@ define('CURLOPT_FTP_CREATE_MISSING_DIRS', 110);
*/
define('CURLOPT_PRIVATE', 10103);
/**
* The last response code
* @link https://php.net/manual/en/function.curl-getinfo.php
* @since 5.5
*/
define('CURLINFO_RESPONSE_CODE', 2097154);
/**
* The CONNECT response code
* @link https://php.net/manual/en/function.curl-getinfo.php
* @since 5.5
*/
define('CURLINFO_HTTP_CONNECTCODE', 2097174);
/**
* Bitmask indicating the authentication method(s) available according to the previous response
* @link https://php.net/manual/en/function.curl-getinfo.php
* @since 5.5
*/
define('CURLINFO_HTTPAUTH_AVAIL', 2097175);
/**
* Bitmask indicating the proxy authentication method(s) available according to the previous response
* @link https://php.net/manual/en/function.curl-getinfo.php
* @since 5.5
*/
define('CURLINFO_PROXYAUTH_AVAIL', 2097176);
/**
* Errno from a connect failure. The number is OS and system specific.
* @link https://php.net/manual/en/function.curl-getinfo.php
* @since 5.5
*/
define('CURLINFO_OS_ERRNO', 2097177);
/**
* Number of connections curl had to create to achieve the previous transfer
* @link https://php.net/manual/en/function.curl-getinfo.php
* @since 5.5
*/
define('CURLINFO_NUM_CONNECTS', 2097178);
/**
* OpenSSL crypto-engines supported
* @link https://php.net/manual/en/function.curl-getinfo.php
* @since 5.5
*/
define('CURLINFO_SSL_ENGINES', 4194331);
/**
* All known cookies
* @link https://php.net/manual/en/function.curl-getinfo.php
* @since 5.5
*/
define('CURLINFO_COOKIELIST', 4194332);
/**
* Entry path in FTP server
* @link https://php.net/manual/en/function.curl-getinfo.php
* @since 5.5
*/
define('CURLINFO_FTP_ENTRY_PATH', 1048606);
/**
* Time in seconds it took from the start until the SSL/SSH connect/handshake to the remote host was completed
* @link https://php.net/manual/en/function.curl-getinfo.php
* @since 5.5
*/
define('CURLINFO_APPCONNECT_TIME', 3145761);
/**
* TLS certificate chain
* @link https://php.net/manual/en/function.curl-getinfo.php
* @since 5.5
*/
define('CURLINFO_CERTINFO', 4194338);
/**
* Info on unmet time conditional
* @link https://php.net/manual/en/function.curl-getinfo.php
* @since 5.5
*/
define('CURLINFO_CONDITION_UNMET', 2097187);
/**
* Next RTSP client CSeq
* @link https://php.net/manual/en/function.curl-getinfo.php
* @since 5.5
*/
define('CURLINFO_RTSP_CLIENT_CSEQ', 2097189);
/**
* Recently received CSeq
* @link https://php.net/manual/en/function.curl-getinfo.php
* @since 5.5
*/
define('CURLINFO_RTSP_CSEQ_RECV', 2097191);
/**
* Next RTSP server CSeq
* @link https://php.net/manual/en/function.curl-getinfo.php
* @since 5.5
*/
define('CURLINFO_RTSP_SERVER_CSEQ', 2097190);
/**
* RTSP session ID
* @link https://php.net/manual/en/function.curl-getinfo.php
* @since 5.5
*/
define('CURLINFO_RTSP_SESSION_ID', 1048612);
/**
* Value for the <b>CURLOPT_CLOSEPOLICY</b> option.
* @link https://www.php.net/manual/en/curl.constants.php
@ -1829,6 +1957,15 @@ define('CURLOPT_FTP_FILEMETHOD', 138);
*/
define('CURLOPT_FTP_SKIP_PASV_IP', 137);
/**
* <b>TRUE</b> to disable support for the @ prefix for uploading files in <b>CURLOPT_POSTFIELDS</b>,
* which means that values starting with @ can be safely passed as fields.
* @link https://www.php.net/manual/en/function.curl-setopt.php
* @since 5.5
* @deprecated 7.0 Use <b>CURLFile</b> for uploads instead.
*/
define('CURLOPT_SAFE_UPLOAD', -1);
/**
* Value for the <b>CURLOPT_FTP_FILEMETHOD</b> option.
* libcurl does a single CWD operation for each path part in the given URL.
@ -1931,6 +2068,30 @@ define('CURLPROTO_TFTP', 2048);
*/
define('CURLPROTO_ALL', -1);
/**
* As of cURL 7.43.0, the value is a bitmask.
* Pass 1 to enable or 0 to disable.
* Enabling pipelining on a multi handle will make it attempt to perform HTTP Pipelining as far as possible for transfers
* using this handle. This means that if you add a second request that can use an already existing connection,
* the second request will be "piped" on the same connection.
* Pass 2 to try to multiplex the new transfer over an existing HTTP/2 connection if possible.
* Pass 3 instructs cURL to ask for pipelining and multiplexing independently of each other.
* As of cURL 7.62.0, setting the pipelining bit has no effect.
* Instead of integer literals, you can also use the <b>CURLPIPE_*</b> constants if available.
* @link https://www.php.net/manual/en/function.curl-multi-setopt.php
* @since 5.5
*/
define('CURLMOPT_PIPELINING', 3);
/**
* Pass a number that will be used as the maximum amount of simultaneously open connections that libcurl may cache.
* By default the size will be enlarged to fit four times the number of handles added via {@see curl_multi_add_handle()}.
* When the cache is full, curl closes the oldest one in the cache to prevent the number of open connections from increasing.
* @link https://www.php.net/manual/en/function.curl-multi-setopt.php
* @since 5.5
*/
define('CURLMOPT_MAXCONNECTS', 6);
/**
* Specifies a type of data that should be shared.
* @link https://www.php.net/manual/en/function.curl-share-setopt.php
@ -1972,6 +2133,349 @@ define('CURL_LOCK_DATA_SSL_SESSION', 4);
*/
define('CURLOPT_KEYPASSWD', 10026);
/**
* Time allowed to wait for FTP response.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_FTP_RESPONSE_TIMEOUT.html
* @since 5.5
*/
define('CURLOPT_FTP_RESPONSE_TIMEOUT', 112);
/**
* Provide a custom address for a specific host and port pair.
* An array of hostname, port, and IP address strings, each element separated by a colon.
* In the format: array("<em>example.com:80:127.0.0.1</em>")
* @link https://www.php.net/manual/en/function.curl-setopt.php
* @since 5.5
*/
define('CURLOPT_RESOLVE', 10203);
/**
* Enable appending to the remote file
* @link https://curl.haxx.se/libcurl/c/CURLOPT_APPEND.html
* @since 5.5
*/
define('CURLOPT_APPEND', 50);
/**
* Ask for names only in a directory listing
* @link https://curl.haxx.se/libcurl/c/CURLOPT_DIRLISTONLY.html
* @since 5.5
*/
define('CURLOPT_DIRLISTONLY', 48);
/**
* Permissions for remotely created directories
* Pass a long as a parameter, containing the value of the permissions that will be assigned to newly created directories on the remote server.
* The default value is 0755, but any valid value can be used.
* The only protocols that can use this are <em>sftp://</em>, <em>scp://</em>, and <em>file://</em>.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_NEW_DIRECTORY_PERMS.html
* @since 5.5
*/
define('CURLOPT_NEW_DIRECTORY_PERMS', 160);
/**
* Permissions for remotely created files.
* Pass a long as a parameter, containing the value of the permissions that will be assigned to newly created files on the remote server.
* The default value is 0644, but any valid value can be used.
* The only protocols that can use this are <em>sftp://</em>, <em>scp://</em>, and <em>file://</em>.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_NEW_FILE_PERMS.html
* @since 5.5
*/
define('CURLOPT_NEW_FILE_PERMS', 159);
/**
* <b>TRUE</b> to scan the ~/.netrc file to find a username and password for the remote site that a connection is being established with.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_NETRC_FILE.html
* @since 5.5
*/
define('CURLOPT_NETRC_FILE', 10118);
/**
* Commands to run before an FTP transfer
* @link https://curl.haxx.se/libcurl/c/CURLOPT_PREQUOTE.html
* @since 5.5
*/
define('CURLOPT_PREQUOTE', 10093);
/**
* Set FTP kerberos security level
* @link https://curl.haxx.se/libcurl/c/CURLOPT_KRBLEVEL.html
* @since 5.5
*/
define('CURLOPT_KRBLEVEL', 10063);
/**
* Maximum file size allowed to download (in bytes)
* @link https://curl.haxx.se/libcurl/c/CURLOPT_MAXFILESIZE.html
* @since 5.5
*/
define('CURLOPT_MAXFILESIZE', 114);
/**
* Set account info for FTP
* @link https://curl.haxx.se/libcurl/c/CURLOPT_FTP_ACCOUNT.html
* @since 5.5
*/
define('CURLOPT_FTP_ACCOUNT', 10134);
/**
* A cookie string (i.e. a single line in Netscape/Mozilla format, or a regular HTTP-style Set-Cookie header) adds that single cookie to the internal cookie store.
* "<b>ALL</b>" erases all cookies held in memory.
* "<b>SESS</b>" erases all session cookies held in memory.
* "<b>FLUSH</b>" writes all known cookies to the file specified by CURLOPT_COOKIEJAR.
* "<b>RELOAD</b>" loads all cookies from the files specified by CURLOPT_COOKIEFILE.
* @link https://www.php.net/manual/en/function.curl-setopt.php
* @since 5.5
*/
define('CURLOPT_COOKIELIST', 10135);
/**
* Set local port number to use for socket
* @link https://curl.haxx.se/libcurl/c/CURLOPT_LOCALPORT.html
* @since 5.5
*/
define('CURLOPT_LOCALPORT', 139);
/**
* Number of additional local ports to try.
* Pass a long. The range argument is the number of attempts libcurl will make to find a working local port number.
* It starts with the given <b>CURLOPT_LOCALPORT</b> and adds one to the number for each retry.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_LOCALPORTRANGE.html
* @since 5.5
*/
define('CURLOPT_LOCALPORTRANGE', 140);
/**
* Command to use instead of USER with FTP.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_FTP_ALTERNATIVE_TO_USER.html
* @since 5.5
*/
define('CURLOPT_FTP_ALTERNATIVE_TO_USER', 10147);
/**
* Enable/disable use of the SSL session-ID cache.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_SSL_SESSIONID_CACHE.html
* @since 5.5
*/
define('CURLOPT_SSL_SESSIONID_CACHE', 150);
/**
* Switch off SSL again with FTP after auth.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_FTP_SSL_CCC.html
* @since 5.5
*/
define('CURLOPT_FTP_SSL_CCC', 154);
/**
* <b>FALSE</b> to get the raw HTTP response body.
* @link https://www.php.net/manual/en/function.curl-setopt.php
* @since 5.5
*/
define('CURLOPT_HTTP_CONTENT_DECODING', 158);
/**
* Enable/disable HTTP transfer decoding.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_TRANSFER_DECODING.html
* @since 5.5
*/
define('CURLOPT_HTTP_TRANSFER_DECODING', 157);
/**
* Append FTP transfer mode to URL for proxy.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TRANSFER_MODE.html
* @since 5.5
*/
define('CURLOPT_PROXY_TRANSFER_MODE', 166);
/**
* Set scope id for IPv6 addresses.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_ADDRESS_SCOPE.html
* @since 5.5
*/
define('CURLOPT_ADDRESS_SCOPE', 171);
/**
* Specify a Certificate Revocation List file.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_CRLFILE.html
* @since 5.5
*/
define('CURLOPT_CRLFILE', 10169);
/**
* Issuer SSL certificate filename.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_ISSUERCERT.html
* @since 5.5
*/
define('CURLOPT_ISSUERCERT', 10170);
/**
* The user name to use in authentication.
* @link https://www.php.net/manual/en/function.curl-setopt.php
* @since 5.5
*/
define('CURLOPT_USERNAME', 10173);
/**
* Password to use in authentication.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_PASSWORD.html
* @since 5.5
*/
define('CURLOPT_PASSWORD', 10174);
/**
* User name to use for proxy authentication.
* @since 5.5
*/
define('CURLOPT_PROXYUSERNAME', 10175);
/**
* Password to use for proxy authentication.
* @since 5.5
*/
define('CURLOPT_PROXYPASSWORD', 10176);
/**
* Disable proxy use for specific hosts.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_NOPROXY.html
* @since 5.5
*/
define('CURLOPT_NOPROXY', 10177);
/**
* Set socks proxy gssapi negotiation protection.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_GSSAPI_NEC.html
* @since 5.5
*/
define('CURLOPT_SOCKS5_GSSAPI_NEC', 180);
/**
* SOCKS5 proxy authentication service name.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_GSSAPI_SERVICE.html
* @deprecated Use <b>CURLOPT_PROXY_SERVICE_NAME</b> instead.
* @since 5.5
*/
define('CURLOPT_SOCKS5_GSSAPI_SERVICE', 10179);
/**
* Specify blocksize to use for TFTP data transmission.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_TFTP_BLKSIZE.html
* @since 5.5
*/
define('CURLOPT_TFTP_BLKSIZE', 178);
/**
* File name holding the SSH known hosts.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_SSH_KNOWNHOSTS.html
* @since 5.5
*/
define('CURLOPT_SSH_KNOWNHOSTS', 10183);
/**
* Enable the PRET command.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_PRET.html
* @since 5.5
*/
define('CURLOPT_FTP_USE_PRET', 188);
/**
* SMTP sender address.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_FROM.html
* @since 5.5
*/
define('CURLOPT_MAIL_FROM', 10186);
/**
* List of SMTP mail recipients.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_RCPT.html
* @since 5.5
*/
define('CURLOPT_MAIL_RCPT', 10187);
/**
* Set the RTSP client CSEQ number.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_CLIENT_CSEQ.html
* @since 5.5
*/
define('CURLOPT_RTSP_CLIENT_CSEQ', 193);
/**
* Set the RTSP server CSEQ number.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_SERVER_CSEQ.html
* @since 5.5
*/
define('CURLOPT_RTSP_SERVER_CSEQ', 194);
/**
* Set RTSP session ID.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_SESSION_ID.html
* @since 5.5
*/
define('CURLOPT_RTSP_SESSION_ID', 10190);
/**
* Set RTSP stream URI.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_STREAM_URI.html
* @since 5.5
*/
define('CURLOPT_RTSP_STREAM_URI', 10191);
/**
* Set RTSP Transport: header.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_TRANSPORT.html
* @since 5.5
*/
define('CURLOPT_RTSP_TRANSPORT', 10192);
/**
* Specify RTSP request.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_REQUEST.html
* @since 5.5
*/
define('CURLOPT_RTSP_REQUEST', 189);
/**
* Ignore content length.
* If <b>TRUE</b>, ignore the Content-Length header in the HTTP response and ignore asking for or relying on it for FTP transfers.
* This is useful for HTTP with Apache 1.x (and similar servers) which will report incorrect content length for files over 2 gigabytes.
* If this option is used, curl will not be able to accurately report progress, and will simply stop the download when the server ends the connection.
* It is also useful with FTP when for example the file is growing while the transfer is in progress
* which otherwise will unconditionally cause libcurl to report error.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_IGNORE_CONTENT_LENGTH.html
* @since 5.5
*/
define('CURLOPT_IGNORE_CONTENT_LENGTH', 136);
/**
* Enables automatic decompression of HTTP downloads
* @link https://curl.haxx.se/libcurl/c/CURLOPT_ACCEPT_ENCODING.html
* @since 5.5
*/
define('CURLOPT_ACCEPT_ENCODING', 10102);
/**
* Ask for HTTP Transfer Encoding.
* Adds a request for compressed Transfer Encoding in the outgoing HTTP request.
* If the server supports this and so desires, it can respond with the HTTP response sent using a compressed Transfer-Encoding
* that will be automatically uncompressed by libcurl on reception.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_TRANSFER_ENCODING.html
* @since 5.5
*/
define('CURLOPT_TRANSFER_ENCODING', 207);
/**
* Set preferred DNS servers: <em>host[:port][,host[:port]]...</em>
* @link https://curl.haxx.se/libcurl/c/CURLOPT_DNS_SERVERS.html
* @since 5.5
*/
define('CURLOPT_DNS_SERVERS', 10211);
/**
* Request using SSL / TLS for the transfer
* @link https://curl.haxx.se/libcurl/c/CURLOPT_USE_SSL.html
* @since 5.5
*/
define('CURLOPT_USE_SSL', 119);
/**
* Custom telnet options
* @link https://curl.haxx.se/libcurl/c/CURLOPT_TELNETOPTIONS.html
@ -2108,6 +2612,48 @@ define('CURLUSESSL_NONE', 0);
*/
define('CURLUSESSL_TRY', 1);
/**
* Convenience define that pauses both directions.
* @link https://php.net/manual/en/curl.constants.php
* @since 5.5
*/
define('CURLPAUSE_ALL', 5);
/**
* Convenience define that unpauses both directions.
* @link https://php.net/manual/en/curl.constants.php
* @since 5.5
*/
define('CURLPAUSE_CONT', 0);
/**
* Pause receiving data. There will be no data received on this connection until this function is called again without this bit set.
* Thus, the write callback (<b>CURLOPT_WRITEFUNCTION</b>) won't be called.
* @link https://php.net/manual/en/curl.constants.php
* @since 5.5
*/
define('CURLPAUSE_RECV', 1);
/**
* @link https://php.net/manual/en/curl.constants.php
* @since 5.5
*/
define('CURLPAUSE_RECV_CONT', 0);
/**
* Pause sending data. There will be no data sent on this connection until this function is called again without this bit set.
* Thus, the read callback (CURLOPT_READFUNCTION) won't be called.
* @link https://php.net/manual/en/curl.constants.php
* @since 5.5
*/
define('CURLPAUSE_SEND', 4);
/**
* @link https://php.net/manual/en/curl.constants.php
* @since 5.5
*/
define('CURLPAUSE_SEND_CONT', 0);
/**
* Read callback for data uploads.
* @link https://curl.haxx.se/libcurl/c/CURLOPT_READFUNCTION.html
@ -2120,6 +2666,21 @@ define('CURL_READFUNC_PAUSE', 268435457);
*/
define('CURL_WRITEFUNC_PAUSE', 268435457);
/**
* Value for the <b>CURLOPT_PROXYTYPE</b> option.
* @link https://www.php.net/manual/en/curl.constants.php
* @since 5.5.23
*/
define('CURLPROXY_SOCKS4A', 6);
/**
* Value for the <b>CURLOPT_PROXYTYPE</b> option.
* Proxy resolves URL hostname.
* @link https://www.php.net/manual/en/curl.constants.php
* @since 5.5.23
*/
define('CURLPROXY_SOCKS5_HOSTNAME', 7);
/**
* Value for the <b>CURLOPT_SSH_AUTH_TYPES</b> option.
* @link https://www.php.net/manual/en/curl.constants.php
@ -2450,3 +3011,36 @@ define('CURLOPT_ACCEPTTIMEOUT_MS', 212);
* @link https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_AUTH.html
*/
define('CURLOPT_MAIL_AUTH', 10217);
/**
* If set to 1, TCP keepalive probes will be sent.
* The delay and frequency of these probes can be controlled by the <b>CURLOPT_TCP_KEEPIDLE</b> and <b>CURLOPT_TCP_KEEPINTVL</b> options,
* provided the operating system supports them.
* If set to 0 (default) keepalive probes are disabled.
* @link https://www.php.net/manual/en/function.curl-setopt.php
* @since 5.5
*/
define('CURLOPT_TCP_KEEPALIVE', 213);
/**
* Sets the delay, in seconds, that the operating system will wait while the connection is idle before sending keepalive probes,
* if <b>CURLOPT_TCP_KEEPALIVE</b> is enabled. Not all operating systems support this option. The default is 60.
* @link https://www.php.net/manual/en/function.curl-setopt.php
* @since 5.5
*/
define('CURLOPT_TCP_KEEPIDLE', 214);
/**
* Sets the interval, in seconds, that the operating system will wait between sending keepalive probes,
* if <b>CURLOPT_TCP_KEEPALIVE</b> is enabled. Not all operating systems support this option. The default is 60.
* @link https://www.php.net/manual/en/function.curl-setopt.php
* @since 5.5
*/
define('CURLOPT_TCP_KEEPINTVL', 215);
/**
* Supports HTTP2.
* @link https://www.php.net/manual/en/curl.constants.php
* @since 5.5.24
*/
define('CURL_VERSION_HTTP2', 65536);

View File

@ -455,7 +455,7 @@ function gmdate(string $format, ?int $timestamp): string|false {}
* it returned -1).
*/
#[Pure(true)]
function mktime(int $hour = null, ?int $minute = null, ?int $second = null, ?int $month = null, ?int $day = null, ?int $year = null): int|false {}
function mktime(int $hour = null, ?int $minute = null, ?int $second = null, ?int $month = null, ?int $day = null, ?int $year = null, #[Deprecated("Use the new timezone handling functions instead", since: "5.3")] $is_dst = -1): int|false {}
/**
* Get Unix timestamp for a GMT date
@ -485,7 +485,7 @@ function mktime(int $hour = null, ?int $minute = null, ?int $second = null, ?int
* @return int|false a integer Unix timestamp.
*/
#[Pure(true)]
function gmmktime(int $hour = null, ?int $minute = null, ?int $second = null, ?int $month = null, ?int $day = null, ?int $year = null): int|false {}
function gmmktime(int $hour = null, ?int $minute = null, ?int $second = null, ?int $month = null, ?int $day = null, ?int $year = null, $is_dst = null): int|false {}
/**
* Validate a Gregorian date
@ -907,15 +907,34 @@ function getdate(?int $timestamp): array {}
function date_create(string $datetime = 'now', ?DateTimeZone $timezone): DateTime|false {}
/**
* Returns new DateTime object formatted according to the specified format
* (PHP 5.5)<br/>
* Alias:
* {@see DateTimeImmutable::__construct}
* Returns new DateTimeImmutable object
* @link https://php.net/manual/en/function.date-create-immutable.php
* @see DateTimeImmutable::__construct()
* @param string $datetime [optional] <p>
* String in a format accepted by strtotime.
* </p>
* @param DateTimeZone|null $timezone [optional] <p>
* Time zone of the time.
* </p>
* @return DateTimeImmutable|false DateTime object on success or false on failure.
* @since 5.5
*/
#[Pure(true)]
function date_create_immutable(string $datetime = 'now', ?DateTimeZone $timezone): DateTimeImmutable|false {}
/**
* Returns new DateTimeImmutable object formatted according to the specified format
* @link https://php.net/manual/en/function.date-create-immutable-from-format.php
* @param string $format
* @param string $datetime
* @param DateTimeZone|null $timezone [optional]
* @return DateTime|false
* @return DateTimeImmutable|false
*/
#[Pure(true)]
function date_create_immutable_from_format(string $format, string $datetime, ?DateTimeZone $timezone) {}
function date_create_immutable_from_format(string $format, string $datetime, ?DateTimeZone $timezone): DateTimeImmutable|false {}
/**
* Alias:
@ -976,12 +995,12 @@ function date_get_last_errors(): array|false {}
* Alias:
* {@see DateTime::format}
* @link https://php.net/manual/en/function.date-format.php
* @param DateTime $object
* @param DateTimeInterface $object
* @param string $format
* @return string|false formatted date string on success or <b>FALSE</b> on failure.
*/
#[Pure(true)]
function date_format($object, string $format): string|false {}
function date_format(DateTimeInterface $object, string $format): string|false {}
/**
* Alter the timestamp of a DateTime object by incrementing or decrementing
@ -1028,7 +1047,7 @@ function date_sub(DateTime $object, DateInterval $interval): DateTime|false {}
* Alias:
* {@see DateTime::getTimezone}
* @link https://php.net/manual/en/function.date-timezone-get.php
* @param DateTime $object <p>Procedural style only: A
* @param DateTimeInterface $object <p>Procedural style only: A
* {@see DateTime} object
* returned by
* {@see date_create()}</p>
@ -1040,14 +1059,14 @@ function date_sub(DateTime $object, DateInterval $interval): DateTime|false {}
* </p>
*/
#[Pure(true)]
function date_timezone_get($object): DateTimeZone|false {}
function date_timezone_get(DateTimeInterface $object): DateTimeZone|false {}
/**
* Sets the time zone for the datetime object
* Alias:
* {@see DateTime::setTimezone}
* @link https://php.net/manual/en/function.date-timezone-set.php
* @param DateTime $object <p>A
* @param DateTimeInterface $object <p>A
* {@see DateTime} object returned by
* {@see date_create()}. The function modifies this object.</p>
* @param DateTimeZone $timezone <p>A
@ -1055,31 +1074,31 @@ function date_timezone_get($object): DateTimeZone|false {}
* @return DateTime|false <p>Returns the
* {@see DateTime} object for method chaining or <b>FALSE</b> on failure.</p>
*/
function date_timezone_set($object, DateTimeZone $timezone): DateTime|false {}
function date_timezone_set(DateTimeInterface $object, DateTimeZone $timezone): DateTime|false {}
/**
* Alias:
* {@see DateTime::getOffset}
* @link https://php.net/manual/en/function.date-offset-get.php
* @param DateTime $object <p>Procedural style only: A {@see DateTime} object
* @param DateTimeInterface $object <p>Procedural style only: A {@see DateTime} object
* returned by {@see date_create()}</p>
* @return int|false <p>Returns the timezone offset in seconds from UTC on success or <b>FALSE</b> on failure.</p>
*/
#[Pure(true)]
function date_offset_get($object): int|false {}
function date_offset_get(DateTimeInterface $object): int|false {}
/**
* Returns the difference between two datetime objects
* Alias:
* {@see DateTime::diff}
* @link https://php.net/manual/en/function.date-diff.php
* @param DateTime $baseObject
* @param DateTime $targetObject The date to compare to
* @param DateTimeInterface $baseObject
* @param DateTimeInterface $targetObject The date to compare to
* @param bool $absolute [optional] Whether to return absolute difference.
* @return DateInterval|false The DateInterval object representing the difference between the two dates or FALSE on failure.
*/
#[Pure(true)]
function date_diff($baseObject, $targetObject, bool $absolute = false): DateInterval|false {}
function date_diff(DateTimeInterface $baseObject, DateTimeInterface $targetObject, bool $absolute = false): DateInterval|false {}
/**
* Alias:
@ -1146,11 +1165,11 @@ function date_timestamp_set(DateTime $object, int $timestamp): DateTime|false {}
* Alias:
* {@see DateTime::getTimestamp}
* @link https://php.net/manual/en/function.date-timestamp-get.php
* @param DateTime $object
* @param DateTimeInterface $object
* @return int <p>Returns the Unix timestamp representing the date.</p>
*/
#[Pure(true)]
function date_timestamp_get($object): int {}
function date_timestamp_get(DateTimeInterface $object): int {}
/**
* Returns new DateTimeZone object
@ -1206,11 +1225,11 @@ function timezone_name_from_abbr(string $abbr, int $utcOffset = -1, int $isDST =
* {@see DateTimeZone} object
* returned by
* {@see timezone_open()}</p>
* @param DateTime $datetime <p>DateTime that contains the date/time to compute the offset from.</p>
* @param DateTimeInterface $datetime <p>DateTime that contains the date/time to compute the offset from.</p>
* @return int|false <p>Returns time zone offset in seconds on success or <b>FALSE</b> on failure.</p>
*/
#[Pure(true)]
function timezone_offset_get(DateTimeZone $object, $datetime): int|false {}
function timezone_offset_get(DateTimeZone $object, DateTimeInterface $datetime): int|false {}
/**
* Returns all transitions for the timezone

View File

@ -3,12 +3,330 @@
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\Immutable;
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
/**
* @since 5.5
*/
interface DateTimeInterface
{
/**
* (PHP 5 >=5.5.0)<br/>
* Returns the difference between two DateTime objects
* @link https://secure.php.net/manual/en/datetime.diff.php
* @param DateTimeInterface $targetObject <p>The date to compare to.</p>
* @param bool $absolute <p>Should the interval be forced to be positive?</p>
* @return DateInterval
* @since 5.5
* The https://secure.php.net/manual/en/class.dateinterval.php DateInterval} object representing the
* difference between the two dates.
*/
#[TentativeType]
public function diff(DateTimeInterface $targetObject, $absolute = false): DateInterval;
/**
* (PHP 5 >=5.5.0)<br/>
* Returns date formatted according to given format
* @link https://secure.php.net/manual/en/datetime.format.php
* @param string $format <p>
* Format accepted by {@link https://secure.php.net/manual/en/function.date.php date()}.
* </p>
* @return string
* @since 5.5
* Returns the formatted date string on success or <b>FALSE</b> on failure.
* Since PHP8, it always returns <b>STRING</b>.
*/
#[TentativeType]
public function format($format): string;
/**
* (PHP 5 >=5.5.0)<br/>
* Returns the timezone offset
* @return int|false
* Returns the timezone offset in seconds from UTC on success
* or <b>FALSE</b> on failure. Since PHP8, it always returns <b>INT</b>.
* @since 5.5
*/
#[TentativeType]
public function getOffset(): int|false;
/**
* (PHP 5 >=5.5.0)<br/>
* Gets the Unix timestamp
* @return int
* @since 5.5
* Returns the Unix timestamp representing the date.
*/
#[TentativeType]
public function getTimestamp(): int|false;
/**
* (PHP 5 >=5.5.0)<br/>
* Return time zone relative to given DateTime
* @link https://secure.php.net/manual/en/datetime.gettimezone.php
* @return DateTimeZone|false
* @since 5.5
* Returns a {@link https://secure.php.net/manual/en/class.datetimezone.php DateTimeZone} object on success
* or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function getTimezone(): DateTimeZone|false;
/**
* (PHP 5 >=5.5.0)<br/>
* The __wakeup handler
* @link https://secure.php.net/manual/en/datetime.wakeup.php
* @return void Initializes a DateTime object.
* @since 5.5
*/
#[TentativeType]
public function __wakeup(): void;
}
/**
* @since 5.5
*/
class DateTimeImmutable implements DateTimeInterface
{
/**
* (PHP 5 >=5.5.0)<br/>
* @link https://secure.php.net/manual/en/datetimeimmutable.construct.php
* @param string $datetime [optional]
* <p>A date/time string. Valid formats are explained in {@link https://secure.php.net/manual/en/datetime.formats.php Date and Time Formats}.</p>
* <p>Enter <b>NULL</b> here to obtain the current time when using the <em>$timezone</em> parameter.</p>
* @param null|DateTimeZone $timezone [optional] <p>
* A {@link https://secure.php.net/manual/en/class.datetimezone.php DateTimeZone} object representing the timezone of <em>$datetime</em>.
* </p>
* <p>If <em>$timezone</em> is omitted, the current timezone will be used.</p>
* <blockquote><p><b>Note</b>:</p><p>
* The <em>$timezone</em> parameter and the current timezone are ignored when the <em>$datetime</em> parameter either
* is a UNIX timestamp (e.g. <em>@946684800</em>) or specifies a timezone (e.g. <em>2010-01-28T15:00:00+02:00</em>).
* </p></blockquote>
* @throws Exception Emits Exception in case of an error.
* @since 5.5
*/
public function __construct($datetime = 'now', DateTimeZone $timezone = null) {}
/**
* (PHP 5 >=5.5.0)<br/>
* Returns new DateTimeImmutable object formatted according to the specified format
* @link https://secure.php.net/manual/en/datetimeimmutable.createfromformat.php
* @param string $format
* @param string $datetime
* @param null|DateTimeZone $timezone [optional]
* @return DateTimeImmutable|false
* @since 5.5
*/
#[TentativeType]
public static function createFromFormat($format, $datetime, DateTimeZone $timezone = null): DateTimeImmutable|false {}
/**
* (PHP 5 >=5.5.0)<br/>
* Returns the warnings and errors
* @link https://secure.php.net/manual/en/datetimeimmutable.getlasterrors.php
* @return array|false Returns array containing info about warnings and errors.
* @since 5.5
*/
#[ArrayShape(["warning_count" => "int", "warnings" => "string[]", "error_count" => "int", "errors" => "string[]"])]
#[TentativeType]
public static function getLastErrors(): array|false {}
/**
* (PHP 5 >=5.5.0)<br/>
* The __set_state handler
* @link https://secure.php.net/manual/en/datetimeimmutable.set-state.php
* @param array $array <p>Initialization array.</p>
* @return DateTimeImmutable
* Returns a new instance of a {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object.
* @since 5.5
*/
public static function __set_state(array $array) {}
/**
* (PHP 5 >=5.5.0)<br/>
* Adds an amount of days, months, years, hours, minutes and seconds
* @param DateInterval $interval
* @return static
* @since 5.5
*/
#[TentativeType]
public function add(DateInterval $interval): DateTimeImmutable {}
/**
* (PHP 5 >=5.5.0)<br/>
* Alters the timestamp
* @link https://secure.php.net/manual/en/datetimeimmutable.modify.php
* @param string $modifier <p>A date/time string. Valid formats are explained in
* {@link https://secure.php.net/manual/en/datetime.formats.php Date and Time Formats}.</p>
* @return static|false Returns the newly created object or false on failure.
* Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
* @since 5.5
*/
#[Pure]
#[TentativeType]
public function modify($modifier): DateTimeImmutable|false {}
/**
* (PHP 5 >=5.5.0)<br/>
* Sets the date
* @link https://secure.php.net/manual/en/datetimeimmutable.setdate.php
* @param int $year <p>Year of the date.</p>
* @param int $month <p>Month of the date.</p>
* @param int $day <p>Day of the date.</p>
* @return static|false
* Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
* @since 5.5
*/
#[TentativeType]
public function setDate($year, $month, $day): DateTimeImmutable {}
/**
* (PHP 5 >=5.5.0)<br/>
* Sets the ISO date
* @link https://php.net/manual/en/class.datetimeimmutable.php
* @param int $year <p>Year of the date.</p>
* @param int $week <p>Week of the date.</p>
* @param int $dayOfWeek [optional] <p>Offset from the first day of the week.</p>
* @return static|false
* Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
* @since 5.5
*/
#[TentativeType]
public function setISODate($year, $week, $dayOfWeek = 1): DateTimeImmutable {}
/**
* (PHP 5 >=5.5.0)<br/>
* Sets the time
* @link https://secure.php.net/manual/en/datetimeimmutable.settime.php
* @param int $hour <p> Hour of the time. </p>
* @param int $minute <p> Minute of the time. </p>
* @param int $second [optional] <p> Second of the time. </p>
* @param int $microsecond [optional] <p> Microseconds of the time. Added since 7.1</p>
* @return static|false
* Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
* @since 5.5
*/
#[TentativeType]
public function setTime($hour, $minute, $second = 0): DateTimeImmutable {}
/**
* (PHP 5 >=5.5.0)<br/>
* Sets the date and time based on an Unix timestamp
* @link https://secure.php.net/manual/en/datetimeimmutable.settimestamp.php
* @param int $timestamp <p>Unix timestamp representing the date.</p>
* @return static
* Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
* @since 5.5
*/
#[TentativeType]
public function setTimestamp($timestamp): DateTimeImmutable {}
/**
* (PHP 5 >=5.5.0)<br/>
* Sets the time zone
* @link https://secure.php.net/manual/en/datetimeimmutable.settimezone.php
* @param DateTimeZone $timezone <p>
* A {@link https://secure.php.net/manual/en/class.datetimezone.php DateTimeZone} object representing the
* desired time zone.
* </p>
* @return static
* Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
* @since 5.5
*/
#[TentativeType]
public function setTimezone(DateTimeZone $timezone): DateTimeImmutable {}
/**
* (PHP 5 >=5.5.0)<br/>
* Subtracts an amount of days, months, years, hours, minutes and seconds
* @link https://secure.php.net/manual/en/datetimeimmutable.sub.php
* @param DateInterval $interval <p>
* A {@link https://secure.php.net/manual/en/class.dateinterval.php DateInterval} object
* </p>
* @return static
* Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
* @since 5.5
*/
#[TentativeType]
public function sub(DateInterval $interval): DateTimeImmutable {}
/**
* (PHP 5 >=5.5.0)<br/>
* Returns the difference between two DateTime objects
* @link https://secure.php.net/manual/en/datetime.diff.php
* @param DateTimeInterface $targetObject <p>The date to compare to.</p>
* @param bool $absolute [optional] <p>Should the interval be forced to be positive?</p>
* @return DateInterval|false
* The {@link https://secure.php.net/manual/en/class.dateinterval.php DateInterval} object representing the
* difference between the two dates or <b>FALSE</b> on failure.
* @since 5.5
*/
#[TentativeType]
public function diff($targetObject, $absolute = false): DateInterval {}
/**
* (PHP 5 >=5.5.0)<br/>
* Returns date formatted according to given format
* @link https://secure.php.net/manual/en/datetime.format.php
* @param string $format <p>
* Format accepted by {@link https://secure.php.net/manual/en/function.date.php date()}.
* </p>
* @return string
* Returns the formatted date string on success or <b>FALSE</b> on failure.
* @since 5.5
*/
#[TentativeType]
public function format($format): string {}
/**
* (PHP 5 >=5.5.0)<br/>
* Returns the timezone offset
* @return int
* Returns the timezone offset in seconds from UTC on success
* or <b>FALSE</b> on failure.
* @since 5.5
*/
#[TentativeType]
public function getOffset(): int {}
/**
* (PHP 5 >=5.5.0)<br/>
* Gets the Unix timestamp
* @return int
* Returns the Unix timestamp representing the date.
* @since 5.5
*/
#[TentativeType]
public function getTimestamp(): int {}
/**
* (PHP 5 >=5.5.0)<br/>
* Return time zone relative to given DateTime
* @link https://secure.php.net/manual/en/datetime.gettimezone.php
* @return DateTimeZone|false
* Returns a {@link https://secure.php.net/manual/en/class.datetimezone.php DateTimeZone} object on success
* or <b>FALSE</b> on failure.
* @since 5.5
*/
#[TentativeType]
public function getTimezone(): DateTimeZone|false {}
/**
* (PHP 5 >=5.5.0)<br/>
* The __wakeup handler
* @link https://secure.php.net/manual/en/datetime.wakeup.php
* @return void Initializes a DateTime object.
* @since 5.5
*/
#[TentativeType]
public function __wakeup(): void {}
}
/**
* Representation of date and time.
* @link https://php.net/manual/en/class.datetime.php
*/
class DateTime
class DateTime implements DateTimeInterface
{
/**
* @removed 7.2
@ -256,7 +574,7 @@ class DateTime
/**
* Returns the difference between two DateTime objects represented as a DateInterval.
* @param DateTime $targetObject The date to compare to.
* @param DateTimeInterface $targetObject The date to compare to.
* @param bool $absolute [optional] Whether to return absolute difference.
* @return DateInterval|false The DateInterval object representing the difference between the two dates.
* @link https://php.net/manual/en/datetime.diff.php
@ -331,12 +649,12 @@ class DateTimeZone
/**
* Returns the timezone offset from GMT
* @param DateTime $datetime
* @param DateTimeInterface $datetime
* @return int
* @link https://php.net/manual/en/datetimezone.getoffset.php
*/
#[TentativeType]
public function getOffset($datetime): int {}
public function getOffset(DateTimeInterface $datetime): int {}
/**
* Returns all transitions for the timezone
@ -453,8 +771,8 @@ class DateInterval
/**
* Representation of date period.
* @link https://php.net/manual/en/class.dateperiod.php
* @template TDate of DateTime
* @template TEnd of ?DateTime
* @template TDate of DateTimeInterface
* @template TEnd of ?DateTimeInterface
* @implements IteratorAggregate<int, TDate>
*/
class DatePeriod implements IteratorAggregate
@ -463,20 +781,20 @@ class DatePeriod implements IteratorAggregate
/**
* Start date
* @var DateTime
* @var DateTimeInterface
*/
#[Immutable]
public $start;
/**
* Current iterator value.
* @var DateTime|null
* @var DateTimeInterface|null
*/
public $current;
/**
* End date.
* @var DateTime|null
* @var DateTimeInterface|null
*/
#[Immutable]
public $end;
@ -515,7 +833,7 @@ class DatePeriod implements IteratorAggregate
* @param int $options Can be set to DatePeriod::EXCLUDE_START_DATE.
* @link https://php.net/manual/en/dateperiod.construct.php
*/
public function __construct($start, DateInterval $interval, $end, $options = 0) {}
public function __construct(DateTimeInterface $start, DateInterval $interval, DateTimeInterface $end, $options = 0) {}
/**
* @param TDate $start
@ -524,7 +842,7 @@ class DatePeriod implements IteratorAggregate
* @param int $options Can be set to DatePeriod::EXCLUDE_START_DATE.
* @link https://php.net/manual/en/dateperiod.construct.php
*/
public function __construct($start, DateInterval $interval, $recurrences, $options = 0) {}
public function __construct(DateTimeInterface $start, DateInterval $interval, $recurrences, $options = 0) {}
/**
* @param string $isostr String containing the ISO interval.

445
gd/gd.php
View File

@ -303,6 +303,252 @@ define('PNG_FILTER_PAETH', 128);
*/
define('PNG_ALL_FILTERS', 248);
/**
* An affine transformation type constant used by the {@see imageaffinematrixget()} function.
* @since 5.5
* @link https://php.net/manual/en/image.constants.php#constant.img-affine-translate
*/
define('IMG_AFFINE_TRANSLATE', 0);
/**
* An affine transformation type constant used by the {@see imageaffinematrixget()} function.
* @since 5.5
* @link https://php.net/manual/en/image.constants.php#constant.img-affine-scale
*/
define('IMG_AFFINE_SCALE', 1);
/**
* An affine transformation type constant used by the {@see imageaffinematrixget()} function.
* @since 5.5
* @link https://php.net/manual/en/image.constants.php#constant.img-affine-rotate
*/
define('IMG_AFFINE_ROTATE', 2);
/**
* An affine transformation type constant used by the {@see imageaffinematrixget()} function.
* @since 5.5
* @link https://php.net/manual/en/image.constants.php#constant.img-affine-shear-horizontal
*/
define('IMG_AFFINE_SHEAR_HORIZONTAL', 3);
/**
* An affine transformation type constant used by the {@see imageaffinematrixget()} function.
* @since 5.5
* @link https://php.net/manual/en/image.constants.php#constant.img-affine-shear-vertical
*/
define('IMG_AFFINE_SHEAR_VERTICAL', 4);
/**
* Same as {@see IMG_CROP_TRANSPARENT}. Before PHP 7.4.0, the bundled libgd fell back to
* {@see IMG_CROP_SIDES}, if the image had no transparent color.
* Used together with {@see imagecropauto()}.
* @since 5.5
*/
define('IMG_CROP_DEFAULT', 0);
/**
* Crops out a transparent background.
* Used together with {@see imagecropauto()}.
* @since 5.5
*/
define('IMG_CROP_TRANSPARENT', 1);
/**
* Crops out a black background.
* Used together with {@see imagecropauto()}.
* @since 5.5
*/
define('IMG_CROP_BLACK', 2);
/**
* Crops out a white background.
* Used together with {@see imagecropauto()}.
* @since 5.5
*/
define('IMG_CROP_WHITE', 3);
/**
* Uses the 4 corners of the image to attempt to detect the background to crop.
* Used together with {@see imagecropauto()}.
* @since 5.5
*/
define('IMG_CROP_SIDES', 4);
/**
* Crops an image using the given <b>threshold</b> and <b>color</b>.
* Used together with {@see imagecropauto()}.
* @since 5.5
*/
define('IMG_CROP_THRESHOLD', 5);
/**
* Used together with {@see imageflip()}
* @since 5.5
* @link https://php.net/manual/en/image.constants.php#constant.img-flip-both
*/
define('IMG_FLIP_BOTH', 3);
/**
* Used together with {@see imageflip()}
* @since 5.5
* @link https://php.net/manual/en/image.constants.php#constant.img-flip-horizontal
*/
define('IMG_FLIP_HORIZONTAL', 1);
/**
* Used together with {@see imageflip()}
* @since 5.5
* @link https://php.net/manual/en/image.constants.php#constant.img-flip-vertical
*/
define('IMG_FLIP_VERTICAL', 2);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-bell
* @since 5.5
*/
define('IMG_BELL', 1);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-bessel
* @since 5.5
*/
define('IMG_BESSEL', 2);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-bicubic
* @since 5.5
*/
define('IMG_BICUBIC', 4);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-bicubic-fixed
* @since 5.5
*/
define('IMG_BICUBIC_FIXED', 5);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-bilinear-fixed
* @since 5.5
*/
define('IMG_BILINEAR_FIXED', 3);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-blackman
* @since 5.5
*/
define('IMG_BLACKMAN', 6);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-box
* @since 5.5
*/
define('IMG_BOX', 7);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-bspline
* @since 5.5
*/
define('IMG_BSPLINE', 8);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-catmullrom
* @since 5.5
*/
define('IMG_CATMULLROM', 9);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-gaussian
* @since 5.5
*/
define('IMG_GAUSSIAN', 10);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-generalized-cubic
* @since 5.5
*/
define('IMG_GENERALIZED_CUBIC', 11);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-hermite
* @since 5.5
*/
define('IMG_HERMITE', 12);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-hamming
* @since 5.5
*/
define('IMG_HAMMING', 13);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-hanning
* @since 5.5
*/
define('IMG_HANNING', 14);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-mitchell
* @since 5.5
*/
define('IMG_MITCHELL', 15);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-power
* @since 5.5
*/
define('IMG_POWER', 17);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-quadratic
* @since 5.5
*/
define('IMG_QUADRATIC', 18);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-sinc
* @since 5.5
*/
define('IMG_SINC', 19);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-nearest-neighbour
* @since 5.5
*/
define('IMG_NEAREST_NEIGHBOUR', 16);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-weighted4
* @since 5.5
*/
define('IMG_WEIGHTED4', 21);
/**
* Used together with {@see imagesetinterpolation()}.
* @link https://php.net/manual/en/image.constants.php#constant.img-triangle
* @since 5.5
*/
define('IMG_TRIANGLE', 20);
define('IMG_TGA', 128);
/**
@ -2489,3 +2735,202 @@ function imagegetinterpolation($image): int {}
* @return resource|false Return affined image resource on success or FALSE on failure.
*/
function imageaffine($image, array $affine, ?array $clip = null) {}
/**
* Concat two matrices (as in doing many ops in one go)
* @link https://secure.php.net/manual/en/function.imageaffinematrixconcat.php
* @param array $matrix1 <p>Array with keys 0 to 5.</p>
* @param array $matrix2 <p>Array with keys 0 to 5.</p>
* @return float[]|false Array with keys 0 to 5 and float values or <b>FALSE</b> on failure.
* @since 5.5
*/
function imageaffinematrixconcat(array $matrix1, array $matrix2): array|false {}
/**
* Return an image containing the affine tramsformed src image, using an optional clipping area
* @link https://secure.php.net/manual/en/function.imageaffinematrixget.php
* @param int $type <p> One of <b>IMG_AFFINE_*</b> constants.</p>
* @param mixed $options
* @return float[]|false Array with keys 0 to 5 and float values or <b>FALSE</b> on failure.
* @since 5.5
*/
function imageaffinematrixget(int $type, $options = null): array|false {}
/**
* Crop an image using the given coordinates and size, x, y, width and height
* @link https://secure.php.net/manual/en/function.imagecrop.php
* @param resource $image <p>
* An image resource, returned by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p>
* @param array $rectangle <p>Array with keys "x", "y", "width" and "height".</p>
* @return resource|false Return cropped image resource on success or FALSE on failure.
* @since 5.5
*/
function imagecrop($image, array $rectangle) {}
/**
* Crop an image automatically using one of the available modes
* @link https://secure.php.net/manual/en/function.imagecropauto.php
* @param resource $image <p>
* An image resource, returned by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p>
* @param int $mode [optional] <p>
* One of <b>IMG_CROP_*</b> constants.
* </p>
* @param float $threshold [optional] <p>
* Used <b>IMG_CROP_THRESHOLD</b> mode.
* </p>
* @param int $color [optional]
* <p>
* Used in <b>IMG_CROP_THRESHOLD</b> mode.
* </p>
* @return resource|false Return cropped image resource on success or <b>FALSE</b> on failure.
* @since 5.5
*/
function imagecropauto($image, int $mode = IMG_CROP_DEFAULT, float $threshold = '0.5', int $color = -1) {}
/**
* Flips an image using a given mode
* @link https://secure.php.net/manual/en/function.imageflip.php
* @param resource $image <p>
* An image resource, returned by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p>
* @param int $mode <p>
* Flip mode, this can be one of the <b>IMG_FLIP_*</b> constants:
* </p>
* <table>
* <thead>
* <tr>
* <th>Constant</th>
* <th>Meaning</th>
* </tr>
* </thead>
* <tbody>
* <tr>
* <td><b>IMG_FLIP_HORIZONTAL</b></td>
* <td>
* Flips the image horizontally.
* </td>
* </tr>
* <tr>
* <td><b>IMG_FLIP_VERTICAL</b></td>
* <td>
* Flips the image vertically.
* </td>
* </tr>
* <tr>
* <td><b>IMG_FLIP_BOTH</b></td>
* <td>
* Flips the image both horizontally and vertically.
* </td>
* </tr>
* </tbody>
* </table>
* @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
* @since 5.5
*/
function imageflip($image, int $mode): bool {}
/**
* Converts a palette based image to true color
* @link https://secure.php.net/manual/en/function.imagepalettetotruecolor.php
* @param resource $image <p>
* An image resource, returnd by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p>
* @return bool Returns <b>TRUE</b> if the convertion was complete, or if the source image already is a true color image, otherwise <b>FALSE</b> is returned.
* @since 5.5
*/
function imagepalettetotruecolor($image): bool {}
/**
* @param resource $image <p>
* An image resource, returnd by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p>
* @param int $width
* @param int $height [optional]
* @param int $mode [optional] One of <b>IMG_NEAREST_NEIGHBOUR</b>, <b>IMG_BILINEAR_FIXED</b>, <b>IMG_BICUBIC</b>, <b>IMG_BICUBIC_FIXED</b> or anything else (will use two pass).
* @return resource|false Return scaled image resource on success or <b>FALSE</b> on failure.
* @link https://secure.php.net/manual/en/function.imagescale.php
* @since 5.5
* Scale an image using the given new width and height
*/
function imagescale($image, int $width, int $height = -1, int $mode = IMG_BILINEAR_FIXED) {}
/**
* Set the interpolation method
* @link https://secure.php.net/manual/en/function.imagesetinterpolation.php
* @param resource $image <p>
* An image resource, returned by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p>
* @param int $method <p>
* The interpolation method, which can be one of the following:
* <ul>
* <li>
* IMG_BELL: Bell filter.
* </li>
* <li>
* IMG_BESSEL: Bessel filter.
* </li>
* <li>
* IMG_BICUBIC: Bicubic interpolation.
* </li>
* <li>
* IMG_BICUBIC_FIXED: Fixed point implementation of the bicubic interpolation.
* </li>
* <li>
* IMG_BILINEAR_FIXED: Fixed point implementation of the bilinear interpolation (<em>default (also on image creation)</em>).
* </li>
* <li>
* IMG_BLACKMAN: Blackman window function.
* </li>
* <li>
* IMG_BOX: Box blur filter.
* </li>
* <li>
* IMG_BSPLINE: Spline interpolation.
* </li>
* <li>
* IMG_CATMULLROM: Cubbic Hermite spline interpolation.
* </li>
* <li>
* IMG_GAUSSIAN: Gaussian function.
* </li>
* <li>
* IMG_GENERALIZED_CUBIC: Generalized cubic spline fractal interpolation.
* </li>
* <li>
* IMG_HERMITE: Hermite interpolation.
* </li>
* <li>
* IMG_HAMMING: Hamming filter.
* </li>
* <li>
* IMG_HANNING: Hanning filter.
* </li>
* <li>
* IMG_MITCHELL: Mitchell filter.
* </li>
* <li>
* IMG_POWER: Power interpolation.
* </li>
* <li>
* IMG_QUADRATIC: Inverse quadratic interpolation.
* </li>
* <li>
* IMG_SINC: Sinc function.
* </li>
* <li>
* IMG_NEAREST_NEIGHBOUR: Nearest neighbour interpolation.
* </li>
* <li>
* IMG_WEIGHTED4: Weighting filter.
* </li>
* <li>
* IMG_TRIANGLE: Triangle interpolation.
* </li>
* </ul>
* </p>
* @return bool Returns TRUE on success or FALSE on failure.
* @since 5.5
*/
function imagesetinterpolation($image, int $method = IMG_BILINEAR_FIXED): bool {}

View File

@ -277,6 +277,38 @@ function hash_copy($context) {}
#[Pure]
function hash_algos(): array {}
/**
* Generate a PBKDF2 key derivation of a supplied password
* @link https://php.net/manual/en/function.hash-pbkdf2.php
* @param string $algo <p>
* Name of selected hashing algorithm (i.e. "md5", "sha256", "haval160,4", etc..) See <b>hash_algos</b> for a list of supported algorithms.<br/>
* Since 7.2.0 usage of non-cryptographic hash functions (adler32, crc32, crc32b, fnv132, fnv1a32, fnv164, fnv1a64, joaat) was disabled.
* </p>
* @param string $password <p>
* The password to use for the derivation.
* </p>
* @param string $salt <p>
* The salt to use for the derivation. This value should be generated randomly.
* </p>
* @param int $iterations <p>
* The number of internal iterations to perform for the derivation.
* </p>
* @param int $length [optional] <p>
* The length of the output string. If raw_output is TRUE this corresponds to the byte-length of the derived key,
* if raw_output is FALSE this corresponds to twice the byte-length of the derived key (as every byte of the key is returned as two hexits). <br/>
* If 0 is passed, the entire output of the supplied algorithm is used.
* </p>
* @param bool $binary [optional] <p>
* When set to TRUE, outputs raw binary data. FALSE outputs lowercase hexits.
* </p>
* @return string a string containing the derived key as lowercase hexits unless
* <i>raw_output</i> is set to <b>TRUE</b> in which case the raw
* binary representation of the derived key is returned.
* @since 5.5
*/
#[Pure]
function hash_pbkdf2(string $algo, string $password, string $salt, int $iterations, int $length = 0, bool $binary = false): string {}
/**
* Generates a key
* @link https://php.net/manual/en/function.mhash-keygen-s2k.php

File diff suppressed because it is too large Load Diff

View File

@ -331,6 +331,15 @@ function json_decode(string $json, ?bool $associative = null, int $depth = 512,
#[Pure(true)]
function json_last_error(): int {}
/**
* Returns the error string of the last json_encode() or json_decode() call, which did not specify <b>JSON_THROW_ON_ERROR</b>.
* @link https://php.net/manual/en/function.json-last-error-msg.php
* @return string Returns the error message on success, "No error" if no error has occurred.
* @since 5.5
*/
#[Pure]
function json_last_error_msg(): string {}
/**
* Objects implementing JsonSerializable
* can customize their JSON representation when encoded with

View File

@ -708,6 +708,17 @@ function mysqli_affected_rows(mysqli $mysql): string|int {}
*/
function mysqli_autocommit(mysqli $mysql, bool $enable): bool {}
/**
* Starts a transaction
* @link https://secure.php.net/manual/en/mysqli.begin-transaction.php
* @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init()
* @param int $flags [optional]
* @param string|null $name [optional]
* @return bool true on success or false on failure.
* @since 5.5
*/
function mysqli_begin_transaction(mysqli $mysql, int $flags = 0, ?string $name): bool {}
/**
* Changes the user of the specified database connection
* @link https://php.net/manual/en/mysqli.change-user.php
@ -1310,6 +1321,16 @@ function mysqli_real_query(mysqli $mysql, string $query): bool {}
*/
function mysqli_reap_async_query(mysqli $mysql): mysqli_result|bool {}
/**
* Removes the named savepoint from the set of savepoints of the current transaction
* @link https://secure.php.net/manual/en/mysqli.release-savepoint.php
* @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init()
* @param string $name
* @return bool Returns TRUE on success or FALSE on failure.
* @since 5.5
*/
function mysqli_release_savepoint(mysqli $mysql, string $name): bool {}
/**
* Rolls back current transaction
* @link https://php.net/manual/en/mysqli.rollback.php
@ -1320,6 +1341,16 @@ function mysqli_reap_async_query(mysqli $mysql): mysqli_result|bool {}
*/
function mysqli_rollback(mysqli $mysql, int $flags = 0, ?string $name): bool {}
/**
* Set a named transaction savepoint
* @link https://secure.php.net/manual/en/mysqli.savepoint.php
* @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init()
* @param string $name
* @return bool Returns TRUE on success or FALSE on failure.
* @since 5.5
*/
function mysqli_savepoint(mysqli $mysql, string $name): bool {}
/**
* Selects the default database for database queries
* @link https://php.net/manual/en/mysqli.select-db.php
@ -1956,6 +1987,17 @@ class mysqli
#[TentativeType]
public function autocommit(bool $enable): bool {}
/**
* Starts a transaction
* @link https://secure.php.net/manual/en/mysqli.begin-transaction.php
* @param int $flags [optional]
* @param string $name [optional]
* @return bool true on success or false on failure.
* @since 5.5
*/
#[TentativeType]
public function begin_transaction($flags = 0, $name = null): bool {}
/**
* Changes the user of the specified database connection
* @link https://php.net/manual/en/mysqli.change-user.php
@ -2426,6 +2468,37 @@ class mysqli
#[TentativeType]
public function real_query(string $query): bool {}
/**
* Removes the named savepoint from the set of savepoints of the current transaction
* @link https://php.net/manual/en/mysqli.release-savepoint.php
* @param string $name The identifier of the savepoint.
* @return bool Returns TRUE on success or FALSE on failure.
* @since 5.5
*/
#[TentativeType]
public function release_savepoint($name): bool {}
/**
* Rolls back current transaction
* @link https://php.net/manual/en/mysqli.rollback.php
* @param int $flags [optional] A bitmask of MYSQLI_TRANS_COR_* constants.
* @param string $name [optional] If provided then ROLLBACK $name is executed.
* @return bool true on success or false on failure.
* @since 5.5 Added flags and name parameters.
*/
#[TentativeType]
public function rollback($flags = 0, $name = null): bool {}
/**
* Set a named transaction savepoint
* @link https://secure.php.net/manual/en/mysqli.savepoint.php
* @param string $name
* @return bool Returns TRUE on success or FALSE on failure.
* @since 5.5
*/
#[TentativeType]
public function savepoint($name): bool {}
/**
* Selects the default database for database queries
* @link https://php.net/manual/en/mysqli.select-db.php

View File

@ -849,6 +849,19 @@ function openssl_seal(string $data, &$sealed_data, &$encrypted_keys, array $publ
*/
function openssl_open(string $data, &$output, string $encrypted_key, $private_key): bool {}
/**
* Generates a PKCS5 v2 PBKDF2 string, defaults to SHA-1
* @link https://secure.php.net/manual/en/function.openssl-pbkdf2.php
* @param string $password
* @param string $salt
* @param int $key_length
* @param int $iterations
* @param string $digest_algo [optional]
* @return string|false Returns string or FALSE on failure.
* @since 5.5
*/
function openssl_pbkdf2(string $password, string $salt, int $key_length, int $iterations, string $digest_algo = 'sha1'): string|false {}
/**
* Verifies the signature of an S/MIME signed message
* @link https://php.net/manual/en/function.openssl-pkcs7-verify.php

View File

@ -103,6 +103,24 @@ interface SessionHandlerInterface
public function write($id, $data): bool;
}
/**
* <b>SessionIdInterface</b>
* @link https://php.net/manual/en/class.sessionidinterface.php
* @since 5.5.1
*/
interface SessionIdInterface
{
/**
* Create session ID
* @link https://php.net/manual/en/sessionidinterface.create-sid.php
* @return string <p>
* The new session ID. Note that this value is returned internally to PHP for processing.
* </p>
*/
#[TentativeType]
public function create_sid(): string;
}
/**
* <b>SessionHandler</b> a special class that can
* be used to expose the current internal PHP session
@ -118,7 +136,7 @@ interface SessionHandlerInterface
* @link https://php.net/manual/en/class.reflectionzendextension.php
* @since 5.4
*/
class SessionHandler implements SessionHandlerInterface
class SessionHandler implements SessionHandlerInterface, SessionIdInterface
{
/**
* Close the session
@ -132,6 +150,15 @@ class SessionHandler implements SessionHandlerInterface
#[TentativeType]
public function close(): bool {}
/**
* Return a new session ID
* @link https://php.net/manual/en/sessionhandler.create-sid.php
* @return string <p>A session ID valid for the default session handler.</p>
* @since 5.5.1
*/
#[TentativeType]
public function create_sid(): string {}
/**
* Destroy a session
* @link https://php.net/manual/en/sessionhandler.destroy.php

View File

@ -158,6 +158,30 @@ define('WSDL_CACHE_MEMORY', 2);
define('WSDL_CACHE_BOTH', 3);
/**
* @link https://php.net/manual/en/soap.constants.php
* @since 5.5
*/
define('SOAP_SSL_METHOD_TLS', 0);
/**
* @link https://php.net/manual/en/soap.constants.php
* @since 5.5
*/
define('SOAP_SSL_METHOD_SSLv2', 1);
/**
* @link https://php.net/manual/en/soap.constants.php
* @since 5.5
*/
define('SOAP_SSL_METHOD_SSLv3', 2);
/**
* @link https://php.net/manual/en/soap.constants.php
* @since 5.5
*/
define('SOAP_SSL_METHOD_SSLv23', 3);
/**
* Set whether to use the SOAP error handler
* @link https://php.net/manual/en/function.use-soap-error-handler.php

View File

@ -1506,6 +1506,18 @@ function socket_recv($socket, &$data, int $length, int $flags): int|false {}
*/
function socket_send($socket, string $data, int $length, int $flags): int|false {}
/**
* (PHP 5 >=5.5.0)<br/>
* Send a message
* @link https://secure.php.net/manual/en/function.socket-sendmsg.php
* @param resource|Socket $socket
* @param array $message
* @param int $flags
* @return int|false
* @since 5.5
*/
function socket_sendmsg($socket, array $message, int $flags): int|false {}
/**
* Receives data from a socket whether or not it is connection-oriented
* @link https://php.net/manual/en/function.socket-recvfrom.php
@ -1580,6 +1592,17 @@ function socket_send($socket, string $data, int $length, int $flags): int|false
*/
function socket_recvfrom($socket, &$data, int $length, int $flags, &$address, &$port = null): int|false {}
/**
* Read a message
* @link https://secure.php.net/manual/en/function.socket-recvmsg.php
* @param resource|Socket $socket
* @param array &$message
* @param int $flags
* @return int|false
* @since 5.5
*/
function socket_recvmsg($socket, array &$message, int $flags): int|false {}
/**
* Sends a message to a socket, whether it is connected or not
* @link https://php.net/manual/en/function.socket-sendto.php
@ -2097,6 +2120,17 @@ function socket_clear_error($socket = null): void {}
*/
function socket_import_stream($stream) {}
/**
* Calculate message buffer size
* @link https://php.net/manual/en/function.socket-cmsg-space.php
* @param int $level
* @param int $type
* @param int $num [optional]
* @return int|null
* @since 5.5
*/
function socket_cmsg_space(int $level, int $type): ?int {}
/**
* Alias of {@see socket_get_option}
* @param $socket

View File

@ -108,6 +108,27 @@ define('__NAMESPACE__', "");
#[Deprecated(since: "5.3")]
function dl(string $extension_filename): bool {}
/**
* Sets the process title
* @link https://php.net/manual/en/function.cli-set-process-title.php
* @param string $title <p>
* The new title.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
* @since 5.5
*/
function cli_set_process_title(string $title): bool {}
/**
* Returns the current process title, as set by cli_set_process_title(). Note that this may not exactly match what is shown in ps or top, depending on your operating system.
*
* @link https://php.net/manual/en/function.cli-get-process-title.php
* @return string|null Return a string with the current process title or <b>NULL</b> on error.
* @since 5.5
*/
#[Pure(true)]
function cli_get_process_title(): ?string {}
/**
* Encodes an ISO-8859-1 string to UTF-8
* @link https://php.net/manual/en/function.utf8-encode.php

View File

@ -1,5 +1,7 @@
<?php
use JetBrains\PhpStorm\ArrayShape;
define('PASSWORD_DEFAULT', "2y");
/**
@ -40,3 +42,66 @@ define('PASSWORD_BCRYPT_DEFAULT_COST', 10);
* </ul>
*/
define('PASSWORD_BCRYPT', "2y");
/**
* Returns information about the given hash
* @link https://secure.php.net/manual/en/function.password-get-info.php
* @param string $hash A hash created by password_hash().
* @return array|null Returns an associative array with three elements:
* <ul>
* <li>
* <em>algo</em>, which will match a
* {@link https://secure.php.net/manual/en/password.constants.php password algorithm constant}
* </li>
* <li>
* <em>algoName</em>, which has the human readable name of the algorithm
* </li>
* <li>
* <em>options</em>, which includes the options
* provided when calling @link https://secure.php.net/manual/en/function.password-hash.php" password_hash()
* </li>
* </ul>
* @since 5.5
*/
#[ArrayShape(["algo" => "int", "algoName" => "string", "options" => "array"])]
function password_get_info(string $hash): ?array {}
/**
* (PHP 5 >= 5.5.0, PHP 5)<br/>
*
* Creates a password hash.
* @link https://secure.php.net/manual/en/function.password-hash.php
* @param string $password The user's password.
* @param string|int|null $algo A <a href="https://secure.php.net/manual/en/password.constants.php" class="link">password algorithm constant</a> denoting the algorithm to use when hashing the password.
* @param array $options [optional] <p> An associative array containing options. See the <a href="https://secure.php.net/manual/en/password.constants.php" class="link">password algorithm constants</a> for documentation on the supported options for each algorithm.</p>
* If omitted, a random salt will be created and the default cost will be used.
* <b>Warning</b>
* <p>
* The salt option has been deprecated as of PHP 7.0.0. It is now
* preferred to simply use the salt that is generated by default.
* </p>
* @return string|false|null Returns the hashed password, or FALSE on failure, or null if the algorithm is invalid
* @since 5.5
*/
function password_hash(string $password, string|int|null $algo, array $options = []): string|false|null {}
/**
* Checks if the given hash matches the given options.
* @link https://secure.php.net/manual/en/function.password-needs-rehash.php
* @param string $hash A hash created by password_hash().
* @param string|int|null $algo A <a href="https://secure.php.net/manual/en/password.constants.php" class="link">password algorithm constant</a> denoting the algorithm to use when hashing the password.
* @param array $options [optional] <p> An associative array containing options. See the password algorithm constants for documentation on the supported options for each algorithm.</p>
* @return bool Returns TRUE if the hash should be rehashed to match the given algo and options, or FALSE otherwise.
* @since 5.5
*/
function password_needs_rehash(string $hash, string|int|null $algo, array $options = []): bool {}
/**
* Checks if the given hash matches the given options.
* @link https://secure.php.net/manual/en/function.password-verify.php
* @param string $password The user's password.
* @param string $hash A hash created by password_hash().
* @return bool Returns TRUE if the password and hash match, or FALSE otherwise.
* @since 5.5
*/
function password_verify(string $password, string $hash): bool {}

View File

@ -4,6 +4,16 @@ use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\ExpectedValues;
use JetBrains\PhpStorm\Pure;
/**
* (PHP 5.5.0)<br/>
* Get the boolean value of a variable
* @param mixed $value <p>the scalar value being converted to a boolean.</p>
* @return bool The boolean value of var.
* @since 5.5
*/
#[Pure]
function boolval(mixed $value): bool {}
/**
* Get the integer value of a variable
* @link https://php.net/manual/en/function.intval.php

View File

@ -88,6 +88,19 @@ function array_values(array $array): array {}
#[Pure]
function array_count_values(array $array): array {}
/**
* (PHP 5 >=5.5.0)<br/>
* Return the values from a single column in the input array
* @link https://secure.php.net/manual/en/function.array-column.php
* @param array $array <p>A multi-dimensional array (record set) from which to pull a column of values.</p>
* @param string|int|null $column_key <p>The column of values to return. This value may be the integer key of the column you wish to retrieve, or it may be the string key name for an associative array. It may also be NULL to return complete arrays (useful together with index_key to reindex the array).</p>
* @param string|int|null $index_key [optional] <p>The column to use as the index/keys for the returned array. This value may be the integer key of the column, or it may be the string key name.</p>
* @return array Returns an array of values representing a single column from the input array.
* @since 5.5
*/
#[Pure]
function array_column(array $array, string|int|null $column_key, string|int|null $index_key = null): array {}
/**
* Return an array with elements in reverse order
* @link https://php.net/manual/en/function.array-reverse.php