Downloads
Documentation
Get Involved
Help
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Enumerations
Errors
Exceptions
Fibers
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Predefined Attributes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Session Security
Filesystem Security
Database Security
Error Reporting
User Submitted Data
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Dealing with XForms
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
GUI Extensions
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
其他变化 »
« 新的全局常量
PHP 手册
附录
从 PHP 5.3.X 迁移到 PHP 5.4.X
Change language:
English
Brazilian Portuguese
Chinese (Simplified)
French
German
Japanese
Korean
Romanian
Russian
Spanish
Turkish
Other
Edit
Report a Bug
INI 文件处理的变化
下列
php.ini
指令被移除:
register_globals
和
register_long_arrays
magic_quotes_gpc
、
magic_quotes_runtime
以及
magic_quotes_sybase
allow_call_time_pass_reference
define_syslog_variables
highlight.bg
session.bug_compat_42
和
session.bug_compat_warn
y2k_compliance
safe_mode
、
safe_mode_gid
、
safe_mode_include_dir
、
safe_mode_exec_dir
、
safe_mode_allowed_env_vars
以及
safe_mode_protected_env_vars
新增下列
php.ini
指令:
cli.pager
和
cli.prompt
对于 CLI SAPI 在交互模式中使用 readline
cli_server.color
使内置用于开发的 web server 能在终端输出使用 ANSI 颜色编码。
max_input_vars
- 指定 GET/POST/COOKIE 输入变量的最大长度。
zend.multibyte
- 控制新的多字节支持。
zend.script_encoding
- 除非在脚本最前面出现“declare(encoding=...)”指令,否则将使用此值。
zend.signal_check
- 在关闭时检查是否替代信号处理。
session.upload_progress.enabled
、
session.upload_progress.cleanup
、
session.upload_progress.prefix
、
session.upload_progress.name
session.upload_progress.freq
、
session.upload_progress.min_freq
enable_post_data_reading
- 禁用时,POST 数据不能读取(和处理)。
windows_show_crt_warning
- 启用时此指令显示 Windows CRT 警告。到目前为止这些警告都是默认显示的。
下列
php.ini
. 指令被变更:
session.entropy_file
现在默认为 /dev/random 或 /dev/urandom ,取决于在编译时的推测。
session.entropy_length
现在默认为 32 。
add a note
User Contributed Notes
There are no user contributed notes for this page.