php7.3新特性彙總

Core:

  • Improved PHP GC.  提升php的垃圾回收機制
  • Redesigned the old ext_skel program written in PHP, run: 'php ext_skel.php' for all options. This means there are no dependencies, thus making it work on Windows out of the box.
  • Removed support for BeOS.        不在支持BeOS
  • Add PHP_VERSION to phpinfo() <title/>.
  • Add net_get_interfaces().
  • Implemented flexible heredoc and nowdoc syntax, per RFC https://wiki.php.net/rfc/flexible_heredoc_nowdoc_syntaxes.
  • Added support for references in list() and array destructuring, per RFC https://wiki.php.net/rfc/list_reference_assignment.
  • Improved effectiveness of ZEND_SECURE_ZERO for NetBSD and systems without native similar feature.
  • Added syslog.facility and syslog.ident INI entries for customizing syslog logging.
  • The declaration and use of case-insensitive constants has been deprecated.
  • Added syslog.filter INI entry for syslog filtering.

cURL:

  • Expose curl constants from curl 7.50 to 7.61.

Date:

  • Updated timelib to 2018.01RC1 to address several bugs:

Filter:

  • Added the 'add_slashes' sanitization mode (FILTER_SANITIZE_ADD_SLASHES).

FPM:

  • Added fpm_get_status function.

GD:

  • Added support for WebP in imagecreatefromstring().

GMP:

  • Export internal structures and accessor helpers for GMP object.
  • Added gmp_binomial(n, k).
  • Added gmp_lcm(a, b).
  • Added gmp_perfect_power(a).
  • Added gmp_kronecker(a, b).
  • JSON:
    • Added JSON_THROW_ON_ERROR flag.

LDAP:

  • Added ldap_exop_refresh helper for EXOP REFRESH operation with dds overlay.
  • Added full support for sending and parsing ldap controls.

MBstring:

  • Updated to Oniguruma 6.9.0.

ODBC:

  • Removed support for ODBCRouter.
  • Removed support for Birdstep.

OpenSSL:

  • Added openssl_pkey_derive function.
  • Add min_proto_version and max_proto_version ssl stream options as well as related constants for possible TLS protocol values.

PCRE:

  • Implemented https://wiki.php.net/rfc/pcre2-migration.
  • Upgrade PCRE2 to 10.32.

PDO_DBlib:

  • Implemented FR #69592 (allow 0-column rowsets to be skipped automatically).
  • Expose TDS version as \PDO::DBLIB_ATTR_TDS_VERSION attribute on \PDO instance.
  • Treat DATETIME2 columns like DATETIME.

PDO SQLite:

  • Add support for additional open flags

pgsql:

  • Added new error constants for pg_result_error(): PGSQL_DIAG_SCHEMA_NAME, PGSQL_DIAG_TABLE_NAME, PGSQL_DIAG_COLUMN_NAME, PGSQL_DIAG_DATATYPE_NAME, PGSQL_DIAG_CONSTRAINT_NAME and PGSQL_DIAG_SEVERITY_NONLOCALIZED.

readline:

  • Added completion_append_character and completion_suppress_append options to readline_info() if linked against libreadline.

SQLite3:

  • Updated bundled libsqlite to 3.24.0.

Standard:

  • Added is_countable() function.
  • Added support for the SameSite cookie directive, including an alternative signature for setcookie(), setrawcookie() and session_set_cookie_params().
  • Remove superfluous warnings from inet_ntop()/inet_pton().
  • Added hrtime() function, to get high resolution time.

Tidy:

  • Support using tidyp instead of tidy.

Zlib:

  • Added zlib/level context option for compress.zlib wrapper.

 

總結:7.3.0是個優化版本  對老代碼基本沒有影響,可以升級

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章