其他

  1. Curl: . CURLOPT_SAFE_UPLOAD不能被关闭. Curl文件上传必须使用curl_file / CURLFile接口. (译者: 不再能使用@file这种非安全方式上传文件) . curl_getinfo($ch, CURLINFO_CERTINFO) returns certificate Subject and Issuer as a string (PHP >= 5.6.25)

  2. Date: . Removed $is_dst parameter from mktime() and gmmktime().

  3. DBA . dba_delete() now returns false if the key was not found for the inifile handler, too.

  4. GMP . Requires libgmp version 4.2 or newer now. . gmp_setbit() and gmp_clrbit() now return FALSE for negative indices, making them consistent with other GMP functions.

  5. Intl: . Removed deprecated aliases datefmt_set_timezone_id() and IntlDateFormatter::setTimeZoneID(). Use datefmt_set_timezone() and IntlDateFormatter::setTimeZone() instead.

  6. libxml: . Added LIBXML_BIGLINES parser option. It's available starting with libxml 2.9.0 and adds suppport for line numbers >16-bit in the error reporting.

  7. Mcrypt . Removed deprecated mcryptgeneric_end() alias in favor of mcrypt_generic_deinit(). . Removed deprecated mcrypt_ecb(), mcrypt_cbc(), mcrypt_cfb() and mcrypt_ofb() functions in favor of mcrypt_encrypt() and mcrypt_decrypt() with an MCRYPT_MODE* flag.

  8. Session . session_start() accepts all INI settings as array. e.g. ['cache_limiter'=>'private'] sets session.cache_limiter=private. It also supports 'read_and_close' which closes session data immediately after read data. . Save handler accepts validate_sid(), update_timestamp() which validates session ID existence, updates timestamp of session data. Compatibility of old user defined save handler is retained. . SessionUpdateTimestampHandlerInterface is added. validateSid(), updateTimestamp() is defined in the interface. . session.lazy_write(default=On) INI setting enables only write session data when session data is updated. . session_regenerate_id() saves current $_SESSION before creating new session ID.

  9. Opcache . 移除opcache.load_comments配置项. 载入文档注释不再有性能消耗, 因此总被开启.

  10. OpenSSL: . Removed the "rsa_key_size" SSL context option in favor of automatically setting the appropriate size given the negotiated crypto algorithm. . Removed "CN_match" and "SNI_server_name" SSL context options. Use automatic detection or the "peer_name" option instead.

  11. PCRE: . Removed support for /e (PREG_REPLACE_EVAL) modifier. Use preg_replace_callback() instead.

  12. PDO_pgsql: . Removed PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT attribute in favor of ATTR_EMULATE_PREPARES.

  13. Standard: . Removed string category support in setlocale(). Use the LC_* constants instead. . 移除 set_magic_quotes_runtime() 与 别名 magic_quotes_runtime().

  14. JSON: . Rejected RFC 7159 incompatible number formats in json_decode string - top level (07, 0xff, .1, -.1) and all levels ([1.], [1.e1]) . 第一个参数是空字符串或者转型之后是空字符(NULL, FALSE)时, 调用json_decode会导致JSON syntax错误.

  15. Stream: . 移除 set_socket_blocking(), 请使用其别名函数stream_set_blocking().

  16. XML: . xml_set_object() now requires to manually unset the $parser when finished, to avoid memory leaks.

  17. XSL: . Removed xsl.security_prefs ini option. Use XsltProcessor::setSecurityPrefs() instead.

results matching ""

    No results matching ""