新的函数 PHP 5.4 引入一些新的函数: PHP 核心: hex2bin() http_response_code() get_declared_traits() getimagesizefromstring() stream_set_chunk_size() socket_import_stream() trait_exists() header_register_callback() SPL: class_uses() Session: session_status() session_register_shutdown() Mysqli: mysqli_error_list() mysqli_stmt_error_list() Libxml: libxml_set_external_entity_loader() LDAP: ldap_control_paged_result() ldap_control_paged_result_response() Intl: transliterator_create() transliterator_create_from_rules() transliterator_create_inverse() transliterator_get_error_code() transliterator_get_error_message() transliterator_list_ids() transliterator_transliterate() Zlib: zlib_decode() zlib_encode()