Changed functions
PHP Core
-
getopthas an optional third parameter that exposes the index of the next element in the argument vector list to be processed. This is done via a by-ref parameter. -
getenvno longer requires its parameter. If the parameter is omitted, then the current environment variables will be returned as an associative array. -
get_headersnow has an additional parameter to enable for the passing of custom stream contexts. -
output_reset_rewrite_varsno longer resets session URL rewrite variables. -
parse_urlis now more restrictive and supports RFC3986. -
unpacknow accepts an optional third parameter to specify the offset to begin unpacking from.
File System
-
file_get_contentsnow accepts a negative seek offset if the stream is seekable. -
tempnamnow emits a notice when falling back to the system's temp directory.
JSON
json_encodenow accepts a new option,JSON_UNESCAPED_LINE_TERMINATORS, to disable the escaping of U+2028 and U+2029 characters whenJSON_UNESCAPED_UNICODEis supplied.
Multibyte String
-
mb_eregnow rejects illegal byte sequences. -
mb_ereg_replacenow rejects illegal byte sequences.
PDO
- PDO::lastInsertId for PostgreSQL will now trigger an error when
nextvalhas not been called for the current session (the postgres connection).
PostgreSQL
-
pg_last_noticenow accepts an optional parameter to specify an operation. This can be done with one of the following new constants:PGSQL_NOTICE_LAST,PGSQL_NOTICE_ALL, orPGSQL_NOTICE_CLEAR. -
pg_fetch_allnow accepts an optional second parameter to specify the result type (similar to the third parameter ofpg_fetch_array). -
pg_selectnow accepts an optional fourth parameter to specify the result type (similar to the third parameter ofpg_fetch_array).
Session
session_startnow returns ENTITY and no longer initializes$_SESSIONwhen it failed to start the session.
谢谢你的反馈!