对绑定的扩展的函数有以下更新。
Version | Function | Description |
---|---|---|
Since 5.0.0 | get_parent_class | The object parameter is optional if called from the object's method. |
Since 5.0 | cal_info | 参数calendar作为可选项,缺省时默认值为"所有历法"。 |
Since 4.3.0 | easter_date | year参数可选,缺省的默认值是当年。 |
easter_days | 引入参数 method。 | |
easter_days | 参数year 可选,缺省默认值是当年。 | |
Since 4.2.0 | srand | seed 成为可选,省略时会默认使用随机值。 |
Since 4.0.5 | get_parent_class | If object is a string, returns the name of the parent class of the class with that name. |
prior to 5.3.0 | get_object_vars | If the object isn't an object, then get_object_vars would return FALSE |
Prior to 5.1.3 | imagecolorallocatealpha | Returns -1 if the allocation failed. |
prior to 4.2.0 | get_object_vars | If the variables declared in the class of which the object is an instance, have not been assigned a value, those will not be returned in the array |
PHP 7.1.4 | PDO::sqliteCreateFunction | The flags has been added. |
SQLite3::createFunction | The flags has been added. | |
PHP 7.0.15, PHP 7.1.1 | get_defined_functions | 增加 exclude_disabled 参数。 |
PHP 5.3.2 (PECL OCI8 1.4) | oci_set_prefetch | Before this release, rows must be >= 1. |
PHP 5.3 (PECL OCI8 1.3.4) | oci_set_prefetch | Before this release, prefetching was limited to the lesser of rows rows and 1024 * rows bytes. The byte size restriction has now been removed. |
dbase 7.0.0 | dbase_add_record | dbase_identifier is now a resource instead of an int. |
dbase_close | dbase_identifier is now a resource instead of an int. | |
dbase_create | The return value is now a resource instead of an int. | |
dbase_delete_record | dbase_identifier is now a resource instead of an int. | |
dbase_get_header_info | dbase_identifier is now a resource instead of an int. | |
dbase_get_record | dbase_identifier is now a resource instead of an int. | |
dbase_get_record_with_names | dbase_identifier is now a resource instead of an int. | |
dbase_numfields | dbase_identifier is now a resource instead of an int. | |
dbase_numrecords | dbase_identifier is now a resource instead of an int. | |
dbase_open | The return value is now a resource instead of an int. | |
dbase_pack | dbase_identifier is now a resource instead of an int. | |
dbase_replace_record | dbase_identifier is now a resource instead of an int. | |
Before 5.1.0 | get_parent_class | If called without parameter outside object, this function would have returned NULL with a warning. |
7.2.0 | hash_hmac | 不再支持非加密的哈希函数(adler32,crc32,crc32b,fnv132,fnv1a32,fnv164,fnv1a64,joaat)。 |
hash_hmac_file | 不再支持非加密的哈希函数(adler32,crc32,crc32b,fnv132,fnv1a32,fnv164,fnv1a64,joaat)。 | |
hash_init | 当使用 HASH_HMAC 选项的时候,不再支持非加密的哈希函数(adler32,crc32,crc32b,fnv132,fnv1a32,fnv164,fnv1a64,joaat)。 | |
hash_pbkdf2 | 不再支持非加密的哈希函数(adler32,crc32,crc32b,fnv132,fnv1a32,fnv164,fnv1a64,joaat)。 | |
idn_to_ascii | INTL_IDNA_VARIANT_2003 has been deprecated; use INTL_IDNA_VARIANT_UTS46 instead. | |
idn_to_utf8 | INTL_IDNA_VARIANT_2003 has been deprecated; use INTL_IDNA_VARIANT_UTS46 instead. | |
parse_str | 不带第二个参数的情况下使用 parse_str 会产生 E_DEPRECATED 警告。 | |
proc_nice | 在 Windows 平台上可用。 | |
SQLite3::openBlob | The flags parameter has been added, allowing to write BLOBs; formerly only reading was supported. | |
7.1.5 | IntlDateFormatter::format | Support for providing general DateTimeInterface objects to the value parameter was added. Formerly, only proper DateTime objects were supported. |
7.1.0 | DateInterval::format | The F and f format characters were added. |
DateTime::setTime | The microseconds parameter was added. | |
array_rand | 内置的随机数生成算法从 libc rand 函数改成梅森旋转 伪随机数生成算法。 | |
getopt | 添加 optind 参数。 | |
grapheme_extract | Support for negative starts has been added. | |
grapheme_stripos | Support for negative offsets has been added. | |
grapheme_strpos | Support for negative offsets has been added. | |
iconv_strpos | Support for negative offsets has been added. | |
json_decode | An empty JSON key ("") can be encoded to the empty object property instead of using a key with value _empty_. | |
json_encode | 对 Double 的值进行编码时,使用 serialize_precision 代替 precision。 | |
long2ip | 参数 proper_address 的类型从 string 改成 integer。 | |
mb_ereg | mb_ereg will now set regs to an empty array, if nothing matched. Formerly, regs was not modified in that case. | |
mb_ereg_replace | The e modifier has been deprecated. | |
mb_ereg_search_setpos | Support for negative positions has been added. | |
mb_eregi | mb_eregi will now set regs to an empty array, if nothing matched. Formerly, regs was not modified in that case. | |
mb_eregi_replace | The e modifier has been deprecated. | |
mb_strimwidth | 支持负数的 start 和 width。 | |
mb_stripos | 支持 offset 使用负数。 | |
mb_strpos | 支持负数的 offset。 | |
openssl_decrypt | The tag and aad parameters were added. | |
openssl_encrypt | 增加了 tag、aad、tag_length 参数 | |
openssl_pkey_new | The curve_name configarg was added to make it possible to create EC keys. | |
shuffle | 内置的随机数产生算法从 libc rand 函数改成 梅森旋转伪随机数生成算法。 | |
str_shuffle | 内置的随机算法从 libc rand 函数改成了梅森旋转演伪随机数发生算法。 | |
stripos | 开始支持负数的 offset。 | |
strpos | 开始支持负数的 offset。 | |
substr_count | 开始支持负数的 offset 和 length。 | |
7.1 | DateTime::__construct | From now on microseconds are filled with actual value. Not with '00000'. |
7.0.15,7.1.1 | pack | The "e", "E", "g" and "G" codes were added to enable byte order support for float and double. |
7.0.11 | iconv_substr | 如果 str 等长于 offset 个字符, 将返回空字符串。之前的版本里,这种情况是会返回 FALSE 的。 |
7.0.10 | SQLite3::__construct | The filename can now be empty to use a private, temporary on-disk database. |
7.0.7 | curl_setopt | 引入 CURL_HTTP_VERSION_2、 CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE、 CURL_HTTP_VERSION_2TLS、 CURL_REDIR_POST_301、 CURL_REDIR_POST_302、 CURL_REDIR_POST_303、 CURL_REDIR_POST_ALL、 CURL_VERSION_KERBEROS5、 CURL_VERSION_PSL、 CURL_VERSION_UNIX_SOCKETS、 CURLAUTH_NEGOTIATE、 CURLAUTH_NTLM_WB、 CURLFTP_CREATE_DIR、 CURLFTP_CREATE_DIR_NONE、 CURLFTP_CREATE_DIR_RETRY、 CURLHEADER_SEPARATE、 CURLHEADER_UNIFIED、 CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE、 CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE、 CURLMOPT_MAX_HOST_CONNECTIONS、 CURLMOPT_MAX_PIPELINE_LENGTH、 CURLMOPT_MAX_TOTAL_CONNECTIONS、 CURLOPT_CONNECT_TO、 CURLOPT_DEFAULT_PROTOCOL、 CURLOPT_DNS_INTERFACE、 CURLOPT_DNS_LOCAL_IP4、 CURLOPT_DNS_LOCAL_IP6、 CURLOPT_EXPECT_100_TIMEOUT_MS、 CURLOPT_HEADEROPT、 CURLOPT_LOGIN_OPTIONS、 CURLOPT_PATH_AS_IS、 CURLOPT_PINNEDPUBLICKEY、 CURLOPT_PIPEWAIT、 CURLOPT_PROXY_SERVICE_NAME、 CURLOPT_PROXYHEADER、 CURLOPT_SASL_IR、 CURLOPT_SERVICE_NAME、 CURLOPT_SSL_ENABLE_ALPN、 CURLOPT_SSL_ENABLE_NPN、 CURLOPT_SSL_FALSESTART、 CURLOPT_SSL_VERIFYSTATUS、 CURLOPT_STREAM_WEIGHT、 CURLOPT_TCP_FASTOPEN、 CURLOPT_TFTP_NO_OPTIONS、 CURLOPT_UNIX_SOCKET_PATH、 CURLOPT_XOAUTH2_BEARER、 CURLPROTO_SMB、 CURLPROTO_SMBS、 CURLPROXY_HTTP_1_0、 CURLSSH_AUTH_AGENT 和 CURLSSLOPT_NO_REVOKE。 |
7.0.0 | array_column | input 参数现在可以是包含对象的数组。 |
assert | assert is now a language construct and not a function. assertion can now be an expression. The second parameter is now interpreted either as an exception (if a Throwable object is given), or as the description supported from PHP 5.4.8 onwards. | |
curl_setopt | 禁用 CURLOPT_SAFE_UPLOAD 的选项已被删掉了。 所有的 curl 文件的上传都必须使用 CURLFile。 | |
define | 允许 array 的值。 | |
dl | PHP-FPM 模式下已禁用 dl。 | |
getrusage | 此函数现在开始支持 Windows。 | |
json_decode | An empty PHP string or value that after casting to string is an empty string (NULL, FALSE) results in JSON syntax error. | |
json_decode | Rejected RFC 7159 incompatible number formats - top level (07, 0xff, .1, -.1) and all levels ([1.], [1.e1]) | |
key | array 现在总是会传值。 在此之前,它会尽可能传引用,否则就传值。 | |
list | 赋值操作的顺序发生了变化。 | |
list | 字符串无法再被拆包(unpack)。 | |
list | list 表达式不再可以完全为空。 | |
mktime | is_dst参数已经被移除。 | |
openssl_open | The iv has been added. | |
openssl_seal | The iv has been added. | |
preg_replace | 不再支持 /e修饰符。 请用 preg_replace_callback 代替。 | |
session_regenerate_id | session_regenerate_id 函数在关闭过期会话之前保存其中的数据。 | |
session_start | 新加 options 参数。 | |
shmop_close | The type of shmid has been changed from int to resource. | |
shmop_delete | The type of shmid has been changed from int to resource. | |
shmop_open | The return type of shmop_open has been changed from int to resource. | |
shmop_read | The type of shmid has been changed from int to resource. | |
shmop_size | The type of shmid has been changed from int to resource. | |
shmop_write | The type of shmid has been changed from int to resource. | |
substr | 如果 string 的字符串长度与 start 相同时将返回一个空字符串。在之前的版本中,这种情况将返回 FALSE 。 | |
IntlDateFormatter::setTimeZoneId | This function has been removed. | |
5.6.6 | json_encode | options 参数增加常量: JSON_PRESERVE_ZERO_FRACTION |
5.6.5 | crypt | When the failure string "*0" is given as the salt, "*1" will now be returned for consistency with other crypt implementations. Prior to this version, PHP 5.6 would incorrectly return a DES hash. |
5.6.3 | pack | The "q", "Q", "J" and "P" codes were added to enable working with 64-bit numbers. |
5.6.1 | sem_acquire | The $nowait parameter was added. |
5.6.0 | array_fill | num 现在可以是零。 之前 num 必须大于零。 |
array_filter | 添加可选的参数 flag,以及常量 ARRAY_FILTER_USE_KEY 和 ARRAY_FILTER_USE_BOTH。 | |
crypt | Raise E_NOTICE security warning if salt is omitted. | |
curl_setopt | 默认 CURLOPT_SAFE_UPLOAD为 TRUE 。 | |
curl_setopt | 移出 CURLOPT_CLOSEPOLICY和相关的值。 | |
escapeshellcmd | The default value for the encoding parameter was changed to be the value of the default_charset configuration option. | |
hash_algos | 加入对 gost-crypto 算法的支持。 参照 RFC 4357,11.2 小节 定义的 CryptoPro S-box 表格实现 GOST 哈希函数。 | |
html_entity_decode | The default value for the encoding parameter was changed to be the value of the default_charset configuration option. | |
htmlentities | The default value for the encoding parameter was changed to be the value of the default_charset configuration option. | |
htmlspecialchars | The default value for the encoding parameter was changed to be the value of the default_charset configuration option. | |
json_decode | Invalid non-lowercased variants of the true, false and null literals are no longer accepted as valid input, and will generate warnings. | |
mb_regex_encoding | Default encoding is changed to UTF-8. It was EUC-JP Previously. | |
mcrypt_create_iv | source 参数的默认值是 MCRYPT_DEV_URANDOM。 | |
mcrypt_decrypt | 不再接受无效长度的 key and iv 参数。 如果参数长度无效,则 mcrypt_decrypt 函数会产生警告并且返回 FALSE。 之前版本中,对于长度不足的密钥和初始向量会在其后补齐 '\0' 使其达到有效长度。 | |
mcrypt_encrypt | 不再接受无效长度的 key and iv 参数。 如果参数长度无效,则 mcrypt_decrypt 函数会产生警告并且返回 FALSE。 之前版本中,对于长度不足的密钥和初始向量会在其后补齐 '\0' 使其达到有效长度。 | |
pg_lo_truncate | Added truncate function. It supports PostgreSQL 9.3's 64bit large object. Both client and server must support PostgreSQL 9.3 and PHP must be 64bit build to use 64bit large object. | |
stream_socket_enable_crypto | Introduce STREAM_CRYPTO_METHOD_ANY_CLIENT, STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT, STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT, STREAM_CRYPTO_METHOD_ANY_SERVER, STREAM_CRYPTO_METHOD_TLSv1_0_SERVER, STREAM_CRYPTO_METHOD_TLSv1_1_SERVER, STREAM_CRYPTO_METHOD_TLSv1_2_SERVER. | |
stream_socket_enable_crypto | The crypto_type is now optional. | |
substr_compare | length 可以是 0。 | |
ReflectionClass::newInstanceWithoutConstructor | All internal classes can now be instantiated except for those declared final. | |
XMLReader::getAttributeNo | XMLReader::getAttributeNo now returns NULL if the attribute doesn't exist. | |
XMLReader::getAttributeNs | XMLReader::getAttributeNS now returns NULL if the attribute doesn't exist. | |
5.5.21 | crypt | When the failure string "*0" is given as the salt, "*1" will now be returned for consistency with other crypt implementations. Prior to this version, PHP 5.5 (and earlier branches) would incorrectly return a DES hash. |
5.5.19/5.6.3 | imagescale | The calculation of the height if new_height was negative or omitted was fixed; prior to these versions, the aspect ratio was not maintained correctly. |
5.5.8 | DatePeriod::__construct | end type changed to DateTimeInterface. Previously, DateTime. |
5.5.7 | apache_request_headers | 此函数可用于 CLI server。 |
apache_response_headers | 此函数可用于 CLI server. | |
getallheaders | 此函数可用于 CLI server。 | |
5.5.2 | DOMDocument::schemaValidate | Added the flags parameter |
DOMDocument::schemaValidateSource | Added the flags parameter | |
5.5.1 | hex2bin | 如果输入的字符串是无效的十六进制字符串则抛出一个警告, |
session_set_save_handler | 加入可选参数 create_sid。 | |
5.5.0/PECL 3.0.0 | IntlDateFormatter::create | An IntlCalendar object is allowed for calendar. Objects of type IntlTimeZone and DateTimeZone are allowed for timezone. Invalid timezone identifiers (including empty strings) are no longer allowed for timezone. If NULL is given for timezone, the timezone identifier given by date_default_timezone_get will be used instead of ICU?s default. |
IntlDateFormatter::format | Support for providing IntlCalendar objects to the value parameter was added. | |
IntlDateFormatter::setCalendar | It became possible to pass an IntlCalendar object. | |
5.5.0 | DatePeriod::__construct | start type changed to DateTimeInterface. Previously, DateTime. |
curl_setopt | 添加 cURL 资源作为 CURLOPT_PROGRESSFUNCTION 回调函数的第一个参数。 | |
curl_setopt | 引入 CURLOPT_SHARE。 | |
empty | empty 现在支持表达式了,而不仅仅是变量。 | |
ip2long | Prior to this version, on Windows ip2long would sometimes return a valid number even if passed a value which was not an (IPv4) Internet Protocol dotted address. | |
json_encode | 增加了 JSON_PARTIAL_OUTPUT_ON_ERROR 选项。 | |
json_encode | 增加 depth 参数。 | |
json_encode | 失败时返回的值从 null 字符串改成 FALSE。 | |
pack | The "Z" code was added with equivalent functionality to "a" for Perl compatibility. | |
php_logo_guid | php_logo_guid 从 PHP 中移除。 | |
preg_replace | /e 修饰符已经被弃用了。使用 preg_replace_callback 代替。参见文档中 PREG_REPLACE_EVAL 关于安全风险的更多信息。 | |
setcookie | 发送给客户端的 Set-Cookie 头现在会包含 Max-Age 属性。 | |
setrawcookie | 发送给客户端的 Set-Cookie 头现在会加上 Max-Age 属性。 | |
unpack | Changes were made to bring this function into line with Perl: The "a" code now retains trailing NULL bytes. The "A" code now strips all trailing ASCII whitespace (spaces, tabs, newlines, carriage returns, and NULL bytes). The "Z" code was added for NULL-padded strings, and removes trailing NULL bytes. | |
zend_logo_guid | zend_logo_guid 从 PHP 中移除了。 | |
IntlDateFormatter::setTimeZoneId | This function has been deprecated. | |
SoapClient::SoapClient | New ssl_method option. | |
5.4.43, 5.5.27, 5.6.11 | escapeshellcmd | 感叹号会被空格所替换。 |
5.4.32, 5.5.16 | ucwords | 增加了 delimiters 参数。 |
5.4.8 | assert | 增加了参数 description。 description 现在也作为第四个参数提供给 ASSERT_CALLBACK 模式里的回调函数。 |
mb_strcut | Passing NULL as length extracts all bytes to the end of the string. Prior to this version NULL was treated the same as 0. | |
mb_substr | length 传入 NULL,则从 start 提取到字符串的结尾处。 在之前的版本里, NULL 会被当作 0 来处理。 | |
5.4.7 | parse_url | 修复了 host 在 协议 省略时的识别。 |
5.4.4 | hex2bin | 如果输入的字符串有多余将抛出异常。 PHP 5.4.0 起字符串将被静默地接受,但是最后的字节会被截断。 |
5.4.0/PECL 2.0.0b1 | idn_to_ascii | Added the parameters variant and idna_info; UTS #46 support. |
idn_to_utf8 | Added the parameters variant and idna_info; UTS #46 support. | |
5.4.0 | DOMDocument::loadHTML | Added options parameter. |
DOMDocument::loadHTMLFile | Added options parameter. | |
apache_child_terminate | 该函数目前也可以用于FastCGI模式了。以前,它仅在PHP作为Apapche的模块安装时支持。 | |
apache_request_headers | 此函数可用于 FastCGI。 此前仅在PHP以 Apache 模块方式运行时支持。 | |
apache_response_headers | 此函数可用于 FastCGI。 此前仅在PHP以 Apache 模块方式运行时支持。 | |
array_combine | (修复)早期版本中如果是空数组就报E_WARNING的错并且返回FALSE。 | |
array_multisort | array1_sort_flags 增加 SORT_NATURAL 和 SORT_FLAG_CASE 选项。 | |
date_default_timezone_get | 不再使用 TZ 来推测时区。 | |
date_default_timezone_get | 不再根据操作系统的信息来推测时区,因为这是不可靠的。 | |
define_syslog_variables | This function was removed from PHP. | |
dns_get_record | 增加了参数raw。 | |
empty | 检查非数字的字符串偏移量会返回 TRUE. | |
filter_input_array | 添加 add_empty 参数. | |
filter_var_array | 添加 add_empty 参数。 | |
get_html_translation_table | The default value for the encoding parameter was changed to UTF-8. | |
get_html_translation_table | The constants ENT_HTML401, ENT_XML1, ENT_XHTML and ENT_HTML5 were added. | |
get_magic_quotes_gpc | 始终返回 FALSE,因为这个魔术引号功能已经从 PHP 中移除了。 | |
get_magic_quotes_runtime | 总是返回 FALSE,因为魔术引号(magic quotes)功能已经从 PHP 中移除。 | |
getallheaders | 此函数可用于 FastCGI。 此前仅在PHP以 Apache 模块方式运行时支持。 | |
gzcompress | Added encoding parameter. | |
gzdeflate | Added encoding parameter. | |
gzencode | FORCE_DEFLATE now generates RFC 1950 compliant output. | |
hash | tiger 算法使用大端(big-endian)字节序。参见下面的示例。 | |
hash_algos | 加入对于 joaat,fnv132 和 fnv164 算法的支持。移除 Salsa10 和 Salsa20 算法。 | |
html_entity_decode | Default encoding changed from ISO-8859-1 to UTF-8. | |
html_entity_decode | The constants ENT_HTML401, ENT_XML1, ENT_XHTML and ENT_HTML5 were added. | |
htmlentities | encoding 参数的默认值改成 UTF-8。 | |
htmlentities | 增加常量 ENT_SUBSTITUTE、 ENT_DISALLOWED、 ENT_HTML401、 ENT_XML1、 ENT_XHTML、 ENT_HTML5。 | |
htmlspecialchars | encoding 参数的默认值改成 UTF-8。 | |
htmlspecialchars | 增加常量 ENT_SUBSTITUTE、 ENT_DISALLOWED、 ENT_HTML401、 ENT_XML1、 ENT_XHTML、 ENT_HTML5。 | |
htmlspecialchars_decode | 增加了 ENT_HTML401、ENT_XML1、 ENT_XHTML 和 ENT_HTML5 等常量。 | |
http_build_query | 加入了 enc_type 参数。 | |
iconv | 这个版本起,字符非法时候会返回 FALSE,除非在输出字符里指定了 //IGNORE 。 在之前版本,它会返回一部分字符串。 | |
imagewebp | 支持把 resource 流作为 to 参数传入。 | |
isset | 检查字符的非数字偏移量将会返回 FALSE。 | |
json_decode | The options parameter was added. | |
json_encode | options 参数增加常量: JSON_PRETTY_PRINT, JSON_UNESCAPED_SLASHES, 和 JSON_UNESCAPED_UNICODE。 | |
mb_encode_numericentity | Added is_hex parameter. | |
number_format | This function now supports multiple bytes in dec_point and thousands_sep. Only the first byte of each separator was used in older versions. | |
openssl_decrypt | The raw_output was changed to options. | |
openssl_encrypt | raw_output 改到 options。 | |
preg_match_all | 参数matches成为可选的。 | |
scandir | sorting_order now accepts constants. Any nonzero value caused descending order in previous versions. | |
session_set_save_handler | 加入 SessionHandlerInterface 接口以及 SessionHandler 类,以方便用户实现自定义的会话保存管理器。 | |
snmp_set_valueretrieval | Constants SNMP_VALUE_PLAIN or SNMP_VALUE_LIBRARY may be combined with SNMP_VALUE_OBJECT resulting different way of representing contents of value array element in return value of GET-function. If no SNMP_VALUE_{PLAIN,LIBRARY} constant is accompanying SNMP_VALUE_OBJECT, SNMP_VALUE_LIBRARY is used. Prior to 5.4.0 SNMP_VALUE_OBJECT effecively meant SNMP_VALUE_OBJECT|SNMP_VALUE_PLAIN. | |
sort | 添加了 sort_flags 内 SORT_NATURAL 和 SORT_FLAG_CASE 的支持。 | |
Phar::setStub | Added len parameter. | |
PharData::setStub | Added len parameter. | |
SimpleXMLElement::getDocNamespaces | Added from_root parameter. | |
SoapClient::SoapClient | New keep_alive option. | |
5.4 | grapheme_substr | If length is given and positive and the argument string is shorter than the specified length, all the rest of the string according to start parameter is returned. Previously, FALSE was returned. |
5.3.9 | DateTime::createFromFormat | The + format specifier has been added. |
dl | 尽管不推荐,但 PHP-FPM 模式下启用了 dl。 | |
is_a | Added allow_string parameter | |
is_subclass_of | Added allow_string parameter | |
5.3.7 | crypt | Added $2x$ and $2y$ Blowfish modes to deal with potential high-bit attacks. |
5.3.6 | DateTime::modify | Absolute date/time statements now take effect. Previously, only relative parts were used. |
DOMDocument::saveHTML | The node parameter was added. | |
array_product | 空数组现在会产生 1,而之前此函数处理空数组会产生 0。 | |
preg_match | 如果 offset 比 subject 的长度还要大则返回 FALSE。 | |
preg_match_all | 如果 offset 大于 subject 的程度,将返回 FALSE。 | |
PDO_MYSQL DSN | Prior to version 5.3.6, charset was ignored. | |
5.3.4 | get_html_translation_table | The encoding parameter was added. |
rawurlencode | 因为 rawurlencode 使用了 EBCDIC,所以波浪线字符不会再被编码。 | |
sleep | 在PHP 5.3.4之前,Windows平台下无论 sleep 是否成功调用,总是会返回一个 NULL。 | |
strip_tags | strip_tags ignores self-closing XHTML tags in allowable_tags. | |
IntlDateFormatter::format | Support for providing DateTime objects to the value parameter was added. | |
5.3.3 | DOMXPath::evaluate | The registerNodeNS parameter was added. |
DOMXPath::query | The registerNodeNS parameter was added. | |
json_encode | options 参数增加常量:JSON_NUMERIC_CHECK。 | |
ldap_sasl_bind | Support on Windows was added. | |
openssl_decrypt | The iv parameter was added. | |
openssl_encrypt | 增加 iv 参数。 | |
parse_url | 在 URL 解析失败时将不会产生 E_WARNING 级别的错误。 | |
5.3.2 | crypt | 修正了 Blowfish 算法由于非法循环导致的问题,返回“失败”字符串(“*0” 或 “*1”)而不是转而使用 DES 算法。 |
crypt | 基于 Ulrich Drepper 的实现,新增基于 SHA-256 算法和 SHA-512 算法的 crypt。 | |
flock | 在文件资源句柄关闭时不再自动解锁。现在要解锁必须手动进行。 | |
gmp_init | The base was extended from 2 to 36, to 2 to 62 and -2 to -36. | |
gmp_strval | The base was extended from 2 to 36, to 2 to 62 and -2 to -36. | |
5.3.1 | get_defined_constants | 仅作用于 Windows:内核常量归类到 Core,之前是 mhash。 |
ibase_query | On success the function now returns TRUE if there were no affected rows, where it previously returned 0 (a zero followed by an empty space). | |
rename | 可以在 Windows 上跨驱动器 rename 文件。 | |
5.3.0 起 | get_class | object 默认参数现在是 NULL ,所以,现在传入 NULL 到 object 参数时,和没传参数的结果一样。 |
5.3.0 | DateTime::__construct | If time contains an invalid date/time format, then an exception is now thrown. Previously an error was emitted. |
DateTime::modify | 将返回值从NULL改为 DateTime 类型。 | |
DateTime::setDate | 将返回值从NULL改为 DateTime 类型。 | |
DateTime::setISODate | 将返回值从NULL改为 DateTime 类型。 | |
DateTime::setTime | 将返回值从NULL改为 DateTime 类型。 | |
DateTime::setTimezone | 将返回值从NULL改为 DateTime 类型。 | |
DateTimeZone::getTransitions | The optional timestamp_begin and timestamp_end were added. | |
DateTimeZone::listIdentifiers | 添加可选的 what 和 country 参数。 | |
acosh | This function is now available on all platforms | |
array_multisort | array1_sort_flags 增加选项 SORT_LOCALE_STRING。 | |
array_reduce | 修改 initial 类型,允许传入 mixed,之前只能是 integer。 | |
array_search | As with all internal PHP functions as of 5.3.0, array_search returns NULL if invalid parameters are passed to it. | |
asinh | 此函数在所有平台上均可用 | |
atanh | 此函数在所有平台上都可以用了 | |
call_user_func | 对面向对象里面的关键字的解析有所增强。在此之前,使用两个冒号来连接一个类和里面的一个方法,把它作为参数来作为回调函数的话,将会发出一个E_STRICT的警告,因为这个传入的参数被视为静态方法。 | |
call_user_func_array | 对面向对象里面的关键字的解析有所增强。在此之前,使用两个冒号来连接一个类和里面的一个方法,把它作为参数来作为回调函数的话,将会发出一个E_STRICT的警告,因为这个传入的参数被视为静态方法。 | |
checkdnsrr | 这个函数在Windows平台上也可以使用了。 | |
clearstatcache | 增加了可选的 clear_realpath_cache 和 filename 参数. | |
copy | 增加了对 context 的支持。 | |
crypt | PHP 现在包含了它自己的 MD5 Crypt 实现,包括标准 DES 算法,扩展的 DES 算法以及 Blowfish 算法。如果系统缺乏相应的实现,那么 PHP 将使用它自己的实现。 | |
curl_setopt | 引入 CURLOPT_PROGRESSFUNCTION。 | |
date_default_timezone_set | 现在会抛出 E_WARNING 而不是 E_STRICT。 | |
define_syslog_variables | This function now throws an E_DEPRECATED notice. | |
dl | 由于稳定性,dl 在某些 SAPI 中被禁用。仅仅允许 dl 的 SAPI 为 CLI 和 Embed。 使用 扩展加载指令 作为替代。 | |
dns_get_record | 在此版本之前,如果给参数authns传入值,则必须同时传入addtl的值。 | |
dns_get_record | 可以是在windows平台上使用这个函数了。 | |
expm1 | 此函数在所有平台上均可用 | |
fgetcsv | 增加了 escape 参数。 | |
fnmatch | 此函数开始在 Windows 平台上生效。 | |
func_get_arg | If this function is called from the outermost scope of a file which has been included by calling include or require from within a function in the calling file, it now generates a warning and returns FALSE. (不知道如何翻译跟好,直接参考例2即可明白) | |
func_get_arg | 该函数可以在参数列表中使用。 | |
func_get_args | If this function is called from the outermost scope of a file which has been included by calling include or require from within a function in the calling file, it now generates a warning and returns FALSE. (不知道如何翻译跟好,直接参考例2即可明白) | |
func_get_args | 该函数可以在参数列表中使用。 | |
func_num_args | This function can now be used in parameter lists. | |
func_num_args | If this function is called from the outermost scope of a file which has been included by calling include or require from within a function in the calling file, it now generates a warning and returns -1. | |
get_cfg_var | get_cfg_var 被修复,能够返回 "array" 的 ini 选项。 | |
get_defined_constants | 内核常量归类为 Core,之前是 internal。在 Windows 上,内核常量归类到 mhash。 | |
get_object_vars | This function now returns NULL if the object isn't an object. | |
getimagesize | Added icon support. | |
getmxrr | Windows 平台上也能用这个函数了。 | |
getopt | 支持 "=" 作为 参数和值的分隔符。 | |
getopt | 此函数不再依赖于操作系统,现在也能够在 Windows 上运行。 | |
getopt | 增加了可选值的支持(用"::"指定)。 | |
getopt | 参数 longopts 在所有系统平台上均可用。 | |
hash_algos | 加入对 md2,ripemd256,ripemd320,salsa10,salsa20,snefru256 和 sha224 哈希算法的支持。 | |
htmlentities | 增加常量 ENT_IGNORE。 | |
htmlspecialchars | 增加常量 ENT_IGNORE。 | |
imagecolorclosesthwb | 在 Windows 平台上可用 | |
imagefilter | Pixelation support (IMG_FILTER_PIXELATE) was added. | |
inet_ntop | This function is now available on Windows platforms. | |
inet_pton | This function is now available on Windows platforms. | |
ini_get | 当配置项不存在,之前会返回空字符串,现在会返回 FALSE。 | |
ini_get_all | 增加参数 details。 | |
is_a | This function is no longer deprecated, and will therefore no longer throw E_STRICT warnings. | |
json_decode | Added the optional depth. The default recursion depth was increased from 128 to 512 | |
json_encode | 增加 options 参数. | |
link | 该功能在 Windows 平台下开始有效(Vista、 Server 2008 或更高版本)。 | |
linkinfo | Windows 平台上开始可用(Vista、Server 2008 或更高版本)。 | |
log1p | 此函数在所有平台上均可用 | |
mb_get_info | 条目 "http_output_conv_mimetypes" 开始有效。 | |
mcrypt_create_iv | 不再需要提前调用 srand 函数, 由本函数自动完成调用。 | |
mcrypt_create_iv | MCRYPT_DEV_RANDOM 和 MCRYPT_DEV_URANDOM 在 Windows 平台也可用了。 | |
mktime | mktime now throws E_DEPRECATED notice if the is_dst parameter is used. | |
nl2br | 新增可选的 is_xhtml 参数。在此之前,总是插入 '<br />'。 | |
openssl_open | The method has been added. | |
openssl_seal | The method has been added. | |
openssl_seal | The method parameter was added. | |
parse_ini_file | Added optional scanner_mode parameter. Single quotes may now be used around variable assignments. Hash marks (#) may no longer be used as comments and will throw a deprecation warning if used. | |
pg_lo_import | The optional object_id was added. | |
preg_quote | 字符 - 被增加为需要转义的。 | |
property_exists | This function checks the existence of a property independent of accessibility. | |
rawurlencode | 现在符合了RFC 3986。 | |
readlink | 此函数在 Windows 平台下可用(Vista、Server 2008 或更高版本)。 | |
realpath | 在之前的版本中,在 *BSD 系统上,如果仅仅是 path 不存在的话,realpath 并不会像其它系统那样返回 FALSE。 | |
register_tick_function | Ticks are now supported on threaded web server modules. | |
round | 引入了 mode 参数 | |
session_start | 如果函数调用失败返回 FALSE, 之前版本返回了 TRUE。 | |
setlocale | This function now throws an E_DEPRECATED notice if a string is passed to the category parameter instead of one of the LC_* constants. | |
shm_attach | This function now returns a 资源(resource) instead of an integer. | |
socket_create_pair | This function is now re-enabled on Windows platforms. | |
stream_context_create | 增加了可选参数 params 。 | |
stream_socket_pair | 这个函数在windows平台不可用 | |
stristr | 新增可选的 before_needle 参数。 | |
strlen | Prior versions treated arrays as the string Array, thus returning a string length of 5 and emitting an E_NOTICE level error. | |
strstr | 新增可选的 before_needle 参数。 | |
strtotime | 在 PHP 5.3.0 之前, 24:00 不是一个有效的格式,并且 strtotime 会返回 FALSE。 | |
strtotime | Prior to PHP 5.3.0, relative time formats supplied to the time argument of strtotime such as this week, previous week, last week, and next week were interpreted to mean a 7 day period relative to the current date/time, rather than a week period of Monday through Sunday. | |
sybase_connect | The new parameter was added. | |
symlink | 此函数在 Windows 平台上可用(Vista、Server 2008 或更高版本)。 | |
time_nanosleep | 至此之后该函数在Windows平台下可用。 | |
time_sleep_until | 自此,函数在Windows平台可用。 | |
touch | 能够修改 Windows 下目录的最后修改时间。 | |
ReflectionFunction::__construct | name can now be a closure. | |
XMLReader::expand | The parameter basenode was added. | |
5.2.11 | get_defined_constants | categorize 参数现在可以合适得被处理。 在此之前,categorize 被解释为 !is_null($categorize),导致任何非 NULL 的值会强制常量分类。 |
5.2.10 | array_rand | The resulting array of keys is no longer shuffled. |
array_unique | 修改回 sort_flags 的默认值为 SORT_STRING。 | |
curl_setopt | 引入 CURLOPT_PROTOCOLS, and CURLOPT_REDIR_PROTOCOLS. | |
ip2long | 再此之前的版本, ip2long 有时会返回即使这不是一个IPV4的标准地址的数字地址。 | |
natsort | 用零填充的数字字符串 (例如 '00005')现在本质上会忽略掉填充的前道零。 | |
5.2.9 | array_unique | 增加可选选项sort_flags,默认值 SORT_REGULAR。 5.2.9 之前,此函数内部使用 SORT_STRING 排序。 |
5.2.8 | XSLTProcessor::importStylesheet | Accepts SimpleXMLElement again which was broken since PHP 5.2.6. |
5.2.7 | parse_ini_file | On syntax error this function will return FALSE rather than an empty array. |
round | round 的内部运作修改符合 C99 的标准。 | |
strtotime | In PHP 5 prior to 5.2.7, requesting a given occurrence of a given weekday in a month where that weekday was the first day of the month would incorrectly add one week to the returned timestamp. This has been corrected in 5.2.7 and later versions. | |
5.2.6 | fopen | 增加了选项 'c' 和 'c+' |
5.2.5 | addcslashes | The escape sequences \v and \f were added. |
imagefilter | Alpha support for IMG_FILTER_COLORIZE was added. | |
5.2.4 | array_slice | length 参数默认值改成 NULL。 现在 length 为 NULL 时,意思是说使用 array 的长度。 之前的版本里, NULL 的 length 的意思是长度为零(啥也不返回)。 |
checkdnsrr | 增加了TXT的记录类型。 | |
curl_setopt | 引入了 CURLOPT_PRIVATE。 | |
get_loaded_extensions | 添加了可选的 zend_extensions 参数。 | |
ldap_first_attribute | The ber_identifier was removed. This is now handled automatically by PHP. | |
ldap_next_attribute | The ber_identifier was removed. This is now handled automatically by PHP. | |
parse_ini_file | 由数字组成的键名和小节名会被 PHP 当作整数来处理,因此以 0 开头的数字会被当作八进制而以 0x 开头的会被当作十六进制。 | |
stream_wrapper_register | 添加 flags 参数. | |
5.2.3 | getimagesize | Read errors generated by this function downgraded to E_NOTICE from E_WARNING. |
htmlentities | 增加参数 double_encode。 | |
htmlspecialchars | 增加参数 double_encode。 | |
json_decode | The nesting limit was increased from 20 to 128 | |
XMLWriter::writeElement | The content parameter became optional. | |
XMLWriter::writeElementNS | The content parameter became optional. | |
PDOStatement::getColumnMeta | table 字段 | |
5.2.2 - 5.2.6 | substr | If the start parameter indicates the position of a negative truncation or beyond, false is returned. Other versions get the string from start. |
5.2.2 | DOMDocument::registerNodeClass | Prior to 5.2.2, a previously registered extendedclass had to be unregistered before being able to register a new class extending the same baseclass. |
ftp_ssl_connect | 以前版本中,如果无法使用 SSL 连接,将会返回一个非 SSL 的连接, 在 5.2.2 版本中修改为返回 FALSE | |
phpinfo | 增加了“已加载的配置文件”信息,之前只存在“配置文件路径(php.ini)"。 | |
preg_match | 命名子组可以接受(?<name>), (?'name') 以及(?P<name>)语法。之前版本仅接受(?P<name>)语法。 | |
preg_match_all | 子命名分组语法可以接受(?<name>),(?'name')以及 (?P<name>)了。 之前版本仅接受(?P<name>)方式。 | |
proc_terminate | 之前的版本被用来销毁进程 resource。 | |
token_get_all | Line numbers are returned in element 2 | |
5.2.1 | json_decode | Added support for JSON decoding of basic types. |
memory_get_peak_usage | 使用此函数无需在编译时加上 --enable-memory-limit 选项。 | |
memory_get_usage | 不需要在编译时使用 --enable-memory-limit 选项就能够使用这个函数。 | |
mt_srand | The Mersenne Twister implementation in PHP now uses a new seeding algorithm by Richard Wagner. Identical seeds no longer produce the same sequence of values they did in previous versions. This behavior is not expected to change again, but it is considered unsafe to rely upon it nonetheless. | |
proc_open | 为 other_options 参数增加 bypass_shell 选项。 | |
5.2.0 | base64_decode | 增加了 strict 。 |
curl_multi_info_read | msgs_in_queue被加入。 | |
imagettftext | It is now possible to specify an hexadecimal entity in text. | |
mb_strrpos | 增加了可选参数 offset。 | |
memory_get_peak_usage | 添加参数 real_usage。 | |
memory_get_usage | 增加了参数 real_usage。 | |
openssl_verify | The signature_alg parameter was added. | |
pathinfo | 添加了常量 PATHINFO_FILENAME。 | |
session_get_cookie_params | 在返回数组中加入 “httponly”。 | |
session_set_cookie_params | 加入 httponly 参数。 | |
setcookie | 添加 httponly 参数。 | |
setrawcookie | 增加了 httponly 参数。 | |
snmp_set_oid_numeric_print | Since PHP 5.2.0. | |
PDOStatement::execute | input_parameters 中的键名必须和 SQL 中声明的相匹配。PHP 5.2.0 之前默认忽略。 | |
SimpleXMLElement::children | The optional parameter is_prefix was added. | |
SimpleXMLElement::__construct | Added the ns and is_prefix parameters. | |
SoapServer::SoapServer | Added the typemap option. | |
XMLReader::open | encoding and options were added. | |
XMLReader::XML | encoding and options were added. | |
5.1.3 | curl_getinfo | 引入CURLINFO_HEADER_OUT. |
get_headers | 自 PHP 5.1.3 起本函数使用默认的流上下文,其可以用 stream_context_get_default 函数设定和修改。 | |
http_build_query | 方括号也会被转义。 | |
mb_get_info | 实体 "mail_charset"、"mail_header_encoding" 和 "mail_body_encoding" 开始有效。 | |
SoapClient::__doRequest | The one_way parameter was added. | |
XMLReader::getAttribute | Return NULL if no attribute found. Previously, returned an empty string. | |
5.1.2 | date_default_timezone_set | 本版本开始验证 timezone_identifier 参数。 |
header | 这个函数现在可以一次性阻止多个报文信息的发送,从而作为对报文信息注入攻击的一种防护。 | |
http_build_query | 加入了参数 arg_separator。 | |
parse_url | 增加了参数 component。 | |
SimpleXMLElement::__construct | Added the options and data_is_url parameters. | |
5.1.1 | date | format 参数标准的可用日期/时间格式常量见: 常量 |
5.1.0 | DOMDocument::save | Added the options parameter |
DOMDocument::saveXML | Added the options parameter | |
ctype_digit | 在 PHP 5.1.0 之前,当 text 是一个空字符串的时候,该函数将返回 TRUE 。 | |
curl_setopt | 引入 CURLOPT_AUTOREFERER, CURLOPT_BINARYTRANSFER, CURLOPT_FTPSSLAUTH, CURLOPT_PROXYAUTH, and CURLOPT_TIMECONDITION. | |
date | 现在发布 E_STRICT 和 E_NOTICE 时区错误。 | |
date | 时间戳的有效取值范围为 GMT 时间的 1901 年 12 月 13 日至 GMT 时间的 2038 年 1 月 19 日。 (32 位有符号整数的取值范围)。 但是,在 PHP 5.1.0 之前的版本,在某些系统(例如 Windows)上有效取值范围为 1970 年 1 月 1 日至 2038 年 1 月 19 日。 | |
date_sunrise | 现在发布 E_STRICT 和 E_NOTICE 时区错误。 | |
date_sunset | 现在发布 E_STRICT 和 E_NOTICE 时区错误。 | |
explode | 支持负数的 limit | |
file_get_contents | Added the offset and maxlen parameters. | |
file_put_contents | 添加了对 LOCK_EX 的支持和 data 参数处理 stream 资源的功能。 | |
gettimeofday | 增加了参数 return_float。 | |
glob | GLOB_ERR was added | |
imagerotate | 新增: ignore_transparent 。 | |
intval | 当传入的 var 是 object,将会抛出 E_NOTICE 并返回 1。 | |
localtime | 现在发布 E_STRICT 和 E_NOTICE 时区错误。 | |
md5_file | 函数改用流 API。这意味着能够配合封装器使用该函数,比如 md5_file('http://example.com/..')。 | |
mktime | is_dst 参数被废弃。出错时函数返回 FALSE 而不再是 -1。修正了本函数可以接受年月日参数全为零。 | |
mktime | When called with no arguments, mktime throws E_STRICT notice. Use the time function instead. | |
mktime | 现在发布 E_STRICT 和 E_NOTICE 时区错误。 | |
mssql_connect | new_link参数加入 | |
openssl_pkcs7_verify | The content parameter was added. | |
preg_replace | 增加参数count. | |
preg_replace_callback | 增加了参数count。 | |
session_regenerate_id | 新加 delete_old_session 参数。 | |
sha1_file | 改变函数以使用流 API。这意味着可以使用包装器,比如 sha1_file('http://example.com/..')。 | |
str_word_count | 新增 charlist 参数。 | |
stream_copy_to_stream | Added the offset parameter | |
stream_filter_append | Prior to PHP 5.1.0, this function returns TRUE on success 或者在失败时返回 FALSE. | |
stream_filter_prepend | Prior to PHP 5.1.0, this function returns TRUE on success 或者在失败时返回 FALSE. | |
stream_get_contents | 增加参数 offset 。 | |
strftime | 现在发布 E_STRICT 和 E_NOTICE 时区错误。 | |
strtotime | 失败时返回 FALSE,不再是 -1。 | |
strtotime | 现在发布 E_STRICT 和 E_NOTICE 时区错误。 | |
substr_compare | 允许使用负数的 offset 参数。 | |
substr_count | 新增 offset 和 length 参数。 | |
XSLTProcessor::registerPHPFunctions | The restrict parameter was added. | |
5.0.5 | php_check_syntax | 函数从PHP中移除。 |
5.0.4 | msql_fetch_array | A bug was fixed when retrieving data from columns containing NULL values. Such columns were not placed into the resulting array. |
msql_fetch_object | A bug was fixed when retrieving data from columns containing NULL values. Such columns were not placed into the resulting array. | |
msql_fetch_row | A bug was fixed when retrieving data from columns containing NULL values. Such columns were not placed into the resulting array. | |
5.0.3 | get_class_vars | get_class_vars will only return the properties that can be accessed from the current scope. |
is_subclass_of | You may also specify the object parameter as a string (the name of the class) | |
php_check_syntax | php_check_syntax之后调用 exit 会导致一个段错误。 | |
5.0.2 | array_slice | 增加了可选参数 preserve_keys 。 |
class_exists | 不再为已定义的 interface 返回 TRUE。请使用 interface_exists。 | |
get_class_vars | Calling get_class_vars will now expose all the properties as an array, unlike previous behaviour where protected and private properties were prefixed with nul bytes. | |
sort | 添加了 SORT_LOCALE_STRING。 | |
strtotime | 在 PHP 5 中到 5.0.2 之前,"now" 和其它相对时间从今天午夜起错误计算了。这和正确从当前时间起计算的其它版本不同。 | |
5.0.1 | get_class_vars | Calling get_class_vars will expose all properties, as when converting an object to a class. |
php_check_syntax | error_message 通过引用传递 | |
5.0.0 | apache_get_modules | 可用于Apache 1或PHP Apache 2 filter API。 在此之前, 只可用于 Apache 2 handler API。 |
apache_get_version | 可用于 Apache 2 filter API. | |
checkdnsrr | 增加了AAAA的记录类型。 | |
curl_setopt | 引入 CURLOPT_FTP_USE_EPRT, CURLOPT_NOSIGNAL, CURLOPT_UNRESTRICTED_AUTH, CURLOPT_BUFFERSIZE, CURLOPT_HTTPAUTH, CURLOPT_PROXYPORT, CURLOPT_PROXYTYPE, CURLOPT_SSLCERTTYPE, and CURLOPT_HTTP200ALIASES. | |
dirname | dirname 的操作从 PHP 5.0.0 版开始是二进制安全的。 | |
fgetss | 参数 length 从 此开始可选。 | |
file | 增加了参数 context | |
file | Prior to PHP 5.0.0 the flags parameter only covered include_path and was enabled with 1 | |
file_get_contents | Added context support. | |
file_put_contents | Added context support | |
is_a | This function became deprecated in favour of the instanceof operator. Calling this function will result in an E_STRICT warning. | |
is_executable | is_executable 开始可用以于 Windows。 | |
jdtojewish | 增加了参数 fl。 | |
mkdir | 添加 recursive 参数。 | |
mkdir | mkdir 也可用于某些 URL 封装协议。参见 的列表看看 mkdir 支持哪些 URL 封装协议。 | |
mysql_fetch_object | Added the ability to return as a different object. | |
opendir | path 支持 ftp:// URL wrapper | |
parse_ini_file | 该函数也开始处理选项值内的新行。 | |
realpath | 在此之前的版本中,如果 path 传入了空或者 NULL,将导致 realpath 返回脚本当前的目录。 | |
rename | rename 也可用于某些 URL 封装协议。参见 的列表看看 rename 支持哪些 URL 封装协议。 | |
rmdir | 自 PHP 5.0.0 起 rmdir 也可用于某些 URL 封装协议。参见 的列表看看 rmdir 支持哪些 URL 封装协议。 | |
socket_create | 增加 AF_INET6 支持。 | |
strip_tags | strip_tags 变为二进制安全的。 | |
strrpos | 参数 needle 可以是一个多字符的字符串。 | |
strrpos | 引入 offset 参数。 | |
strtotime | Microseconds began to be allowed, but they are ignored. | |
unlink | 自 PHP 5.0.0 起 unlink 也可以用于某些 URL 封装协议。参考 中的列表看哪些封装协议支持 unlink。 |