跳转到主要内容

章节PHP Manual

Appendices

146 页更新于 1 天前

开始阅读

本章内容146

  1. 01 About the manual Formats The PHP manual is provided in several formats. These formats can be divided into two groups: online... 1 天前
  2. 02 List of Function Aliases There are quite a few functions in PHP which you can call with more than one name. In some cases there is n... 1 天前
  3. 03 PHP type comparison tables The following tables demonstrate behaviors of PHP types and comparison operators, for both loose and strict... 1 天前
  4. 04 Configure options List of core configure options Below is a partial list of configure options used by the PHP configure scri... 1 天前
  5. 05 misc Misc options --enable-debug Compile with debugging symbols. --with-layout=TYPE Sets how installed files wil... 1 天前
  6. 06 php PHP options --enable-maintainer-mode Enable make rules and dependencies not useful (and sometimes confusing... 1 天前
  7. 07 servers SAPI options The following list contains the available SAPIENTITYs ( Server Application Programming Interfa... 1 天前
  8. 08 Debugging in PHP About debugging in PHP PHP is shipped with a basic command line interactive debugger, phpdbg. Most IDEs hav... 1 天前
  9. 09 About manual examples It should be noted that many examples in the PHP documentation omit error and exception handling for clarit... 1 天前
  10. 10 extensions ENTITY ENTITY ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ?... 1 天前
  11. 11 List of Available Filters The following is a list of a few built-in stream filters for use with stream_filter_append. Your version o... 1 天前
  12. 12 History of PHP and Related Projects PHP has come a long way since its birth in the mid-1990's. From humble beginnings to becoming one of the mo... 1 天前
  13. 13 Description of core ENTITY directives This list includes the core ENTITY directives you can set to configure your PHP setup. Directives handled b... 1 天前
  14. 14 List of ENTITY directives This list includes the ENTITY directives that can be used to configure PHP. The "ENTITY" column shows the m... 1 天前
  15. 15 ENTITY directives ENTITY ENTITY ENTITY 1 天前
  16. 16 List of ENTITY sections This list includes the ENTITY sections you can set to configure your PHP setup on a per Host or Path basis.... 1 天前
  17. 17 Creative Commons Attribution 3.0 THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR ... 1 天前
  18. 18 Migrating from PHP 5.5.x to PHP 5.6.x Most improvements in PHP 5.6.x have no impact on existing code. There are a few incompatibilities and new f... 1 天前
  19. 19 Changed functions PHP Core crypt will now raise an E_NOTICE error if the salt parameter is omitted. substr_compare will now... 1 天前
  20. 20 New global constants GD IMG_WEBP (as of PHP 5.6.25) LDAP LDAP_ESCAPE_DN LDAP_ESCAPE_FILTER OpenSSL OPENSSL_DEFAULT_STREAM_CIPHER... 1 天前
  21. 21 Deprecated features in PHP 5.6.x Calls from incompatible context Methods called from an incompatible context are now deprecated, and will ge... 1 天前
  22. 22 Other changes to extensions cURL A number of constants marked obsolete in the cURL library have now been removed: CURLOPT_CLOSEPOLICY C... 1 天前
  23. 23 Backward incompatible changes Although most existing PHP 5 code should work without changes, please take note of some backward incompatib... 1 天前
  24. 24 New features Constant expressions It is now possible to provide a scalar expression involving numeric and string literal... 1 天前
  25. 25 New functions Date and Time DateTimeImmutable::createFromMutable GMP gmp_root gmp_rootrem Hash hash_equals LDAP ldap_esca... 1 天前
  26. 26 OpenSSL changes in PHP 5.6.x Stream wrappers now verify peer certificates and host names by default when using SSL/TLS ENTITY Certificat... 1 天前
  27. 27 Migrating from PHP 5.6.x to PHP 7.0.x Despite the fact that PHP 7.0 is a new major version, efforts have been made to make migration as painless ... 1 天前
  28. 28 Changed functions PHP Core debug_zval_dump now prints "int" instead of "long", and "float" instead of "double" dirname now op... 1 天前
  29. 29 New Classes and Interfaces Intl IntlChar Reflection ReflectionGenerator ReflectionType Session Handling SessionUpdateTimestampHandlerI... 1 天前
  30. 30 New Global Constants Core Predefined Constants PHP_INT_MIN GD IMG_WEBP (as of PHP 7.0.10) JSON JSON_ERROR_INVALID_PROPERTY_NAME ... 1 天前
  31. 31 Deprecated features in PHP 7.0.x PHP 4 style constructors PHP 4 style constructors (methods that have the same name as the class they are de... 1 天前
  32. 32 Backward incompatible changes ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY 1 天前
  33. 33 Changes to error and exception handling Many fatal and recoverable fatal errors have been converted to exceptions in PHP 7. These error exceptions ... 1 天前
  34. 34 Changes to ENTITY Minor changes have been made to the behaviour of the ENTITY control structure, primarily around the handlin... 1 天前
  35. 35 Changes to `int` handling Invalid octal literals Previously, octal literals that contained invalid numbers were silently truncated ( ... 1 天前
  36. 36 Other backward incompatible changes New objects cannot be assigned by reference The result of the ENTITY statement can no longer be assigned to... 1 天前
  37. 37 Removed functions call_user_method and call_user_method_array These functions were deprecated in PHP 4.1.0 in favour of cal... 1 天前
  38. 38 Removed INI directives Removed features The following INI directives have been removed as their associated features have also been... 1 天前
  39. 39 Changes to `string` handling Hexadecimal strings are no longer considered numeric Strings containing hexadecimal numbers are no longer c... 1 天前
  40. 40 Changes to variable handling PHP 7 now uses an abstract syntax tree when parsing source files. This has permitted many improvements to t... 1 天前
  41. 41 New features Scalar type declarations Scalar type declarations come in two flavours: coercive (default) and strict. The ... 1 天前
  42. 42 New functions Closure Closure::call CSPRNG random_bytes random_int Error Handling and Logging error_clear_last Generator ... 1 天前
  43. 43 Other Changes Loosening Reserved Word Restrictions Globally reserved words as property, constant, and method names within... 1 天前
  44. 44 Removed Extensions and SAPIs Removed Extensions ereg mssql mysql sybase_ct Removed SAPIs aolserver apache apache_hooks apache2filter cau... 1 天前
  45. 45 Changes in SAPI Modules FPM Unqualified listen ports now listen on both IPv4 and IPv6 In PHP 5, a listen directive with only a port... 1 天前
  46. 46 Migrating from PHP 7.0.x to PHP 7.1.x This new minor version brings with it a number of new features and a few incompatibilities that should be t... 1 天前
  47. 47 Changed functions PHP Core getopt has an optional third parameter that exposes the index of the next element in the argument ... 1 天前
  48. 48 New global constants Core Predefined Constants PHP_FD_SETSIZE CURL CURLMOPT_PUSHFUNCTION CURL_PUSH_OK CURL_PUSH_DENY Data Filter... 1 天前
  49. 49 Deprecated features in PHP 7.1.x ext/mcrypt The mcrypt extension has been abandonware for nearly a decade now, and was also fairly complex t... 1 天前
  50. 50 Backward incompatible changes Throw on passing too few function arguments Previously, a warning would be emitted for invoking user-define... 1 天前
  51. 51 New features Nullable types Type declarations for parameters and return values can now be marked as nullable by prefixin... 1 天前
  52. 52 New functions PHP Core sapi_windows_cp_get sapi_windows_cp_set sapi_windows_cp_conv sapi_windows_cp_is_utf8 Closure Closu... 1 天前
  53. 53 Other changes Notices and warnings on arithmetic with invalid strings New E_WARNING and E_NOTICE errors have been intro... 1 天前
  54. 54 Windows Support Support for long and UTF-8 path If a web application is UTF-8 conform, no further action is required. For a... 1 天前
  55. 55 Migrating from PHP 7.1.x to PHP 7.2.x This new minor version brings with it a number of new features and a few incompatibilities that should be t... 1 天前
  56. 56 New global constants PHP Core PHP_FLOAT_DIG PHP_FLOAT_EPSILON PHP_FLOAT_MIN PHP_FLOAT_MAX PHP_OS_FAMILY File Information FILEINF... 1 天前
  57. 57 Deprecated features in PHP 7.2.x Unquoted strings Unquoted strings that are non-existent global constants are taken to be strings of themsel... 1 天前
  58. 58 Backward incompatible changes Prevent number_format from returning negative zero Previously, it was possible for the number_format func... 1 天前
  59. 59 New features New object type A new type, object, has been introduced that can be used for (contravariant) parameter typ... 1 天前
  60. 60 New functions PHP Core stream_isatty sapi_windows_vt100_support SPL spl_object_id DOM DomNodeList::count DOMNamedNodeMap:... 1 天前
  61. 61 Other changes Moving of utf8_encode and utf8_decode The utf8_encode and utf8_decode functions have now been moved to ... 1 天前
  62. 62 Migrating from PHP 7.2.x to PHP 7.3.x This new minor version brings with it a number of new features and a few incompatibilities that should be t... 1 天前
  63. 63 New Global Constants PHP Core PASSWORD_ARGON2ID Client URL Library CURLAUTH_BEARER CURLAUTH_GSSAPI CURLE_WEIRD_SERVER_REPLY CURL... 1 天前
  64. 64 Deprecated Features PHP Core Case-Insensitive Constants The declaration of case-insensitive constants has been deprecated. Pass... 1 天前
  65. 65 Backward Incompatible Changes PHP Core Heredoc/Nowdoc Ending Label Interpretation Due to the introduction of flexible heredoc/nowdoc synt... 1 天前
  66. 66 New Features PHP Core More Flexible Heredoc and Nowdoc Syntax The closing marker for doc strings is no longer required t... 1 天前
  67. 67 New Functions PHP Core array_key_first array_key_last gc_status hrtime is_countable net_get_interfaces FastCGI Process Ma... 1 天前
  68. 68 Other Changes PHP Core Set(raw)cookie accepts $option Argument setcookie and setrawcookie now also support the following... 1 天前
  69. 69 Windows Support PHP Core More POSIX Conforming File Deletion File descriptors are opened in shared read/write/delete mode b... 1 天前
  70. 70 Migrating from PHP 7.3.x to PHP 7.4.x This new minor version brings with it a number of new features and a few incompatibilities that should be t... 1 天前
  71. 71 New Global Constants PHP Core PHP_WINDOWS_EVENT_CTRL_C PHP_WINDOWS_EVENT_CTRL_BREAK Multibyte String MB_ONIGURUMA_VERSION Socket... 1 天前
  72. 72 Deprecated Features PHP Core Nested ternary operators without explicit parentheses Nested ternary operations must explicitly us... 1 天前
  73. 73 Backward Incompatible Changes PHP Core Array-style access of non-arrays Trying to use values of type null, bool, int, float or resou... 1 天前
  74. 74 New Classes and Interfaces Reflection ReflectionReference 1 天前
  75. 75 New Features PHP Core Typed properties Class properties now support type declarations. <?php class User { public int... 1 天前
  76. 76 New Functions PHP Core get_mangled_object_vars password_algos sapi_windows_set_ctrl_handler GD imagecreatefromtga Multiby... 1 天前
  77. 77 Other Changes Performance Improvements PHP Core A specialized VM opcode for the array_key_exists function has been added... 1 天前
  78. 78 Removed Extensions These extensions have been moved to PECL and are no longer part of the PHP distribution. The PECL package v... 1 天前
  79. 79 Windows Support configure flags configure now regards additional CFLAGS and LDFLAGS set as environment variables. CTRL ha... 1 天前
  80. 80 Migrating from PHP 7.4.x to PHP 8.0.x This new major version brings with it a number of new features and some incompatibilities that should be te... 1 天前
  81. 81 Deprecated Features PHP Core If a parameter with a default value is followed by a required parameter, the default value has no ... 1 天前
  82. 82 Backward Incompatible Changes PHP Core String to Number Comparison Non-strict comparisons between numbers and non-numeric strings now wor... 1 天前
  83. 83 New Classes and Interfaces cURL CurlHandle CurlMultiHandle CurlShareHandle Enchant EnchantBroker EnchantDictionary GD GdImage OpenSSL ... 1 天前
  84. 84 New Features PHP Core Named Arguments Support for Named Arguments has been added. Attributes Support for Attributes has ... 1 天前
  85. 85 Other Changes Changes in SAPI Modules Apache2Handler The PHP module has been renamed from php7_module to php_module. Ch... 1 天前
  86. 86 Migrating from PHP 8.0.x to PHP 8.1.x This new minor version brings with it a number of new features and a few incompatibilities that should be t... 1 天前
  87. 87 New Global Constants cURL CURLOPT_DOH_URL CURLOPT_ISSUERCERT_BLOB CURLOPT_PROXY_ISSUERCERT CURLOPT_PROXY_ISSUERCERT_BLOB CURLOPT... 1 天前
  88. 88 Deprecated Features PHP Core Implementing Serializable without __serialize and __unserialize Either only the new methods shou... 1 天前
  89. 89 Backward Incompatible Changes PHP Core $GLOBALS Access Restrictions Access to the $GLOBALS array is now subject to a number of restricti... 1 天前
  90. 90 New Classes and Interfaces cURL CURLStringFile FileInfo finfo FTP FTP\Connection IMAP IMAP\Connection Intl IntlDatePatternGenerator LD... 1 天前
  91. 91 New Features PHP Core Integer Octal Literal Prefix Octal integers can now use an explicit 0o/ 0O prefix in integer lite... 1 天前
  92. 92 New Functions PHP Core array_is_list GD imagecreatefromavif imageavif MySQLi mysqli_result::fetch_column mysqli_fetch_col... 1 天前
  93. 93 Other Changes Changes in SAPI Modules CLI Using -a without the readline extension will now result in an error. Previousl... 1 天前
  94. 94 Migrating from PHP 8.1.x to PHP 8.2.x This new minor version brings with it a number of new features and a few incompatibilities that should be t... 1 天前
  95. 95 New Global Constants COM DISP_E_PARAMNOTFOUND LOCALE_NEUTRAL cURL CURLALTSVC_H1 (libcurl >= 7.64.1) CURLALTSVC_H2 (libcurl >= 7.... 1 天前
  96. 96 Deprecated Features PHP Core Usage of dynamic properties The creation of dynamic properties is deprecated, unless the class opt... 1 天前
  97. 97 Backward Incompatible Changes Date DateTime::createFromImmutable now has a tentative return type of static, previously it was DateTime.... 1 天前
  98. 98 New Features PHP Core SensitiveParameter Attribute Added the #[\SensitiveParameter] attribute to redact sensitive data ... 1 天前
  99. 99 New Functions cURL curl_upkeep IMAP imap_is_open (as of PHP 8.2.1) MySQLi mysqli_execute_query ODBC odbc_connection_strin... 1 天前
  100. 100 Other Changes Core changes The iterable type is now a built-in compile time alias for arrayTraversable. Error messages ... 1 天前
  101. 101 Windows Support Core Windows specific error messages are no longer localized, but instead always displayed in English to be... 1 天前
  102. 102 Migrating from PHP 8.2.x to PHP 8.3.x This new minor version brings with it a number of new features and a few incompatibilities that should be t... 1 天前
  103. 103 New Global Constants cURL CURLINFO_CAPATH (libcurl >= 7.84.0) CURLINFO_CAINFO (libcurl >= 7.84.0) CURLOPT_MIME_OPTIONS (libcurl ... 1 天前
  104. 104 Deprecated Features PHP Core Saner Increment/Decrement operators Using the increment operator ( ++) on empty, non-numeric, or n... 1 天前
  105. 105 Backward Incompatible Changes PHP Core Programs that were very close to overflowing the call stack Programs that were very close to overf... 1 天前
  106. 106 New Classes and Interfaces Date DateError DateObjectError DateRangeError DateException DateInvalidOperationException DateInvalidTimeZo... 1 天前
  107. 107 New Features PHP Core Readonly Amendments Anonymous classes may now be marked as readonly. Readonly properties can now b... 1 天前
  108. 108 New Functions Date DatePeriod::createFromISO8601String DOM DOMElement::getAttributeNames DOMElement::insertAdjacentElemen... 1 天前
  109. 109 Other Changes Core changes FFI FFI::load is now allowed during preloading when opcache.preload_user is the current system... 1 天前
  110. 110 Windows Support Core Minimum supported Windows version has been bumped to Windows 8 or Windows Server 2012. 1 天前
  111. 111 Migrating from PHP 8.3.x to PHP 8.4.x This new minor version brings with it a number of new features and a few incompatibilities that should be t... 1 天前
  112. 112 New Global Constants Core PHP_OUTPUT_HANDLER_PROCESSED PHP_SBINDIR cURL CURL_HTTP_VERSION_3 CURL_HTTP_VERSION_3ONLY CURLOPT_TCP_... 1 天前
  113. 113 Deprecated Features PHP Core Implicitly nullable parameter A parameter's type is implicitly widened to accept null if the defa... 1 天前
  114. 114 Backward Incompatible Changes Although not explicitly stated in this section, every new function, class, interface, enum, or constant may... 1 天前
  115. 115 New Classes, Enums, and Interfaces Core Deprecated RequestParseBodyException BCMath BcMath\Number DBA Dba\Connection DOM Dom\HTMLDocument Dom\... 1 天前
  116. 116 New Features PHP Core Property Hooks Object properties may now have additional logic associated with their get and set... 1 天前
  117. 117 New Functions Core request_parse_body BCMath bcceil bcdivmod bcfloor bcround Date DateTime::createFromTimestamp DateTime:... 1 天前
  118. 118 Other Changes Core changes Closures Closure names have been adjusted to include the parent function's name and the line o... 1 天前
  119. 119 Removed Extensions These extensions have been moved to PECL and are no longer part of the PHP distribution. New releases for t... 1 天前
  120. 120 Windows Support Core Building with Visual Studio now requires at least Visual Studio 2019. However, Visual Studio 2022 is r... 1 天前
  121. 121 Migrating from PHP 8.4.x to PHP 8.5.x This new minor version brings with it a number of new features and a few incompatibilities that should be t... 1 天前
  122. 122 New Global Constants Core PHP_BUILD_DATE PHP_BUILD_PROVIDER cURL CURLINFO_USED_PROXY CURLINFO_HTTPAUTH_USED CURLINFO_PROXYAUTH_U... 1 天前
  123. 123 Deprecated Features PHP Core Changes to user output handler Trying to produce output (e.g. with echo) within a user output han... 1 天前
  124. 124 Backward Incompatible Changes PHP Core "array" and "callable" alias name It is no longer possible to use "array" and "callable" as cla... 1 天前
  125. 125 New Classes and Interfaces Core NoDiscard DelayedTargetValidation Curl CurlSharePersistentHandle Filter Filter\FilterException Filter\... 1 天前
  126. 126 New Features PHP Core Pipe Operator Added the pipe ( |ENTITY) operator. <?php $result = "Hello World" |> strlen(...); pr... 1 天前
  127. 127 New Functions Core get_error_handler get_exception_handler Closure::getCurrent Curl curl_multi_get_handles curl_share_ini... 1 天前
  128. 128 Other Changes Core changes Core The high resolution timer ( hrtime) on macOS now uses the recommended clock_gettime_nsec... 1 天前
  129. 129 Windows Support Core The configuration variables PHP_VERSION, PHP_MINOR_VERSION, and PHP_RELEASE_VERSION are now always ... 1 天前
  130. 130 Migrating from PHP 8.5.x to PHP 8.6.x This new minor version brings with it a number of new features and a few incompatibilities that should be t... 1 天前
  131. 131 New Global Constants Core ARRAY_FILTER_USE_VALUE STREAM_CRYPTO_STATUS_NONE STREAM_CRYPTO_STATUS_WANT_READ STREAM_CRYPTO_STATUS_W... 1 天前
  132. 132 Deprecated Features PHP Core Using "namespace" as a class constant name Declaring a class constant named namespace is now depr... 1 天前
  133. 133 Backward Incompatible Changes PHP Core By-reference foreach after array compaction By-reference foreach loops may now visit previously sk... 1 天前
  134. 134 New Classes and Interfaces Core SortDirection StreamError StreamException StreamErrorStore StreamErrorMode StreamErrorCode Io\IoExcept... 1 天前
  135. 135 New Features PHP Core Default values for readonly properties Readonly properties may now declare default values. <?php c... 1 天前
  136. 136 New Functions Core clamp returns the given value if in range, else returns the nearest bound. stream_last_errors stream_c... 1 天前
  137. 137 Other Changes Core changes Core In case of a hard OOM (out of memory) condition, PHP now calls abort() instead of exit(... 1 天前
  138. 138 Windows Support Core The official Windows builds now use Visual Studio 2026 (VS18). LibXML The libxml2 library used by the ... 1 天前
  139. 139 Core Predefined Constants These constants are defined by the PHP core. This includes PHP, the Zend engine, and SAPI modules. PHP_VERS... 1 天前
  140. 140 ENTITY ENTITY ENTITY 1 天前
  141. 141 Standard Predefined Constants All constants from core extensions are defined in PHP by default. 1 天前
  142. 142 List of Reserved Words The following is a listing of predefined identifiers in PHP. None of the identifiers listed here should be ... 1 天前
  143. 143 List of Resource Types The following is a list of functions which create, use or destroy PHP resources. The function is_resource ... 1 天前
  144. 144 List of Parser Tokens Various parts of the PHP language are represented internally by tokens. A code snippet that contains an inv... 1 天前
  145. 145 List of Supported Socket Transports The following is a list of the various URL style socket transports that PHP has built-in for use with the s... 1 天前
  146. 146 Userland Naming Guide The following is a guide for how to best choose names for identifiers in userland PHP code. When choosing n... 1 天前