php中is empty data,PHP - Manual: Other Changes (官方文档)

Other Changes

PHP Core

Set(raw)cookie accepts $option Argument

string $name

[, string $value= ""

[, array $options= []

]] ) : bool

where $options is an associative array which may have

any of the keys "expires", "path",

"domain", "secure",

"httponly" and "samesite".

New Syslog ini Directives

The following ini Directives have been added to customize logging, if

error_log is set to

syslog:Specifies what type of program is logging the message.

Specifies the filter type to filter the logged messages. There are three

supported filter types - all,

no-ctrl and ascii.

Specifies the ident string which is prepended to every message.

Garbage Collection

The cyclic GC has been

enhanced, which may result in considerable performance improvements.

Miscellaneous

stdClass

objects as an array cast to an object ((object) array( ... )), rather

than using the nonexistent method stdClass::__setState().

Interactive PHP Debugger

The unused constants PHPDBG_FILE,

PHPDBG_METHOD, PHPDBG_LINENO and

PHPDBG_FUNC have been removed.

FastCGI Process Manager

The

Client URL Library

libcurl ≥ 7.15.5 is now required.

Data Filtering

FILTER_VALIDATE_FLOAT now also supports a thousand

option, which defines the set of allowed thousand separator chars. The default

("',.") is fully backward compatible with former PHP versions.

FILTER_SANITIZE_ADD_SLASHES has been added as an alias of the

magic_quotes filter (FILTER_SANITIZE_MAGIC_QUOTES).

The magic_quotes filter is subject to removal in future versions of PHP.

FTP

The default transfer mode has been changed to binary.

Internationalization Functions

Normalizer::NONE is deprecated, when PHP is linked with

ICU ≥ 56.

Introduced Normalizer::FORM_KC_CF as

NFKC_Casefold normalization; available when linked with

ICU ≥ 56.

JavaScript Object Notation

A new flag has been added, JSON_THROW_ON_ERROR, which

can be used with JsonException upon an error, instead of setting the

global error state that is retrieved with

JSON_PARTIAL_OUTPUT_ON_ERROR takes precedence over

JSON_THROW_ON_ERROR.

Multibyte String

The configuration option --with-libmbfl

is

no longer available.

ODBC (Unified)

Support for ODBCRouter and Birdstep

including the birdstep.max_links ini directive has been

removed.

OPcache

The opcache.inherited_hack ini directive has been removed.

The value has already been ignored since PHP 5.3.0.

OpenSSL

The min_proto_version and max_proto_version

ssl stream options as well as related constants for possible TLS protocol values

have been added.

Regular Expressions (Perl-Compatible)

The PCRE extension has been upgraded to

PCRE2, which may cause minor behavioral changes (for instance, character

ranges in classes are now more strictly interpreted), and augments the

existing regular expression syntax.

'#'

character.

Microsoft SQL Server and Sybase Functions (PDO_DBLIB)

The attribute PDO::DBLIB_ATTR_SKIP_EMPTY_ROWSETS to enable automatic

skipping of empty rowsets has been added.

The PDO::DBLIB_ATTR_TDS_VERSION attribute which exposes

the TDS version has been added.

DATETIME2 columns are now treated like DATETIME columns.

SQLite Functions (PDO_SQLITE)

SQLite3 databases can now be opened in read-only mode by setting the

new PDO::SQLITE_ATTR_OPEN_FLAGS attribute to

PDO::SQLITE_READONLY.

Session Handling

$options is an associative array which may have

any of the keys "lifetime", "path",

"domain", "secure",

"httponly" and "samesite". Accordingly,

the return value of "samesite".

Furthermore, the new session.cookie_samesite ini option to

set the default of the SameSite directive for cookies has been added. It

defaults to "" (empty string), so no SameSite directive is

set. Can be set to "Lax" or "Strict",

which sets the respective SameSite directive.

Tidy

Building against » tidyp is now also

supported transparently. Since tidyp offers no API to get the release date,

'unknown' in this case.

XML Parser

The return value of the

Zip

Building against the bundled libzip is discouraged, but still possible by

adding --without-libzip

to the configuration.

Zlib Compression

The zlib/level context option for the compress.zlib wrapper to facilitate

setting the desired compression level has been added.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值