├── reference
├── yar
│ ├── image
│ │ └── yar.png
│ ├── reference.xml
│ └── configure.xml
├── fpm
│ ├── observability.xml
│ ├── reference.xml
│ ├── setup.xml
│ └── book.xml
├── mysqli
│ ├── reference.xml
│ └── functions
│ │ ├── mysqli-report.xml
│ │ ├── mysqli-set-opt.xml
│ │ └── mysqli-escape-string.xml
├── pcre
│ ├── setup.xml
│ ├── pattern.xml
│ └── reference.xml
├── filter
│ ├── setup.xml
│ ├── reference.xml
│ └── configure.xml
├── var
│ ├── reference.xml
│ ├── functions
│ │ ├── is-long.xml
│ │ ├── is-double.xml
│ │ ├── is-integer.xml
│ │ ├── doubleval.xml
│ │ └── is-real.xml
│ └── book.xml
├── misc
│ ├── reference.xml
│ ├── setup.xml
│ └── functions
│ │ ├── die.xml
│ │ └── show-source.xml
├── info
│ ├── reference.xml
│ ├── setup.xml
│ ├── functions
│ │ ├── ini-alter.xml
│ │ └── get-required-files.xml
│ └── book.xml
├── fileinfo
│ ├── reference.xml
│ ├── configure.xml
│ └── setup.xml
├── funchand
│ ├── reference.xml
│ └── book.xml
├── exif
│ ├── reference.xml
│ └── configure.xml
├── mail
│ ├── reference.xml
│ └── book.xml
├── bc
│ ├── reference.xml
│ ├── configure.xml
│ └── setup.xml
├── apache
│ ├── reference.xml
│ ├── book.xml
│ └── setup.xml
├── ctype
│ ├── reference.xml
│ ├── configure.xml
│ └── setup.xml
├── intl
│ └── idn.xml
├── network
│ ├── reference.xml
│ ├── functions
│ │ ├── dns-get-mx.xml
│ │ ├── dns-check-record.xml
│ │ ├── socket-get-status.xml
│ │ ├── socket-set-timeout.xml
│ │ └── socket-set-blocking.xml
│ └── book.xml
├── yaf
│ ├── reference.xml
│ └── configure.xml
├── classobj
│ └── reference.xml
├── curl
│ └── reference.xml
├── password
│ ├── reference.xml
│ └── book.xml
├── cubrid
│ ├── reference.xml
│ ├── cubridmysql.xml
│ ├── aliases.xml
│ └── configure.xml
├── errorfunc
│ ├── setup.xml
│ ├── reference.xml
│ └── functions
│ │ └── user-error.xml
├── xml
│ ├── reference.xml
│ └── case-folding.xml
├── calendar
│ ├── reference.xml
│ ├── configure.xml
│ └── setup.xml
├── memcache
│ ├── reference.xml
│ └── configure.xml
├── outcontrol
│ ├── setup.xml
│ └── reference.xml
├── lua
│ ├── reference.xml
│ ├── configure.xml
│ ├── book.xml
│ └── setup.xml
├── hash
│ ├── reference.xml
│ └── constants.xml
├── fann
│ └── reference.xml
├── ftp
│ ├── reference.xml
│ ├── functions
│ │ └── ftp-quit.xml
│ └── setup.xml
├── json
│ └── reference.xml
├── bzip2
│ ├── reference.xml
│ ├── configure.xml
│ └── book.xml
├── image
│ └── reference.xml
├── url
│ ├── reference.xml
│ └── book.xml
├── xhprof
│ ├── reference.xml
│ ├── configure.xml
│ └── setup.xml
├── mcrypt
│ ├── reference.xml
│ └── configure.xml
├── oauth
│ ├── reference.xml
│ ├── configure.xml
│ └── setup.xml
├── zlib
│ └── configure.xml
├── openssl
│ ├── reference.xml
│ ├── cert-verification.xml
│ └── functions
│ │ ├── openssl-get-publickey.xml
│ │ └── openssl-get-privatekey.xml
├── pthreads
│ ├── reference.xml
│ └── configure.xml
├── session
│ ├── reference.xml
│ └── functions
│ │ └── session-commit.xml
├── sockets
│ ├── reference.xml
│ └── configure.xml
├── reflection
│ └── configure.xml
├── datetime
│ ├── reference.xml
│ ├── setup.xml
│ ├── configure.xml
│ └── datetime
│ │ └── getlasterrors.xml
├── pcntl
│ ├── setup.xml
│ ├── reference.xml
│ └── configure.xml
├── xmlrpc
│ ├── configure.xml
│ └── functions
│ │ ├── xmlrpc-server-create.xml
│ │ └── xmlrpc-encode.xml
├── tokenizer
│ └── configure.xml
├── gettext
│ ├── configure.xml
│ └── setup.xml
├── stream
│ └── filters.xml
├── pdo
│ └── setup.xml
├── mbstring
│ └── setup.xml
├── iconv
│ ├── configure.xml
│ └── reference.xml
├── strings
│ ├── setup.xml
│ ├── functions
│ │ ├── join.xml
│ │ └── strchr.xml
│ └── reference.xml
├── array
│ ├── functions
│ │ ├── pos.xml
│ │ ├── sizeof.xml
│ │ └── key-exists.xml
│ └── reference.xml
├── filesystem
│ ├── functions
│ │ ├── fputs.xml
│ │ ├── is-writeable.xml
│ │ ├── diskfreespace.xml
│ │ └── set-file-buffer.xml
│ ├── reference.xml
│ └── setup.xml
├── zip
│ └── reference.xml
├── exec
│ └── setup.xml
├── phar
│ └── installation.xml
├── dir
│ ├── reference.xml
│ └── book.xml
├── readline
│ └── configure.xml
├── dio
│ └── setup.xml
├── pgsql
│ └── configure.xml
├── sqlite3
│ ├── examples.xml
│ └── setup.xml
├── snmp
│ └── configure.xml
├── memcached
│ └── expiration.xml
└── svm
│ └── book.xml
├── .editorconfig
├── appendices
├── reserved.constants.standard.xml
├── ini.xml
├── migration83
│ └── windows-support.xml
├── migration74
│ └── new-classes.xml
├── debugger.xml
├── migration70
│ └── incompatible.xml
└── migration73
│ └── windows-support.xml
├── install
├── macos
│ ├── compile.xml
│ └── index.xml
├── windows
│ ├── building.xml
│ └── tools.xml
├── cloud
│ ├── index.xml
│ └── ec2.xml
└── pie.xml
├── features
└── sessions.xml
├── security
├── sessions.xml
└── current.xml
└── language
├── types
├── void.xml
├── never.xml
└── singleton.xml
├── errors.xml
├── operators
└── string.xml
├── control-structures
├── require-once.xml
└── require.xml
└── predefined
└── attributes.xml
/reference/yar/image/yar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/php/doc-zh/master/reference/yar/image/yar.png
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | ; This file is for unifying the coding style for different editors and IDEs.
2 | ; More information at https://editorconfig.org
3 |
4 | root = true
5 |
6 | [*.xml]
7 | charset = utf-8
8 | indent_size = 1
9 | indent_style = space
10 | end_of_line = lf
11 | insert_final_newline = true
12 | trim_trailing_whitespace = false
13 |
--------------------------------------------------------------------------------
/reference/fpm/observability.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 可观察性
6 |
7 | &reference.fpm.status;
8 |
9 |
10 |
11 |
31 |
--------------------------------------------------------------------------------
/reference/mysqli/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 别名和过时的 Mysqli &Functions;
7 |
8 | &reference.mysqli.entities.functions;
9 |
10 |
11 |
31 |
32 |
--------------------------------------------------------------------------------
/reference/pcre/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 | &reference.pcre.configure;
9 |
10 | &reference.pcre.ini;
11 |
12 |
13 |
14 |
34 |
35 |
--------------------------------------------------------------------------------
/reference/filter/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 | &reference.filter.configure;
9 |
10 | &reference.filter.ini;
11 |
12 |
13 |
14 |
34 |
35 |
--------------------------------------------------------------------------------
/reference/var/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 变量处理&Functions;
6 |
7 | &reference.var.entities.functions;
8 |
9 |
10 |
11 |
31 |
32 |
--------------------------------------------------------------------------------
/appendices/reserved.constants.standard.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 标准预定义常量
7 |
8 | 核心扩展中的所有常量都默认在 PHP 中定义。
9 |
10 |
11 |
12 |
29 |
30 |
--------------------------------------------------------------------------------
/reference/misc/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 杂项 &Functions;
7 |
8 | &reference.misc.entities.functions;
9 |
10 |
11 |
12 |
32 |
33 |
--------------------------------------------------------------------------------
/reference/info/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | PHP 选项/信息 &Functions;
7 |
8 | &reference.info.entities.functions;
9 |
10 |
11 |
12 |
32 |
33 |
--------------------------------------------------------------------------------
/reference/fileinfo/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Fileinfo &Functions;
6 |
7 | &reference.fileinfo.entities.functions;
8 |
9 |
10 |
11 |
31 |
--------------------------------------------------------------------------------
/reference/funchand/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 函数处理 &Functions;
7 |
8 | &reference.funchand.entities.functions;
9 |
10 |
11 |
12 |
32 |
33 |
--------------------------------------------------------------------------------
/reference/exif/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Exif &Functions;
8 |
9 | &reference.exif.entities.functions;
10 |
11 |
12 |
32 |
--------------------------------------------------------------------------------
/reference/fpm/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | FPM &Functions;
8 |
9 | &reference.fpm.entities.functions;
10 |
11 |
12 |
13 |
33 |
--------------------------------------------------------------------------------
/reference/mail/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Mail &Functions;
8 |
9 | &reference.mail.entities.functions;
10 |
11 |
12 |
32 |
--------------------------------------------------------------------------------
/reference/pcre/pattern.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | PCRE模式
7 |
8 | &reference.pcre.pattern.syntax;
9 | &reference.pcre.pattern.modifiers;
10 | &reference.pcre.pattern.differences;
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/bc/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | BC 数学 &Functions;
8 |
9 | &reference.bc.entities.functions;
10 |
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/filter/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 过滤器&Functions;
8 |
9 | &reference.filter.entities.functions;
10 |
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/info/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 | &reference.info.ini;
9 |
10 |
11 |
12 |
32 |
33 |
--------------------------------------------------------------------------------
/reference/apache/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Apache &Functions;
8 |
9 | &reference.apache.entities.functions;
10 |
11 |
12 |
32 |
33 |
--------------------------------------------------------------------------------
/reference/ctype/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Ctype &Functions;
8 |
9 | &reference.ctype.entities.functions;
10 |
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/intl/idn.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDN &Functions;
6 | &reference.intl.entities.idn;
7 |
8 |
9 |
29 |
--------------------------------------------------------------------------------
/reference/misc/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | &reftitle.setup;
8 |
9 | &reference.misc.ini;
10 |
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/network/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 网络 &Functions;
8 |
9 | &reference.network.entities.functions;
10 |
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/yaf/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Yaf &Functions;
6 |
7 | &reference.yaf.entities.functions;
8 |
9 |
10 |
11 |
31 |
--------------------------------------------------------------------------------
/reference/yar/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Yar &Functions;
6 |
7 | &reference.yar.entities.functions;
8 |
9 |
10 |
11 |
31 |
--------------------------------------------------------------------------------
/reference/classobj/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 类/对象 &Functions;
8 |
9 | &reference.classobj.entities.functions;
10 |
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/curl/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | cURL &Functions;
7 |
8 | &reference.curl.entities.functions;
9 |
10 |
11 |
12 |
32 |
--------------------------------------------------------------------------------
/reference/password/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 密码散列算法&Functions;
8 |
9 | &reference.password.entities.functions;
10 |
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/cubrid/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | CUBRID &Functions;
7 |
8 | &reference.cubrid.entities.functions;
9 |
10 |
11 |
12 |
32 |
--------------------------------------------------------------------------------
/reference/errorfunc/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 | &reference.errorfunc.ini;
9 |
10 |
11 |
12 |
32 |
33 |
--------------------------------------------------------------------------------
/reference/pcre/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | PCRE &Functions;
7 |
8 | &reference.pcre.entities.functions;
9 |
10 |
11 |
12 |
32 |
33 |
--------------------------------------------------------------------------------
/reference/xml/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | XML 解析器&Functions;
6 |
7 | &reference.xml.entities.functions;
8 |
9 |
10 |
11 |
31 |
32 |
--------------------------------------------------------------------------------
/reference/calendar/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Calendar &Functions;
7 |
8 | &reference.calendar.entities.functions;
9 |
10 |
11 |
31 |
32 |
--------------------------------------------------------------------------------
/reference/cubrid/cubridmysql.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | CUBRID MySQL 兼容性函数
7 |
8 | &reference.cubrid.entities.cubridmysql;
9 |
10 |
11 |
12 |
32 |
--------------------------------------------------------------------------------
/reference/memcache/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Memcache &Functions;
6 | &reference.memcache.entities.functions;
7 |
8 |
9 |
10 |
30 |
31 |
--------------------------------------------------------------------------------
/reference/outcontrol/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 | &reference.outcontrol.ini;
9 |
10 |
11 |
12 |
32 |
33 |
--------------------------------------------------------------------------------
/reference/lua/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Lua &Functions;
8 |
9 | &reference.lua.entities.functions;
10 |
11 |
12 |
13 |
33 |
--------------------------------------------------------------------------------
/reference/hash/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Hash &Functions;
8 |
9 | &reference.hash.entities.functions;
10 |
11 |
12 |
13 |
33 |
--------------------------------------------------------------------------------
/reference/calendar/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | &reftitle.install;
6 |
7 | 要使用本类函数,需要在编译 PHP 时加上
8 | 。
9 |
10 | &windows.builtin;
11 |
12 |
32 |
--------------------------------------------------------------------------------
/reference/fann/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Fann &Functions;
8 |
9 | &reference.fann.entities.functions;
10 |
11 |
12 |
13 |
33 |
--------------------------------------------------------------------------------
/reference/fpm/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | &reftitle.setup;
8 |
9 |
10 | 安装与配置 FPM 的信息可以在 PHP 手册的
11 | installation and configuration section中被找到。
12 |
13 |
14 |
15 |
16 |
36 |
--------------------------------------------------------------------------------
/reference/ftp/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | FTP &Functions;
8 |
9 | &reference.ftp.entities.functions;
10 |
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/json/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | JSON &Functions;
8 |
9 | &reference.json.entities.functions;
10 |
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/bzip2/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Bzip2 &Functions;
8 |
9 | &reference.bzip2.entities.functions;
10 |
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/image/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | GD 和图像处理 &Functions;
8 |
9 | &reference.image.entities.functions;
10 |
11 |
12 |
13 |
33 |
--------------------------------------------------------------------------------
/reference/url/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | URL &Functions;
8 |
9 | &reference.url.entities.functions;
10 |
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/xhprof/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Xhprof &Functions;
8 |
9 | &reference.xhprof.entities.functions;
10 |
11 |
12 |
13 |
33 |
--------------------------------------------------------------------------------
/reference/mcrypt/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Mcrypt &Functions;
8 |
9 | &reference.mcrypt.entities.functions;
10 |
11 |
12 |
13 |
33 |
--------------------------------------------------------------------------------
/reference/oauth/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | OAuth &Functions;
8 |
9 | &reference.oauth.entities.functions;
10 |
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/zlib/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | &reftitle.install;
6 |
7 | PHP 中的 Zlib 支持默认未启用。需要配置 PHP
8 |
9 | &windows.builtin;
10 |
11 |
12 |
32 |
33 |
--------------------------------------------------------------------------------
/reference/openssl/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | OpenSSL &Functions;
8 |
9 | &reference.openssl.entities.functions;
10 |
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/pthreads/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | pthreads &Functions;
8 |
9 | &reference.pthreads.entities.functions;
10 |
11 |
12 |
13 |
33 |
--------------------------------------------------------------------------------
/reference/session/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Session &Functions;
8 |
9 | &reference.session.entities.functions;
10 |
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/sockets/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Socket &Functions;
8 |
9 | &reference.sockets.entities.functions;
10 |
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/bc/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.install;
7 |
8 | 本类函数仅在 PHP 编译时配置了
9 |
10 | 时可用。
11 |
12 | &windows.builtin;
13 |
14 |
15 |
35 |
--------------------------------------------------------------------------------
/reference/filter/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.install;
7 |
8 | &installation.enabled.disable;
9 |
10 |
11 |
12 |
13 |
33 |
--------------------------------------------------------------------------------
/reference/reflection/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.install;
7 |
8 |
9 | 默认激活 reflection 扩展。
10 |
11 |
12 |
13 |
14 |
15 |
35 |
--------------------------------------------------------------------------------
/install/macos/compile.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 在 macOS 下编译 PHP
6 |
7 | 参考 Unix 系统下的安装以在
8 | macOS 下编译 PHP。
9 |
10 |
11 |
12 |
32 |
--------------------------------------------------------------------------------
/reference/bzip2/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | &reftitle.install;
6 |
7 | PHP 的 Bzip2 支持默认未打开。编译 PHP 时需要
8 |
9 | 配置选项来激活 bzip2 支持。
10 |
11 |
12 |
13 |
33 |
--------------------------------------------------------------------------------
/reference/calendar/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 |
9 | &reference.calendar.configure;
10 |
11 |
12 |
13 |
14 |
34 |
--------------------------------------------------------------------------------
/reference/cubrid/aliases.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | CUBRID 过时的别名和函数
8 |
9 | &reference.cubrid.entities.oldaliases;
10 |
11 |
12 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/datetime/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Date/Time &Functions;
8 |
9 | &reference.datetime.entities.functions;
10 |
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/pcntl/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 |
9 | &reference.pcntl.configure;
10 |
11 |
12 |
13 |
14 |
34 |
35 |
--------------------------------------------------------------------------------
/appendices/ini.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &php.ini; 配置
7 |
8 | &appendices.ini.list;
9 | &appendices.ini.sections;
10 | &appendices.ini.core;
11 |
12 |
13 |
14 |
34 |
--------------------------------------------------------------------------------
/reference/ctype/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | &reftitle.install;
8 |
9 | &installation.enabled.disable;
10 |
11 |
12 | &windows.builtin;
13 |
14 |
15 |
35 |
--------------------------------------------------------------------------------
/reference/yar/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | &reftitle.install;
6 |
7 |
8 | &pecl.info;
9 | &url.pecl.package;yar
10 |
11 |
12 |
13 |
14 |
15 |
35 |
--------------------------------------------------------------------------------
/reference/yaf/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | &reftitle.install;
6 |
7 |
8 | &pecl.info;
9 | &url.pecl.package;yaf
10 |
11 |
12 |
13 |
14 |
15 |
16 |
36 |
--------------------------------------------------------------------------------
/features/sessions.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 会话
7 |
8 |
9 | PHP 中的会话支持包含在后续的访问中保留某些数据的方法。这使得能够构建更多的自定义应用程序以及增加网站的新引力。在
10 | Session 参考节获取所有信息。
11 |
12 |
13 |
14 |
15 |
35 |
--------------------------------------------------------------------------------
/reference/ctype/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 |
9 | &reftitle.required;
10 |
11 | 无额外需求,因为标准 C 库中的函数总是可用的。
12 |
13 |
14 |
15 | &reference.ctype.configure;
16 |
17 |
18 |
19 |
20 |
40 |
41 |
--------------------------------------------------------------------------------
/reference/sockets/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.install;
7 |
8 | 这里描述的 socket 函数只是 PHP 扩展的一部分,编译 PHP 时必须在 configure 中添加
9 | 配置项来启用。
10 |
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/xmlrpc/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.install;
7 |
8 | PHP 默认不启用 XML-RPC 支持。编译 PHP 时需要使用
9 |
10 | 配置项才能启用 XML-RPC 支持。
11 |
12 |
13 |
14 |
34 |
35 |
--------------------------------------------------------------------------------
/security/sessions.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 会话(Session)安全
6 |
7 |
8 | 保持 HTTP 会话管理的安全是重要的。会话安全相关内容描述章节在
9 | Session 模块文档下的会话安全部分。
10 |
11 |
12 |
13 |
14 |
34 |
--------------------------------------------------------------------------------
/reference/tokenizer/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.install;
7 |
8 | &installation.enabled.disable;
9 |
10 |
11 | &windows.builtin;
12 |
13 |
14 |
34 |
35 |
--------------------------------------------------------------------------------
/appendices/migration83/windows-support.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Windows 支持
5 |
6 |
7 | 核心
8 |
9 |
10 | Windows 的最低支持版本已经升级到 Windows 8 或 Windows Server 2012。
11 |
12 |
13 |
14 |
15 |
35 |
--------------------------------------------------------------------------------
/install/windows/building.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 从源程序编译
7 |
8 | 参阅 逐步构建说明 以使用 Visual Studio 进行编译。
9 |
10 |
11 |
12 |
32 |
--------------------------------------------------------------------------------
/reference/oauth/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | &reftitle.install;
8 |
9 | &pecl.info;
10 | &url.pear.package;oauth
11 |
12 |
13 |
14 |
15 |
35 |
--------------------------------------------------------------------------------
/install/cloud/index.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 云计算平台上的安装
7 |
8 | PHP 在云平台上的安装。进入 PHP 云世界!
9 |
10 | &install.cloud.azure;
11 | &install.cloud.ec2;
12 | &install.cloud.digitalocean;
13 |
14 |
15 |
35 |
--------------------------------------------------------------------------------
/reference/errorfunc/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 错误处理 &Functions;
6 |
7 | &reftitle.seealso;
8 |
9 | 参见 syslog。
10 |
11 |
12 |
13 | &reference.errorfunc.entities.functions;
14 |
15 |
16 |
17 |
37 |
38 |
--------------------------------------------------------------------------------
/reference/lua/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | &reftitle.install;
8 |
9 |
10 | &pecl.info;
11 | &url.pecl.package;lua
12 |
13 |
14 |
15 |
16 |
17 |
18 |
38 |
--------------------------------------------------------------------------------
/reference/gettext/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | &reftitle.install;
8 |
9 | 在构建PHP的时候要添加 GNU gettext 支持,你必须添加如下选项 DIR 表示 gettext 的安装目录,默认是/usr/local.
10 |
11 |
12 |
13 |
33 |
--------------------------------------------------------------------------------
/reference/stream/filters.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Stream 过滤
6 |
7 | filter 是在流中执行读取或写入数据操作时的最后一段代码。可以将任意数量的过滤器堆叠到一个流上。可以在
8 | PHP 脚本中使用 stream_filter_register 或扩展定义自定义过滤器。要访问当前注册的过滤器列表,请使用
9 | stream_get_filters。
10 |
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/xhprof/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | &reftitle.install;
8 |
9 |
10 | &pecl.info;
11 | &url.pecl.package;xhprof
12 |
13 |
14 |
15 |
16 |
17 |
37 |
--------------------------------------------------------------------------------
/reference/bc/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | &reftitle.setup;
8 |
9 |
10 | &reference.bc.configure;
11 |
12 |
13 |
14 | &reference.bc.ini;
15 |
16 |
17 |
18 |
19 |
39 |
40 |
--------------------------------------------------------------------------------
/reference/pdo/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 |
9 | &reference.pdo.configure;
10 |
11 |
12 |
13 | &reference.pdo.ini;
14 |
15 |
16 |
17 |
18 |
38 |
39 |
--------------------------------------------------------------------------------
/install/cloud/ec2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Amazon EC2
7 |
8 | EC2 云平台上 PHP 的安装。
9 |
10 |
11 | 参见 AWS SDK for PHP。
12 |
13 |
14 |
15 |
35 |
--------------------------------------------------------------------------------
/reference/funchand/book.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 函数处理
8 |
9 |
10 | &reftitle.intro;
11 |
12 | 这些函数涉及函数的相关操作。
13 |
14 |
15 |
16 | &reference.funchand.reference;
17 |
18 |
19 |
20 |
40 |
--------------------------------------------------------------------------------
/language/types/void.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Void
5 |
6 |
7 | void 是仅用于返回类型,表示函数不返回值,但该函数仍可能会终止。因此,它不能成为联合类型声明的一部分。自 PHP 7.1.0 起可用。
9 |
10 |
11 |
12 |
13 | 即使函数的返回类型是 void,但仍然可以返回值,但值只能始终为 &null;。
14 |
15 |
16 |
17 |
18 |
38 |
--------------------------------------------------------------------------------
/reference/mbstring/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 |
9 | &reference.mbstring.configure;
10 |
11 |
12 |
13 | &reference.mbstring.ini;
14 |
15 |
16 |
17 |
18 |
38 |
39 |
--------------------------------------------------------------------------------
/reference/pcntl/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PCNTL &Functions;
6 |
7 |
8 | &reftitle.seealso;
9 |
10 | 查看有关 POSIX 函数的部分可能会有用。
11 |
12 |
13 |
14 | &reference.pcntl.entities.functions;
15 |
16 |
17 |
18 |
38 |
39 |
--------------------------------------------------------------------------------
/reference/datetime/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 |
9 | &reference.datetime.configure;
10 |
11 |
12 |
13 | &reference.datetime.ini;
14 |
15 |
16 |
17 |
18 |
38 |
39 |
--------------------------------------------------------------------------------
/reference/iconv/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.install;
7 |
8 | 默认已激活此扩展,但是它能够在编译时通过 选项被禁用。
9 |
10 |
11 | 选项指令 用于 PHP 编译时指定 iconv 在系统里的路径,否则会扫描默认路径。
12 |
13 |
14 |
15 |
35 |
--------------------------------------------------------------------------------
/reference/mcrypt/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.install;
7 |
8 | &pecl.moved-ver;7.2.0
9 |
10 |
11 | &pecl.info;
12 | &url.pecl.package;mcrypt.
13 |
14 |
15 |
16 |
36 |
--------------------------------------------------------------------------------
/reference/openssl/cert-verification.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 证书验证
8 |
9 | 当调用需要验证签名/认证的函数时,ca_info 参数是一个包含可信CA文件的文件夹和文件名的数组。如果文件夹指定了,它应该是能够被openssl命令正确使用的哈希目录。
10 |
11 |
12 |
13 |
33 |
34 |
--------------------------------------------------------------------------------
/reference/outcontrol/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 输出控制 &Functions;
6 |
7 |
8 | &reftitle.seealso;
9 |
10 | 参阅 header 和
11 | setcookie。
12 |
13 |
14 |
15 | &reference.outcontrol.entities.functions;
16 |
17 |
18 |
19 |
39 |
40 |
--------------------------------------------------------------------------------
/reference/pcntl/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | &reftitle.install;
6 |
7 | 在 PHP 中进程控制支持默认关闭。需要使用
8 | 配置选项重新编译 PHP 的
9 | CGI 或 CLI 版本以打开进程控制支持。
10 |
11 |
12 |
13 | 当前,这个模块没有非 Unix 平台可用的函数(即非 Unix 类系统不支持此模块)。
14 |
15 |
16 |
17 |
18 |
38 |
39 |
--------------------------------------------------------------------------------
/security/current.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 保持更新
8 |
9 | PHP 和其它的大型系统一样,在持续不断的详细审查和改进过程中。
10 | 每个新版本常常将会包含主要和次要的改变以增强安全性、修复任何缺陷、配置问题以及将会影响整个系统安全性和稳定性的其他问题。
11 |
12 |
13 | 和其它系统级别的脚本语言和程序一样,最好的方法是经常更新,并保持对最新版本和及其更改的了解。
14 |
15 |
16 |
17 |
18 |
38 |
--------------------------------------------------------------------------------
/install/macos/index.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | macOS 系统下的安装
7 |
8 | PHP 在 macOS 10 和 11 版本中与 macOS 捆绑在一起,但 macOS 12 (Monterey) 之后的版本中不再包含
9 | PHP。在较新版本上安装需要使用来自第三方来源的软件包,或从源代码编译。
10 |
11 |
12 | &install.macos.packages;
13 | &install.macos.compile;
14 | &install.macos.bundled;
15 |
16 |
17 |
37 |
--------------------------------------------------------------------------------
/language/types/never.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Never
5 |
6 |
7 | never 是仅用于返回的类型,表示函数不会终止。这意味着它要么调用
8 | exit,要么抛出异常,要么无限循环。因此,它不能是联合类型声明的一部分。自
10 | PHP 8.1.0 起可用。
11 |
12 |
13 | never 是类型理论中的最底层类型。这意味着它是其它所有类型的子类型,并在可以在继承期间替换其它任何返回类型。
14 |
15 |
16 |
17 |
37 |
--------------------------------------------------------------------------------
/reference/strings/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 |
9 | &reftitle.install;
10 | &no.install;
11 |
12 | 自 PHP 8.1.0 起,可以通过指定
13 | 配置项来针对系统 crypt 库构建 crypt。
14 |
15 |
16 |
17 |
18 |
19 |
39 |
40 |
--------------------------------------------------------------------------------
/reference/iconv/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | iconv &Functions;
8 |
9 |
10 | &reftitle.seealso;
11 |
12 | 参见 GNU Recode functions。
13 |
14 |
15 |
16 | &reference.iconv.entities.functions;
17 |
18 |
19 |
39 |
40 |
--------------------------------------------------------------------------------
/reference/url/book.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | URLs
8 | URLs
9 |
10 |
11 | &reftitle.intro;
12 |
13 | 处理 URL 字符串: 编码、解码和解析。
14 |
15 |
16 |
17 | &reference.url.constants;
18 | &reference.url.reference;
19 |
20 |
21 |
41 |
42 |
--------------------------------------------------------------------------------
/reference/array/functions/pos.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | pos
8 | current 的&Alias;
9 |
10 |
11 |
12 | &reftitle.description;
13 |
14 | &info.function.alias;current。
15 |
16 |
17 |
18 |
19 |
39 |
--------------------------------------------------------------------------------
/reference/filesystem/functions/fputs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | fputs
8 | fwrite 的&Alias;
9 |
10 |
11 | &reftitle.description;
12 |
13 | &info.function.alias;fwrite。
14 |
15 |
16 |
17 |
18 |
38 |
--------------------------------------------------------------------------------
/reference/var/functions/is-long.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | is_long
7 | &Alias; is_int
8 |
9 |
10 |
11 | &reftitle.description;
12 |
13 | &info.function.alias;
14 | is_int.
15 |
16 |
17 |
18 |
19 |
39 |
--------------------------------------------------------------------------------
/reference/zip/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Zip &Functions;
7 |
8 |
9 |
10 | 从 PHP 8.0.0 开始,弃用过程式 API。应该改用 ZipArchive。
11 |
12 |
13 |
14 |
15 | &reference.zip.entities.functions;
16 |
17 |
18 |
19 |
39 |
--------------------------------------------------------------------------------
/install/windows/tools.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 用于安装 PHP 的第三方工具
6 | &warn.install.third-party-support;
7 |
8 | XAMPP、
9 | WampServer 和
10 | Bitnami
11 | 也会在 Windows 上使用 Apache 安装 PHP 应用程序。
12 |
13 |
14 |
34 |
--------------------------------------------------------------------------------
/reference/array/functions/sizeof.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | sizeof
8 | count 的&Alias;
9 |
10 |
11 |
12 | &reftitle.description;
13 |
14 | &info.function.alias;count。
15 |
16 |
17 |
18 |
19 |
39 |
--------------------------------------------------------------------------------
/language/errors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 错误
7 |
8 |
9 | 介绍
10 |
11 |
12 | 可悲的是,不管我们在写代码时多么小心,错误始终是有的。PHP 会为许多常见的编码和运行问题报告错误、警告、通知。知道如何检测和处理这些错误,使得调试程序更容易。
13 |
14 |
15 |
16 | &language.errors.basics;
17 | &language.errors.php7;
18 |
19 |
20 |
40 |
--------------------------------------------------------------------------------
/reference/exec/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 |
9 | &reftitle.resources;
10 |
11 | 本扩展定义了 process 资源,
12 | proc_open 函数会返回此资源。
13 |
14 |
15 |
16 |
17 |
18 |
19 |
39 |
40 |
--------------------------------------------------------------------------------
/reference/fpm/book.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | FastCGI 进程管理器
9 |
10 |
11 | &reftitle.intro;
12 | &fpm.intro;
13 |
14 | PHP 内置绑定了此 SAPI。
15 |
16 |
17 |
18 | &reference.fpm.setup;
19 | &reference.fpm.observability;
20 | &reference.fpm.reference;
21 |
22 |
23 |
24 |
44 |
--------------------------------------------------------------------------------
/reference/misc/functions/die.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | die
8 | &Alias; exit
9 |
10 |
11 |
12 | &reftitle.description;
13 |
14 | &info.function.alias;
15 | exit.
16 |
17 |
18 |
19 |
39 |
--------------------------------------------------------------------------------
/reference/var/functions/is-double.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | is_double
7 | &Alias; is_float
8 |
9 |
10 |
11 | &reftitle.description;
12 |
13 | &info.function.alias;
14 | is_float.
15 |
16 |
17 |
18 |
19 |
39 |
--------------------------------------------------------------------------------
/reference/var/functions/is-integer.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | is_integer
7 | &Alias; is_int
8 |
9 |
10 |
11 | &reftitle.description;
12 |
13 | &info.function.alias;
14 | is_int.
15 |
16 |
17 |
18 |
19 |
39 |
--------------------------------------------------------------------------------
/language/operators/string.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 字符串运算符
5 | 字符串
6 |
7 | 有两个字符串(string)运算符。第一个是连接运算符(“.”),它返回其左右参数连接后的字符串。第二个是连接赋值运算符(“.=”),它将右边参数附加到左边的参数之后。更多信息见赋值运算符。
9 |
10 |
11 |
12 |
13 | 字符串连接
14 |
15 |
25 | ]]>
26 |
27 |
28 |
29 |
30 |
31 | &reftitle.seealso;
32 |
33 |
34 | 字符串类型
35 | 字符串函数
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/reference/datetime/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.install;
7 |
8 | &no.install;
9 |
10 |
11 | 获取最新版的时区数据
12 |
13 | 可以通过安装 PECL 的
14 | timezonedb
15 | 获取最新的时区数据。
16 |
17 |
18 |
19 |
20 |
21 |
41 |
42 |
--------------------------------------------------------------------------------
/reference/phar/installation.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.install;
7 |
8 | Phar 扩展与 PHP 捆绑且默认启用。禁用 Phar 支持,使用 。
9 |
10 |
11 | 在之前的 PHP 版本,可以通过 PECL 扩展安装 Phar,Phar PECL 页面包含了历史以及更多信息。
12 |
13 |
14 |
15 |
35 |
--------------------------------------------------------------------------------
/reference/strings/functions/join.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | join
9 | &Alias; implode
10 |
11 |
12 |
13 | &reftitle.description;
14 |
15 | &info.function.alias;
16 | implode.
17 |
18 |
19 |
20 |
21 |
22 |
42 |
--------------------------------------------------------------------------------
/reference/strings/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 字符串 &Functions;
7 |
8 |
9 | &reftitle.seealso;
10 |
11 | 更多强大的字符串处理函数,参见 Perl
12 | 兼容正则表达式函数。需要处理多字节字符集,参见多字节字符函数。
14 |
15 |
16 |
17 | &reference.strings.entities.functions;
18 |
19 |
20 |
21 |
41 |
42 |
--------------------------------------------------------------------------------
/reference/ftp/functions/ftp-quit.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ftp_quit
7 | ftp_close 的 &Alias;
8 |
9 |
10 |
11 | &reftitle.description;
12 |
13 | &info.function.alias;
14 | ftp_close
15 |
16 |
17 |
18 |
19 |
39 |
--------------------------------------------------------------------------------
/reference/info/functions/ini-alter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | ini_alter
9 | &Alias; ini_set
10 |
11 |
12 |
13 | &reftitle.description;
14 |
15 | &info.function.alias; ini_set.
16 |
17 |
18 |
19 |
20 |
40 |
--------------------------------------------------------------------------------
/reference/strings/functions/strchr.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | strchr
9 | &Alias; strstr
10 |
11 |
12 |
13 | &reftitle.description;
14 |
15 | &info.function.alias;
16 | strstr.
17 |
18 |
19 |
20 |
21 |
22 |
42 |
--------------------------------------------------------------------------------
/reference/errorfunc/functions/user-error.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | user_error
8 | &Alias; trigger_error
9 |
10 |
11 |
12 | &reftitle.description;
13 |
14 | &info.function.alias; trigger_error.
15 |
16 |
17 |
18 |
19 |
39 |
--------------------------------------------------------------------------------
/reference/filesystem/functions/is-writeable.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | is_writeable
8 | is_writable 的&Alias;
9 |
10 |
11 | &reftitle.description;
12 |
13 | &info.function.alias;is_writable。
14 |
15 |
16 |
17 |
18 |
38 |
--------------------------------------------------------------------------------
/reference/var/functions/doubleval.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | doubleval
8 | &Alias; floatval
9 |
10 |
11 |
12 | &reftitle.description;
13 |
14 | &info.function.alias;
15 | floatval.
16 |
17 |
18 |
19 |
20 |
40 |
--------------------------------------------------------------------------------
/appendices/migration74/new-classes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 新的类和接口
8 |
9 |
10 | Reflection
11 |
12 |
13 |
14 |
15 | ReflectionReference
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
43 |
--------------------------------------------------------------------------------
/reference/cubrid/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.install;
7 |
8 |
9 | &pecl.info;
10 | &url.pecl.package;cubrid.
11 |
12 |
13 | &pecl.windows.download;
14 |
15 |
16 | 关于在 Linux 和 Windows 系统上的安装手册信息,请阅读包含在包中的这个文件build-guide.html。
17 |
18 |
19 |
20 |
21 |
41 |
--------------------------------------------------------------------------------
/reference/dir/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 目录函数&Functions;
7 |
8 |
9 | &reftitle.seealso;
10 |
11 | 相关函数,例如:dirname、
12 | is_dir、 mkdir 和
13 | rmdir,
14 | 请查看文件系统章节。
15 |
16 |
17 |
18 | &reference.dir.entities.functions;
19 |
20 |
21 |
22 |
42 |
43 |
--------------------------------------------------------------------------------
/reference/filesystem/functions/diskfreespace.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | diskfreespace
8 | disk_free_space 的&Alias;
9 |
10 |
11 |
12 | &reftitle.description;
13 |
14 | &info.function.alias;disk_free_space。
15 |
16 |
17 |
18 |
19 |
39 |
--------------------------------------------------------------------------------
/reference/readline/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.install;
7 |
8 | 要使用这些函数,必须编译支持 readline 的 PHP 的 CGI 或者 CLI 版本。需要配置 PHP 。如果想使用 libedit 代替 readline,配置 PHP
10 | 。
11 |
12 |
13 | 在 Windows 上,此扩展自 PHP 7.1.0 起默认可用。
14 |
15 |
16 |
17 |
37 |
38 |
--------------------------------------------------------------------------------
/reference/dir/book.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 目录
8 |
9 |
17 |
18 | &reference.dir.constants;
19 | &reference.dir.directory;
20 | &reference.dir.reference;
21 |
22 |
23 |
24 |
44 |
--------------------------------------------------------------------------------
/reference/mail/book.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Mail
8 |
9 |
10 |
11 | &reftitle.intro;
12 |
13 | mail 函数可以发送邮件。
14 |
15 |
16 |
17 |
18 | &reference.mail.setup;
19 | &reference.mail.reference;
20 |
21 |
22 |
23 |
43 |
--------------------------------------------------------------------------------
/reference/network/functions/dns-get-mx.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | dns_get_mx
9 | &Alias; getmxrr
10 |
11 |
12 |
13 | &reftitle.description;
14 |
15 | &info.function.alias;
16 | getmxrr。
17 |
18 |
19 |
20 |
21 |
22 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/reference/var/book.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 变量处理
8 |
9 |
10 | &reftitle.intro;
11 |
12 | 对于变量行为方式的信息,请参阅语言参考中的变量条目。
13 |
14 |
15 |
16 | &reference.var.setup;
17 | &reference.var.reference;
18 |
19 |
20 |
21 |
41 |
--------------------------------------------------------------------------------
/reference/apache/book.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Apache
8 |
9 |
10 |
11 | &reftitle.intro;
12 |
13 | 这些函数仅在 PHP 以 Apache 模块运行时有效。
14 |
15 |
16 |
17 |
18 | &reference.apache.setup;
19 | &reference.apache.reference;
20 |
21 |
22 |
23 |
43 |
--------------------------------------------------------------------------------
/reference/dio/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 |
9 | &reference.dio.configure;
10 |
11 |
12 |
13 |
14 | &reftitle.resources;
15 |
16 | 此扩展定义了一种资源类型:dio_open 返回的文件描述符。
17 |
18 |
19 |
20 |
21 |
22 |
23 |
43 |
--------------------------------------------------------------------------------
/reference/misc/functions/show-source.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | show_source
9 | &Alias; highlight_file
10 |
11 |
12 |
13 | &reftitle.description;
14 |
15 | &info.function.alias;
16 | highlight_file.
17 |
18 |
19 |
20 |
21 |
22 |
42 |
--------------------------------------------------------------------------------
/reference/session/functions/session-commit.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | session_commit
8 | session_write_close 的&Alias;
9 |
10 |
11 |
12 | &reftitle.description;
13 |
14 | &info.function.alias;session_write_close。
15 |
16 |
17 |
18 |
19 |
39 |
--------------------------------------------------------------------------------
/reference/filesystem/functions/set-file-buffer.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | set_file_buffer
8 | stream_set_write_buffer 的&Alias;
9 |
10 |
11 | &reftitle.description;
12 |
13 | &info.function.alias;stream_set_write_buffer。
14 |
15 |
16 |
17 |
18 |
38 |
--------------------------------------------------------------------------------
/reference/pgsql/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.install;
7 |
8 | 为启用 PostgreSQL 支持,编译 PHP 时需要 。DIR
9 | 是 PostgreSQL 的基本安装目录,默认是 /usr/local/pgsql。如果共享对象模块可用,可以使用 &php.ini;
10 | 中的 extension 指令或者 dl 函数加载 PostgreSQL 模块。
11 |
12 |
13 |
14 |
34 |
35 |
--------------------------------------------------------------------------------
/reference/apache/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 |
9 |
10 | &reftitle.install;
11 |
12 | PHP 安装到 Apache 参见 安装章节。
13 |
14 |
15 |
16 |
17 |
18 | &reference.apache.ini;
19 |
20 |
21 |
22 |
23 |
43 |
44 |
--------------------------------------------------------------------------------
/install/pie.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 安装 PIE 与第三方扩展
6 |
7 |
8 | PIE 简介
9 |
10 | &link.pie; 是 PHP 安装工具,可用于安装第三方 PHP 扩展,并支持便捷地进行安装与更新。它利用
11 | Packagist 中的 PHP
12 | 扩展仓库来查找扩展的源代码以进行构建,或在存在时下载 Windows 二进制文件。若下载的是源代码,该工具还能自动完成构建和安装过程。
13 |
14 |
15 | 在 安装所需依赖和 PIE
16 | 本身之后,可通过命令行运行以下命令安装 MongoDB 扩展。
17 |
18 |
19 | 使用 PIE 安装 MongoDB 扩展
20 |
21 |
24 |
25 |
26 |
27 | “PIE 使用方法”文档对此有更详细的说明。
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/reference/info/functions/get-required-files.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | get_required_files
9 | &Alias; get_included_files
10 |
11 |
12 |
13 | &reftitle.description;
14 |
15 | &info.function.alias; get_included_files.
16 |
17 |
18 |
19 |
20 |
21 |
41 |
--------------------------------------------------------------------------------
/reference/network/functions/dns-check-record.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | dns_check_record
9 | &Alias; checkdnsrr
10 |
11 |
12 |
13 | &reftitle.description;
14 |
15 | &info.function.alias;
16 | checkdnsrr。
17 |
18 |
19 |
20 |
21 |
22 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/reference/var/functions/is-real.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | is_real
8 | &Alias; is_float
9 |
10 |
11 |
12 | &reftitle.description;
13 |
14 | &info.function.alias;
15 | is_float.
16 |
17 | &warn.deprecated.alias-7-4-0.removed-8-0-0;
18 |
19 |
20 |
21 |
41 |
--------------------------------------------------------------------------------
/reference/password/book.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 密码散列算法
8 |
9 |
10 | &reftitle.intro;
11 |
12 | 密码散列算法 API 提供了 crypt 等密码算法的简单易用包装,
13 | 以一种简洁易用安全的方式创建和管理密码。
14 |
15 |
16 |
17 | &reference.password.setup;
18 | &reference.password.constants;
19 | &reference.password.reference;
20 |
21 |
22 |
23 |
43 |
44 |
--------------------------------------------------------------------------------
/reference/filesystem/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 文件系统&Functions;
8 |
9 |
10 | &reftitle.seealso;
11 |
12 | 相关函数参见目录和程序执行章节。
13 |
14 |
15 | 远程文件能使用的 URL 包装器( wrapper)列表和详细解释,可参见 。
16 |
17 |
18 |
19 | &reference.filesystem.entities.functions;
20 |
21 |
22 |
23 |
43 |
--------------------------------------------------------------------------------
/reference/network/functions/socket-get-status.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | socket_get_status
9 | &Alias; stream_get_meta_data
10 |
11 |
12 |
13 | &reftitle.description;
14 |
15 | &info.function.alias;
16 | stream_get_meta_data。
17 |
18 |
19 |
20 |
21 |
41 |
--------------------------------------------------------------------------------
/reference/network/functions/socket-set-timeout.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | socket_set_timeout
9 | &Alias; stream_set_timeout
10 |
11 |
12 |
13 | &reftitle.description;
14 |
15 | &info.function.alias;
16 | stream_set_timeout。
17 |
18 |
19 |
20 |
21 |
41 |
--------------------------------------------------------------------------------
/reference/array/reference.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 数组 &Functions;
8 |
9 | &reftitle.seealso;
10 |
11 | 参考 is_array、explode、
12 | implode、
13 | preg_split、unset。
14 |
15 |
16 |
17 | &reference.array.entities.functions;
18 |
19 |
20 |
21 |
41 |
42 |
--------------------------------------------------------------------------------
/reference/network/book.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | 网络
10 |
11 |
12 |
13 | &reftitle.intro;
14 |
15 | 提供一系列联网函数。
16 |
17 |
18 |
19 |
20 | &reference.network.setup;
21 | &reference.network.constants;
22 | &reference.network.reference;
23 |
24 |
25 |
26 |
46 |
47 |
--------------------------------------------------------------------------------
/reference/network/functions/socket-set-blocking.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | socket_set_blocking
9 | &Alias; stream_set_blocking
10 |
11 |
12 |
13 | &reftitle.description;
14 |
15 | &info.function.alias;
16 | stream_set_blocking。
17 |
18 |
19 |
20 |
21 |
41 |
--------------------------------------------------------------------------------
/reference/bzip2/book.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Bzip2
8 |
9 |
10 |
11 | &reftitle.intro;
12 |
13 | bzip2 函数用于透明地读写 bzip2(.bz2)压缩文件。
14 |
15 |
16 |
17 |
18 | &reference.bzip2.setup;
19 | &reference.bzip2.examples;
20 | &reference.bzip2.reference;
21 |
22 |
23 |
24 |
44 |
--------------------------------------------------------------------------------
/reference/lua/book.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Lua
8 | Lua
9 |
10 |
11 | &reftitle.intro;
12 |
13 | "Lua是一个功能强大,速度快,轻量级,可嵌入的脚本语言。"
14 | 这个扩展嵌入Lua解释器,并对lua变量和函数提供面向对象的API。
15 |
16 |
17 |
18 | &reference.lua.setup;
19 |
20 | &reference.lua.lua;
21 | &reference.lua.luaclosure;
22 |
23 |
24 |
44 |
--------------------------------------------------------------------------------
/reference/mysqli/functions/mysqli-report.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | mysqli_report
7 | &Alias; mysqli_driver->report_mode
8 |
9 |
10 |
11 | &reftitle.description;
12 |
13 | &info.function.alias; mysqli_driver->report_mode
14 |
15 |
16 |
17 |
18 |
19 |
20 |
39 |
40 |
--------------------------------------------------------------------------------
/reference/sqlite3/examples.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | &reftitle.examples;
8 |
9 | 描述内容...
10 |
11 |
12 | SQLite3 范例
13 |
14 |
20 | ]]>
21 |
22 | &example.outputs.similar;
23 |
24 |
27 |
28 |
29 |
30 |
31 |
51 |
52 |
--------------------------------------------------------------------------------
/reference/memcache/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | &reftitle.install;
6 |
7 | &pecl.moved;
8 | &pecl.info;
9 | &url.pecl.package;memcache.
10 |
11 |
12 |
13 | 可以禁用 memcache session 处理程序的支持。“pecl install”选项对此进行提示(默认启用),但是当静态编译为
14 | PHP 时,可以使用 配置选项。
15 |
16 |
17 |
18 |
19 |
20 |
40 |
--------------------------------------------------------------------------------
/reference/snmp/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.install;
7 |
8 | Net-SNMP 的 Windows 版本,
9 | 在目录 mibs中包含了支持
10 | SNMP 的文件。此目录应该作为 MIBDIRS
11 | 被添加到 Windows 的环境变量中,其值是
12 | mibs 目录的完整路径。
13 | 例如 c:\usr\mibs。
14 |
15 |
16 |
17 |
37 |
--------------------------------------------------------------------------------
/appendices/debugger.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | PHP 的调试
7 |
8 |
9 | 关于 PHP 调试器
10 |
11 | PHP 附带了基础的命令行交互调试器 phpdbg。
12 |
13 |
14 | 大多数 IDE 都支持 Xdebug,一个免费的调试工具,允许对 PHP 应用程序进行单步调试。
15 |
16 |
17 |
18 |
19 |
39 |
--------------------------------------------------------------------------------
/reference/memcached/expiration.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 超时时间
6 |
7 | 一些存储命令在发送时会包含一个失效值(与一个元素或一个客户端操作请求相关)到服务端。所有这类用法,实际发送的值可以
8 | 是一个 Unix 时间戳(自 1970 年 1 月 1 日起至失效时间的整型秒数),或者是一个从现在算起的以秒为单位的数字。对于后一种情况,这个
9 | 秒数不能超过 60×60×24×30(30 天时间的秒数);如果失效的值大于这个值,服务端会将其作为一个真实的 Unix 时间戳来处理而不是
10 | 自当前时间的偏移。
11 |
12 |
13 | 如果失效值被设置为 0(默认),此元素永不过期(但是它可能由于服务端为了给其他新的元素分配空间而被删除)。
14 |
15 |
16 |
17 |
37 |
38 |
--------------------------------------------------------------------------------
/reference/mysqli/functions/mysqli-set-opt.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | mysqli::set_opt
8 | mysqli_set_opt
9 | &Alias; mysqli_options
10 |
11 |
12 |
13 | &reftitle.description;
14 |
15 | &info.function.alias; 这个函数是 mysqli_options 的一个别名。
16 |
17 |
18 |
19 |
20 |
21 |
41 |
--------------------------------------------------------------------------------
/reference/openssl/functions/openssl-get-publickey.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | openssl_get_publickey
8 | &Alias; openssl_pkey_get_public
9 |
10 |
11 |
12 | &reftitle.description;
13 |
14 | &info.function.alias;
15 | openssl_pkey_get_public.
16 |
17 |
18 |
19 |
20 |
40 |
--------------------------------------------------------------------------------
/reference/xml/case-folding.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 大写转换
6 |
7 | 元素处理函数可取得元素名称转换为 case-folded(大写字母)形式。定义
8 | Case-folding 为“将非大写字母替换为相对应的大写字母的字符串操作”。换句话说,在
9 | XML 中,case-folding 就是转换为大写。
10 |
11 |
12 | 默认情况下,所有的通过处理函数的元素名都被转换为大写字母。每个
13 | XML 解析器可分别通过 xml_parser_get_option 与
14 | xml_parser_set_option 函数来查询与控制此项功能。
15 |
16 |
17 |
18 |
38 |
39 |
--------------------------------------------------------------------------------
/appendices/migration70/incompatible.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 不向后兼容的变更
6 |
7 | &appendices.migration70.incompatible.error-handling;
8 | &appendices.migration70.incompatible.variable-handling;
9 | &appendices.migration70.incompatible.foreach;
10 | &appendices.migration70.incompatible.integers;
11 | &appendices.migration70.incompatible.strings;
12 | &appendices.migration70.incompatible.removed-functions;
13 | &appendices.migration70.incompatible.removed-ini-directives;
14 | &appendices.migration70.incompatible.other;
15 |
16 |
17 |
37 |
--------------------------------------------------------------------------------
/reference/fileinfo/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.install;
7 |
8 | 扩展默认开启。
9 |
10 |
11 | Windows 用户需要在 &php.ini; 中开启绑定的
12 | php_fileinfo.dll DLL 来启用本扩展。
13 |
14 |
15 | PHP 中绑定了 libmagic 库,某些 PHP 版本变更中也可能包含此库。在 PHP fileinfo
16 | 扩展的源代码中,有 libmagic.patch 文件,这是 libmagic 库的补丁包文件。
17 |
18 |
19 |
20 |
40 |
--------------------------------------------------------------------------------
/reference/info/book.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | PHP 选项和信息
8 | PHP 选项/信息
9 |
10 |
11 | &reftitle.intro;
12 |
13 | 这些函数允许你获得许多关于PHP本身的参数,例如:运行时的配置,被加载的扩展,版本等。
14 | 你也将找到设置你的运行中的PHP的选项的函数。可能最好用的 PHP- 函数 phpinfo 可以在这里找到。
15 |
16 |
17 |
18 | &reference.info.setup;
19 | &reference.info.constants;
20 | &reference.info.reference;
21 |
22 |
23 |
24 |
44 |
45 |
--------------------------------------------------------------------------------
/reference/gettext/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 |
9 |
10 | &reftitle.required;
11 |
12 | 要使用这些函数,你必须从 &url.gettext; 下载和安装 GNU gettext 包
13 |
14 |
15 |
16 |
17 |
18 | &reference.gettext.configure;
19 |
20 |
21 |
22 |
23 |
43 |
44 |
--------------------------------------------------------------------------------
/reference/hash/constants.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.constants;
7 | &extension.constants;
8 |
9 |
10 |
11 | HASH_HMAC
12 | (int)
13 |
14 |
15 |
16 | hash_init 中的可选标志。表示 HMAC digest-keying 算法应被用于当前散列上下文环境。
17 |
18 |
19 |
20 |
21 |
22 |
23 |
43 |
--------------------------------------------------------------------------------
/reference/openssl/functions/openssl-get-privatekey.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | openssl_get_privatekey
9 | &Alias; openssl_pkey_get_private
10 |
11 |
12 |
13 | &reftitle.description;
14 |
15 | &info.function.alias;
16 | openssl_pkey_get_private.
17 |
18 |
19 |
20 |
21 |
22 |
42 |
--------------------------------------------------------------------------------
/reference/array/functions/key-exists.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | key_exists
10 | &Alias; array_key_exists
11 |
12 |
13 |
14 | &reftitle.description;
15 |
16 | &info.function.alias;
17 | array_key_exists.
18 |
19 |
20 |
21 |
22 |
42 |
--------------------------------------------------------------------------------
/reference/exif/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | &reftitle.install;
8 |
9 | 使用 选项
10 | 配置 PHP 来启用 exif 支持。
11 |
12 |
13 | Windows 用户必须在 &php.ini; 中启用
14 | php_mbstring.dll 和 php_exif.dll 扩展。
15 | 请确保在 &php.ini; 中保持正确的顺序:
16 | php_mbstring.dll 必须在
17 | php_exif.dll 之前 加载。
18 |
19 |
20 |
21 |
22 |
42 |
--------------------------------------------------------------------------------
/reference/fileinfo/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 |
9 | &reference.fileinfo.configure;
10 |
11 |
12 |
13 |
14 | &reftitle.resources;
15 |
16 | 在 PHP 8.1.0 之前,Fileinfo 扩展中用到了 1 个资源:finfo_open 返回的魔数数据库文件描述符。
17 |
18 |
19 |
20 |
21 |
22 |
23 |
43 |
44 |
--------------------------------------------------------------------------------
/reference/oauth/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 |
9 | &reftitle.required;
10 |
11 | PECL/oauth 需要 PHP 5.1 或更高版本,以及 ext/hash 和 ext/pcre 。
12 |
13 |
14 | 如果在构建时选择 PECL/oauth 则可选择性地需要 libcurl 。如果使用 libcurl 配置,则必须构建 HTTPS 支持。
15 |
16 |
17 |
18 |
19 | &reference.oauth.configure;
20 |
21 |
22 |
23 |
24 |
44 |
45 |
--------------------------------------------------------------------------------
/language/control-structures/require-once.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | require_once
8 |
9 |
10 | require_once 表达式和 require
11 | 表达式完全相同,唯一区别是 PHP 会检查该文件是否已经被包含过,如果是则不会再次包含。
12 |
13 |
14 | 参见 include_once 的文档来理解
15 | _once 的含义,并理解与没有 _once 时候有什么不同。
16 |
17 |
18 |
19 |
20 |
40 |
--------------------------------------------------------------------------------
/reference/filesystem/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 |
9 | &reference.filesystem.ini;
10 |
11 |
12 |
13 |
14 | &reftitle.resources;
15 |
16 | 文件系统使用 streams 作为资源类型。
17 | Streams 的文档有专门的章节:Streams。
18 |
19 |
20 |
21 |
22 |
23 |
24 |
44 |
45 |
--------------------------------------------------------------------------------
/reference/mysqli/functions/mysqli-escape-string.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | mysqli::escape_string
8 | mysqli_escape_string
9 | &Alias; mysqli_real_escape_string
10 |
11 |
12 |
13 | &reftitle.description;
14 |
15 | &info.function.alias; mysqli_real_escape_string.
16 |
17 |
18 |
19 |
20 |
40 |
--------------------------------------------------------------------------------
/reference/xmlrpc/functions/xmlrpc-server-create.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | xmlrpc_server_create
8 | 创建 xmlrpc 服务器
9 |
10 |
11 | &reftitle.description;
12 |
13 | resourcexmlrpc_server_create
14 |
15 |
16 | &warn.experimental.func;
17 | &warn.undocumented.func;
18 |
19 |
20 |
21 |
41 |
--------------------------------------------------------------------------------
/reference/datetime/datetime/getlasterrors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | DateTime::getLastErrors
8 | &Alias; DateTimeImmutable::getLastErrors
9 |
10 |
11 |
12 | &reftitle.description;
13 |
14 | &info.function.alias; DateTimeImmutable::getLastErrors
15 |
16 |
17 |
18 |
19 |
39 |
--------------------------------------------------------------------------------
/language/predefined/attributes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 预定义注解
6 |
7 |
8 |
9 | PHP 提供了一些可以使用的预定义注解。
10 |
11 |
12 |
13 | &language.predefined.attributes.attribute;
14 | &language.predefined.attributes.allowdynamicproperties;
15 | &language.predefined.attributes.deprecated;
16 | &language.predefined.attributes.override;
17 | &language.predefined.attributes.returntypewillchange;
18 | &language.predefined.attributes.sensitiveparameter;
19 |
20 |
40 |
--------------------------------------------------------------------------------
/reference/ftp/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 |
9 | &reference.ftp.configure;
10 |
11 |
12 |
13 |
14 | &reftitle.resources;
15 |
16 | PHP 8.1.0 之前,本扩展使用一种资源类型,就是由
17 | ftp_connect
18 | 或 ftp_ssl_connect 函数返回的连接标示符。
19 |
20 |
21 |
22 |
23 |
24 |
25 |
45 |
46 |
--------------------------------------------------------------------------------
/language/types/singleton.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 单例类型
6 |
7 |
8 | 单例类型(singleton type)是只允许单个值的类型。PHP 支持两种单例类型:false(自
9 | PHP 8.0.0 起支持),true(自 PHP 8.2.0 起支持)。
10 |
11 |
12 |
13 |
14 | 在 PHP 8.2.0 之前,false 类型只能用作联合类型的一部分。
16 |
17 |
18 |
19 |
20 |
21 | 无法定义自定义单例类型。建议改用枚举。
22 |
23 |
24 |
25 |
26 |
46 |
--------------------------------------------------------------------------------
/reference/pthreads/configure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | &reftitle.install;
8 |
9 |
10 | 使用 选项编译 PHP。
11 |
12 |
13 |
14 | Windows 用户需要在 &php.ini; 中配置 php_pthreads.dll 扩展。
15 |
16 |
17 |
18 |
19 | Windows 用户同时需要将 pthreadVC2.dll (包含在 pthreads 发行包中)加入到 PATH 环境变量中。
20 |
21 |
22 |
23 |
24 |
25 |
26 |
46 |
--------------------------------------------------------------------------------
/appendices/migration73/windows-support.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Windows 支持
7 |
8 |
9 | PHP 核心
10 |
11 |
12 | 更符合 POSIX 标准的文件删除方法
13 |
14 |
15 | 文件描述符默认以共享读/写/删除模式打开。这有效地映射了 POSIX
16 | 语义,并允许在使用句柄时删除文件。它不完全相同,一些平台差异仍然存在。在删除之后,将阻塞文件名条目,直到所有打开的句柄都已关闭。
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
44 |
--------------------------------------------------------------------------------
/language/control-structures/require.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | require
7 |
8 |
9 |
10 | require 跟 include 相同,只是在失败时还会产生
11 | Error 异常(PHP 8.0.0 之前为 E_COMPILE_ERROR
12 | 级别错误),而 include 只会产生警告(E_WARNING 级别错误)。
13 |
14 |
15 | 参见 include 文档了解详情。
16 |
17 |
18 |
19 |
39 |
--------------------------------------------------------------------------------
/reference/sqlite3/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 |
9 | &reftitle.required;
10 |
11 | 从 PHP 7.4.0 开始,需要 libsqlite ≥ 3.7.4。以前,可以使用捆绑的 libsqlite。
12 |
13 |
14 |
15 |
16 | &reference.sqlite3.configure;
17 |
18 |
19 |
20 | &reference.sqlite3.ini;
21 |
22 |
23 |
24 |
25 |
45 |
46 |
--------------------------------------------------------------------------------
/reference/xmlrpc/functions/xmlrpc-encode.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | xmlrpc_encode
8 | 为 PHP 值生成 XML
9 |
10 |
11 | &reftitle.description;
12 |
13 | stringxmlrpc_encode
14 | mixedvalue
15 |
16 | &warn.experimental.func;
17 | &warn.undocumented.func;
18 |
19 |
20 |
21 |
41 |
--------------------------------------------------------------------------------
/reference/lua/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | &reftitle.setup;
7 |
8 |
9 | &reftitle.required;
10 |
11 | 使用这个扩展,需要先安装LuaLua主页。
12 |
13 |
14 |
15 |
16 | &reftitle.install;
17 |
18 | &pecl.moved;
19 |
20 |
21 | &pecl.info;
22 | &url.pecl.package;lua.
23 |
24 |
25 |
26 |
27 |
28 |
48 |
--------------------------------------------------------------------------------
/reference/xhprof/setup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | &reftitle.setup;
8 |
9 |
10 | &reftitle.required;
11 |
12 | 虽然不是必需的,xhprof 包含了一个用 PHP 写的用户界面。
13 | 它是一个用来保存分析后的数据、并用浏览器显示的实用办法。
14 | 因此一个启用了 PHP 的 web 服务器将使人更能体验到 xhprof 的用处。
15 |
16 |
17 | 在 &url.xhprof.gui.fork1; 也有一个 GUI 的分支。
18 |
19 |
20 |
21 | &reference.xhprof.configure;
22 | &reference.xhprof.ini;
23 |
24 |
25 |
26 |
46 |
--------------------------------------------------------------------------------
/reference/svm/book.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | 支持向量机
9 | SVM
10 |
11 |
12 | &reftitle.intro;
13 |
14 | &warn.experimental;
15 | LibSVM 是 SVM 分类和回归问题的有效解决方案。svm 扩展将其包装在 PHP 接口中,以便在 PHP 脚本中轻松使用。
16 |
17 |
18 |
19 | &reference.svm.setup;
20 | &reference.svm.examples;
21 |
22 | &reference.svm.svm;
23 | &reference.svm.svmmodel;
24 |
25 |
26 |
27 |
47 |
--------------------------------------------------------------------------------