<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHP &#8211; 科技改变生活-雨落星辰</title>
	<atom:link href="https://p1e.cn/html/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>https://p1e.cn</link>
	<description>所有的伟大,都源于一个勇敢的开始</description>
	<lastBuildDate>Thu, 04 Feb 2021 01:16:16 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>php7.4报错：Trying to access array offset on value of type null</title>
		<link>https://p1e.cn/html/2388.html</link>
					<comments>https://p1e.cn/html/2388.html#respond</comments>
		
		<dc:creator><![CDATA[Naoki]]></dc:creator>
		<pubDate>Thu, 04 Feb 2021 00:29:24 +0000</pubDate>
				<category><![CDATA[运维笔记]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://www.815494.com/?p=2388</guid>

					<description><![CDATA[php升级后的7.4版本性能真的好到爆炸，可是依然会有个别的兼容性问题，比如Php-fpm的新选项ProtectHome会导致经典的File not found错误，再是Php解释器会对null类型的下标访问直接报错Trying to access array offset on value of type null； 那么对于出现Trying to access array offset on value of type null报错的解决方法其实也很简单，无非就是避免数组出现null就好了，那么我们可以在之前加]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-2389" src="https://i.p1e.cn/2021/02/Ys24UQ.jpg" width="800" height="320" />php升级后的7.4版本性能真的好到爆炸，可是依然会有个别的兼容性问题，比如Php-fpm的新选项ProtectHome会导致经典的File not found错误，再是Php解释器会对null类型的下标访问直接报错Trying to access array offset on value of type null；</p>
<p>那么对于出现Trying to access array offset on value of type null报错的解决方法其实也很简单，无非就是避免数组出现null就好了，那么我们可以在之前加个判断，比如$tempres[‘p_name’]会出现null，改写之后的代码</p>
<div class="codecolorer-container text solarized-dark">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="line-numbers">
<div>1<br />
2<br />
3<br />
4<br />
5<br />
6</div>
</td>
<td>
<div class="text codecolorer">
<p>if(!empty($tempres)){</p>
<p>$productname= $tempres[&#8216;p_name&#8217;];<br />
}else{<br />
$productname= &#8221;;<br />
}</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<p>是不是就完美解决了呢？</p>
<div></div>]]></content:encoded>
					
					<wfw:commentRss>https://p1e.cn/html/2388.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PHP提高SESSION响应速度的几种方法</title>
		<link>https://p1e.cn/html/738.html</link>
					<comments>https://p1e.cn/html/738.html#respond</comments>
		
		<dc:creator><![CDATA[Naoki]]></dc:creator>
		<pubDate>Tue, 18 Dec 2018 01:24:35 +0000</pubDate>
				<category><![CDATA[运维笔记]]></category>
		<category><![CDATA[memcache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[redis]]></category>
		<category><![CDATA[SESSION]]></category>
		<guid isPermaLink="false">http://www.815494.com/?p=738</guid>

					<description><![CDATA[1.设置多级目录存储SESSION 默认session的存储目录是1级目录，如果用户量比较大，session文件数量就比较大，我们可以设置目录数为2，使用2级目录可以提交查找和存取速度。不过这种方式对速度的提升一般不是很明显，可以通过修改php.ini，进而修改session存储目录数。]]></description>
										<content:encoded><![CDATA[<p>1.设置多级目录存储SESSION<br />
默认session的存储目录是1级目录，如果用户量比较大，session文件数量就比较大，我们可以设置目录数为2，使用2级目录可以提交查找和存取速度。不过这种方式对速度的提升一般不是很明显，可以通过修改php.ini，进而修改session存储目录数。<br />
[success]session.save_path = &#8220;2;/tmp&#8221;[/success]</p>
<p>2.将SESSION存储到redis中<br />
php中的session默认是存储在文件中的，支持redis存储方式，因为redis的键值数据时存储在内存中的，可以提高session的存取速度。<br />
[success]session.save_handler = redis<br />
session.save_path = &#8220;tcp://127.0.0.1:6379&#8243;[/success]</p>
<p>3.使用Memcache来保存Session。很显示，用文件保存session和用Memcache保存session，Memcache有明显优势。<br />
[success]session.save_handler = memcache<br />
session.save_path = &#8220;tcp://127.0.0.1:11211&#8243;[/success]</p>
<p>及时释放SESSION文件锁<br />
我们在使用session时，需要先执行session_start()函数。</p>
<p>session_start()函数的作用如下：</p>
<p>判断http请求是否包含名为PHPSESSID的cookie，如果没有则创建该cookie并写入到http响应的头文件。<br />
通过PHPSESSID查找对应的session文件，以读写方式打开的文件，然后读取里面的数据到内存。</p>
<p>然后我们一般会通过$_SESSION这个超全局变量，读取或者设置session的值，我们操作的时候，session的值都是保存在内存中的，默认在页面执行完毕之后，才会写入到对应的文件中。</p>
<div></div>]]></content:encoded>
					
					<wfw:commentRss>https://p1e.cn/html/738.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>军哥Lnmp 一键安装包 简单反向代理设置</title>
		<link>https://p1e.cn/html/337.html</link>
					<comments>https://p1e.cn/html/337.html#respond</comments>
		
		<dc:creator><![CDATA[Naoki]]></dc:creator>
		<pubDate>Tue, 21 Aug 2018 11:58:09 +0000</pubDate>
				<category><![CDATA[运维笔记]]></category>
		<category><![CDATA[lnmp]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://815494.com/?p=337</guid>

					<description><![CDATA[Nginx是一个高性能的HTTP和反向代理服务器，使用Nginx，只需要简单的几条命令保存到文件，即可实现简单、基本反向代理功能。 一、进入相关目录 如创建一个网址为“815494.com”的虚拟主机]]></description>
										<content:encoded><![CDATA[<p>Nginx是一个高性能的HTTP和反向代理服务器，使用Nginx，只需要简单的几条命令保存到文件，即可实现简单、基本反向代理功能。</p>
<p>一、进入相关目录</p>
<p>如创建一个网址为“815494.com”的虚拟主机</p>
<p>[success]cd /usr/local/nginx/conf/vhost[/success]</p>
<p>进入LNMP一键包的虚拟主机配置文件夹，找到刚刚创建的“815494.com.conf”文件，并编辑。</p>
<p>二、添加反向代理规则</p>
<p>删除之前系统生成的代码，填入以下代码，注意修改黄色部分。</p>
<p>&nbsp;</p>
<p>[success]</p>
<p>server<br />
{<br />
listen 80;<br />
server_name <span style="color: #ffcc00;">815494.com</span>;</p>
<p>location / {<br />
proxy_pass <span style="color: #ffcc00;">http://cdn.815494.com/</span>;<br />
proxy_redirect off;<br />
proxy_set_header X-Real-IP $remote_addr;<br />
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br />
}<br />
}</p>
<p>[/success]</p>
<p>&nbsp;</p>
<p>以上代码，表示使用“815494.com”反向代理“cdn.815494.com”，然后保存文件即可。</p>
<p>三、测试</p>
<p>1、测试规则是否正确</p>
<p>[success]/usr/local/nginx/sbin/nginx -t[/success]</p>
<p>若提示：“the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok configuration file /usr/local/nginx/conf/nginx.conf test is successful”表示正常，若有错误请根据错误提示排除问题。</p>
<p>2、重载nginx规则</p>
<p>[success]service nginx reload[/success]</p>
<p>执行以上代码即可生效。</p>
<div></div>]]></content:encoded>
					
					<wfw:commentRss>https://p1e.cn/html/337.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PHP模块一览及简要说明</title>
		<link>https://p1e.cn/html/23.html</link>
					<comments>https://p1e.cn/html/23.html#respond</comments>
		
		<dc:creator><![CDATA[Naoki]]></dc:creator>
		<pubDate>Tue, 15 May 2018 08:58:27 +0000</pubDate>
				<category><![CDATA[运维笔记]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://815494.com/?p=23</guid>

					<description><![CDATA[PHP 编译完成后，可以通过一个简单的函数 phpinfo() 查看关于 PHP 的所有信息。以下介绍的模块一览，皆全部来自于函数 phpinfo() 的输出信息。 SAPI Modules 什么是 SAPI？ SAPI 即 Server API, Server Application Programming Interface。 1、Apache 2.0 Handler(apache2handler) 用于 Apache 2 的模块，当安装的是 PHP 5 的时候，编译出来的文件名是 libphp5.so；当安装]]></description>
										<content:encoded><![CDATA[<div>PHP 编译完成后，可以通过一个简单的函数 phpinfo() 查看关于 PHP 的所有信息。以下介绍的模块一览，皆全部来自于函数 phpinfo() 的输出信息。</div>
<div>
<h3>SAPI Modules</h3>
<p>什么是 SAPI？<br />
SAPI 即 Server API, Server Application Programming Interface。</p>
</div>
<div>
<h4>1、Apache 2.0 Handler(apache2handler)</h4>
<p>用于 Apache 2 的模块，当安装的是 PHP 5 的时候，编译出来的文件名是 libphp5.so；当安装的是 PHP 7 的时候，编译出来的文件名是 libphp7.so。<br />
libphp5.so 或 libphp7.so 通常被安装在 Apache 的安装目录下的 modules 目录。<br />
编译的时候需指定参数 −−with-apxs2=FILE，比如 −−with-apxs2=/usr/local/apache/bin/apxs</p>
</div>
<div>
<h4>2、CGI / FastCGI</h4>
<p>CGI，意为 Common Gateway Interface。<br />
通常编译安装在 PHP 安装目录 bin 下，这个可执行文件名是 php-cgi。</p>
</div>
<div>
<h4>3、CLI</h4>
<p>CLI，意为 Command Line。命令行模式。<br />
通常编译安装在 PHP 安装目录 bin 下，这个可执行文件名是 php。<br />
输入 php -h 显示其用法。</p>
</div>
<div>
<h4>4、Embed</h4>
<p>默认不编译安装，除非指定编译参数 −−enable-embed<br />
该模块允许在 C/C++ 语言中调用 PHP 提供的函数。</p>
</div>
<div>
<h4>5、FastCGI Process Manager</h4>
<p>FastCGI Process Manager，也就是 FPM，PHP FastCGI 进程的管理器。</p>
</div>
<div>
<h4>6、litespeed</h4>
<p>用于 LiteSpeed 的模块，默认不编译。<br />
通过指定编译参数 −−with-litespeed 安装。 Build PHP as litespeed module</p>
</div>
<div>
<h4>7、phpdbg</h4>
<p>从 PHP 5.6 开始，引入了 phpdbg，交互式调试器，用于 Debug PHP 程序，可以在不用修改代码，不影响性能的情况下控制 PHP 的运行环境。<br />
通常编译安装在 PHP 安装目录 bin 下，这个可执行文件名是 phpdbg。<br />
PHP 5.4 和 5.5 也可以单独安装该模块。</p>
</div>
<div>
<h3>PHP Modules</h3>
<p>PHP 源码自带的扩展模块，根据 PHP 版本的不同略有差别，大致为以下这么 71 个模块。</p>
</div>
<div>
<h4>1、BC Math</h4>
<p>通过指定编译参数 −−enable-bcmath 安装。 Enable bc style precision math functions</p>
</div>
<div>
<h4>2、Bzip2</h4>
<p>通过指定编译参数 −−with-bz2=DIR 安装。 Include BZip2 support<br />
Debian/Ubuntu 需安装 libbz2-dev 依赖包。<br />
Redhat/CentOS 需安装 bzip2-devel 依赖包。</p>
</div>
<div>
<h4>3、Calendar</h4>
<p>通过指定编译参数 −−enable-calendar 安装。 Enable support for calendar conversion</p>
</div>
<div>
<h4>4、COM and .Net</h4>
<p>Windows 专用扩展。COM 是指 Component Object Model，组件对象模型，是多项微软技术与框架的基础，包括OLE、OLE自动化、ActiveX、COM+、DCOM、Windows shell、DirectX、Windows Runtime。</p>
</div>
<div>
<h4>5、ctype</h4>
<p>此扩展默认为启用，编译时可通过下列选项禁用：−−disable-ctype</p>
</div>
<div>
<h4>6、cURL</h4>
<p>通过指定编译参数 −−with-curl=DIR 安装。 Include cURL support<br />
Debian/Ubuntu 需安装 libcurl4-gnutls-dev 依赖包。<br />
Redhat/CentOS 需安装 curl-devel 依赖包。</p>
</div>
<div>
<h4>7、Date/Time Support(date)</h4>
<p>日期和时间函数，默认编译安装，不可禁止。</p>
</div>
<div>
<h4>8、DBA</h4>
<p>通过指定编译参数 −−enable-dba 安装。 Build DBA with bundled modules<br />
该参数会默认自带 3 个参数，−−with-cdb，−−enable-inifile，inifile-flatfile，若要禁止，则需通过参数−−without-cdb=DIR，−−disable-inifile，−−disable-flatfile 实现。</p>
</div>
<div>
<h4>9、DB-LIB (MS SQL, Sybase)(pdo_dblib)</h4>
<p>Windows 专用扩展。用于连接  SQL Server 和 Sybase 数据库的 PDO 驱动扩展。</p>
</div>
<div>
<h4>10、DOM</h4>
<p>此扩展默认为启用，Document Object Model。编译时可通过下列选项禁用：−−disable-dom</p>
</div>
<div>
<h4>11、enchant</h4>
<p>通过指定编译参数 −−with-enchant=DIR 安装。 Include enchant support. GNU Aspell version 1.1.3 or higher required.<br />
一般需指定其目录，−−with-enchant=/usr<br />
Debian/Ubuntu 需安装 libenchant-dev, libpspell-dev 依赖包。<br />
Redhat/CentOS 需安装 enchant-devel, aspell-devel 依赖包。</p>
</div>
<div>
<h4>12、EXIF</h4>
<p>通过指定编译参数 −−enable-exif 安装。 Enable EXIF (metadata from images) support</p>
</div>
<div>
<h4>13、fileinfo</h4>
<p>此扩展默认为启用，fileinfo support。编译时可通过下列选项禁用：−−disable-fileinfo<br />
注意：在内存比较小的机器上编译此扩展时可能会失败，因此内存加 SWAP 的容量小于 480MB 时就不要安装了。</p>
</div>
<div>
<h4>14、Filter</h4>
<p>此扩展默认为启用，input filter support。编译时可通过下列选项禁用：−−disable-filter<br />
另如果要给此扩展指定 PCRE 安装目录的话，则还有以下的编译参数。<br />
−−with-pcre-dir  FILTER: pcre install prefix</p>
</div>
<div>
<h4>15、Firebird driver for PDO(pdo_firebird)</h4>
<p>−−with-interbase=DIR Include Firebird support.  DIR is the Firebird base install directory<br />
−−with-pdo-firebird=DIR PDO: Firebird support.  DIR is the Firebird base install directory</p>
</div>
<div>
<h4>16、FTP</h4>
<p>通过指定编译参数 −−enable-ftp 安装。Enable FTP support<br />
安装该扩展还有个参数 −−with-openssl-dir=DIR  FTP: openssl install prefix，可不指定，则使用系统自带 openssl 库。</p>
</div>
<div>
<h4>17、GD imaging(gd)</h4>
<p>通过指定编译参数 −−with-gd=DIR 安装。Include GD support.  DIR is the GD library base install directory BUNDLED<br />
这是一个打包式的依赖，需要依赖如下安装包。<br />
−−with-webp-dir=DIR(PHP 7.0, 7.1 only)<br />
−−with-jpeg-dir=DIR<br />
−−with-png-dir=DIR<br />
−−with-zlib-dir=DIR<br />
−−with-xpm-dir=DIR<br />
−−with-freetype-dir=DIR<br />
−−enable-gd-native-ttf<br />
−−enable-gd-jis-conv</p>
</div>
<div>PHP5.4、PHP5.5、PHP5.6 则还有个<br />
−−with-vpx-dir=DIR</div>
<div>Debian/Ubuntu 需安装 libwebp-dev, libjpeg-dev, libpng-dev, libxpm-dev, libfreetype6-dev, libvpx-dev 依赖包。<br />
Redhat/CentOS 需安装 libwebp-devel, libjpeg-devel, libpng-devel, libXpm-devel, freetype-devel, libvpx-devel 依赖包。</div>
<div>
<h4>18、GetText</h4>
<p>通过指定编译参数 −−with-gettext=DIR 安装。Include GNU gettext support<br />
Debian/Ubuntu 需安装 gettext 依赖包。<br />
Redhat/CentOS 需安装 gettext, gettext-devel 依赖包。</p>
</div>
<div>
<h4>19、GMP</h4>
<p>通过指定编译参数 −−with-gmp=DIR 安装。Include GNU MP support<br />
Debian/Ubuntu 需安装 libgmp-dev 依赖包。<br />
Redhat/CentOS 需安装 gmp-devel 依赖包。</p>
</div>
<div>
<h4>20、Hash</h4>
<p>此扩展默认为启用，编译时可通过下列选项禁用：−−disable-hash  Disable hash support</p>
</div>
<div>
<h4>21、iconv</h4>
<p>此扩展默认为启用，编译时可通过下列选项禁用：−−without-iconv=DIR  Exclude iconv support</p>
</div>
<div>
<h4>22、IMAP</h4>
<p>通过指定以下编译参数。<br />
−−with-imap=DIR         Include IMAP support. DIR is the c-client install prefix<br />
−−with-kerberos=DIR     IMAP: Include Kerberos support. DIR is the Kerberos install prefix<br />
−−with-imap-ssl=DIR     IMAP: Include SSL support. DIR is the OpenSSL install prefix<br />
编译此选项时，PHP 需指定 libc-client.a 所在目录。</p>
</div>
<div>
<h4>23、InterBase</h4>
<p>−−with-interbase=DIR Include Firebird support.  DIR is the Firebird base install directory</p>
</div>
<div>
<h4>24、Internationalization(intl)</h4>
<p>通过指定编译参数 −−enable-intl 安装。 Enable internationalization support</p>
</div>
<div>
<h4>25、json</h4>
<p>此扩展默认为启用，编译时可通过下列选项禁用：−−disable-json  Disable JavaScript Object Serialization support</p>
</div>
<div>
<h4>26、LDAP</h4>
<p>−−with-ldap=DIR         Include LDAP support<br />
−−with-ldap-sasl=DIR    LDAP: Include Cyrus SASL support<br />
Debian/Ubuntu 需安装 libldap-2.4-2, libldap2-dev 依赖包。<br />
Redhat/CentOS 需安装 openldap, openldap-devel 依赖包。</p>
</div>
<div>
<h4>27、libxml</h4>
<p>此扩展默认为启用，编译时可通过下列选项禁用：−−disable-libxml  Disable LIBXML support<br />
−−with-libxml-dir=DIR   LIBXML: libxml2 install prefix<br />
Debian/Ubuntu 需安装 libxml2, libxml2-dev 依赖包。<br />
Redhat/CentOS 需安装 libxml2, libxml2-devel 依赖包。</p>
</div>
<div>
<h4>28、Multibyte String Functions(mbstring)</h4>
<p>通过指定编译参数 −−enable-mbstring 安装。 Enable multibyte string support<br />
−−disable-mbregex  MBSTRING: Disable multibyte regex support<br />
−−disable-mbregex-backtrack  MBSTRING: Disable multibyte regex backtrack check<br />
−−with-libmbfl=DIR  MBSTRING: Use external libmbfl.  DIR is the libmbfl base install directory BUNDLED<br />
−−with-onig=DIR  MBSTRING: Use external oniguruma. DIR is the oniguruma install prefix. If DIR is not set, the bundled oniguruma will be used<br />
libmbfl 对 mbstring 是必要的。libmbfl 被捆绑到了 mbstring。<br />
Debian/Ubuntu 需安装 libonig2, libonig-dev 依赖包。<br />
Redhat/CentOS 需安装 oniguruma, oniguruma-devel 依赖包。</p>
</div>
<div>
<h4>29、mcrypt</h4>
<p>通过指定编译参数  −−with-mcrypt=DIR 安装。  Include mcrypt support<br />
Debian/Ubuntu 需安装 libmcrypt-dev 依赖包。<br />
Redhat/CentOS 需编译安装 libmcrypt 和 mcrypt 。如果安装了 EPEL 的话，则需安装 libmcrypt-devel 依赖包。</p>
</div>
<div>
<h4>30、MySQL driver for PDO(pdo_mysql)</h4>
<p>−−with-mysql-sock=SOCKPATH  MySQLi/PDO_MYSQL: Location of the MySQL unix socket pointer<br />
指定系统里安装的 MYSQL 的 mysql.sock 路径。<br />
−−with-pdo-mysql=DIR  PDO: MySQL support. DIR is the MySQL base directory<br />
指定系统里安装的 MYSQL 的基本目录。若未指定，则默认安装 mysqlnd(MySQL native driver)</p>
</div>
<div>
<h4>31、MySQLi</h4>
<p>−−with-mysqli=FILE  Include MySQLi support. FILE is the path to mysql_config<br />
指定系统里安装的 MYSQL 的目录下的 mysql_config 文件路径。</p>
</div>
<div>
<h4>32、MySQLnd</h4>
<p>通过指定编译参数 −−enable-mysqlnd 安装。 Enable mysqlnd explicitly, will be done implicitly when required by other extensions<br />
另如果要给此扩展指定 libz 目录的话，则还有以下的编译参数。<br />
−−with-zlib-dir=DIR  mysqlnd: Set the path to libz install prefix</p>
</div>
<div>
<h4>33、OCI8</h4>
<p>−−with-oci8=DIR  Include Oracle Database OCI8 support. DIR defaults to $ORACLE_HOME<br />
系统里安装了 Oracle 数据库的话，则指定为 $ORACLE_HOME；否则需安装 Oracle Instant Client，指定为 /path/to/instant/client/lib</p>
</div>
<div>
<h4>34、ODBC driver for PDO(pdo_odbc)</h4>
<p>−−with-pdo-odbc=flavour,dir<br />
PDO: Support for ‘flavour’ ODBC driver.<br />
include and lib dirs are looked for under ‘dir’.<br />
‘flavour’ can be one of:  ibm-db2, iODBC, unixODBC, generic<br />
If ‘,dir’ part is omitted, default for the flavour<br />
you have selected will be used. e.g.:<br />
−−with-pdo-odbc=unixODBC<br />
will check for unixODBC under /usr/local. You may attempt to use an otherwise unsupported driver using the “generic” flavour.<br />
The syntax for generic ODBC support is:<br />
−−with-pdo-odbc=generic,dir,libname,ldflags,cflags<br />
When built as ‘shared’ the extension filename is always pdo_odbc.so</p>
</div>
<div>
<h4>35、ODBC</h4>
<p>ODBC 有很多种，一般使用如下编译参数即可。<br />
−−with-unixODBC=DIR  Include unixODBC support /usr/local<br />
Debian/Ubuntu 需安装 unixodbc, unixodbc-dev 依赖包。<br />
Redhat/CentOS 需安装 unixODBC, unixODBC-devel 依赖包。<br />
注意：PHP 默认会去 /usr/local/include 下去找头文件 sqlext.h，所以还要做个软链接。<br />
ln -s /usr/include/sqlext.h /usr/local/include/</p>
</div>
<div>
<h4>36、OpenSSL</h4>
<p>−−with-openssl=DIR      Include OpenSSL support (requires OpenSSL &gt;= 1.0.1)<br />
−−with-kerberos=DIR     OPENSSL: Include Kerberos support<br />
−−with-system-ciphers   OPENSSL: Use system default cipher list instead of hardcoded value<br />
PHP 7.1 所需的 openssl 版本是 &gt;= 1.0.1<br />
PHP 7.0 所需的 openssl 版本是 &gt;= 0.9.8<br />
PHP 5.6 所需的 openssl 版本是 &gt;= 0.9.6<br />
PHP 5.5 所需的 openssl 版本是 &gt;= 0.9.6<br />
PHP 5.4 所需的 openssl 版本是 &gt;= 0.9.6<br />
PHP 5.3 所需的 openssl 版本是 &gt;= 0.9.6</p>
</div>
<div>
<h4>37、Oracle (OCI) driver for PDO(pdo_oci)</h4>
<p>−−with-pdo-oci=DIR  PDO: Oracle OCI support. DIR defaults to $ORACLE_HOME.<br />
Use −−with-pdo-oci=instantclient,prefix,version for an Oracle Instant Client SDK.<br />
For example on Linux with 11.2 RPMs use:<br />
−−with-pdo-oci=instantclient,/usr,11.2</p>
</div>
<div>
<h4>38、pcntl</h4>
<p>通过指定编译参数 −−enable-pcntl 安装。 Enable pcntl support (CLI/CGI only)</p>
</div>
<div>
<h4>39、Perl Compatible Regular Expressions(PCRE)</h4>
<p>−−with-pcre-regex=DIR   Include Perl Compatible Regular Expressions support. DIR is the PCRE install prefix BUNDLED<br />
−−with-pcre-jit  Enable PCRE JIT functionality</p>
</div>
<div>
<h4>40、PHP Archive(Phar)</h4>
<p>此扩展默认为启用，编译时可通过下列选项禁用：−−disable-phar  Disable phar support</p>
</div>
<div>
<h4>41、PHP Data Objects(PDO)</h4>
<p>此扩展默认为启用，编译时可通过下列选项禁用：−−disable-pdo  Disable PHP Data Objects support</p>
</div>
<div>
<h4>42、Posix</h4>
<p>此扩展默认为启用，编译时可通过下列选项禁用：−−disable-posix  Disable POSIX-like functions</p>
</div>
<div>
<h4>43、PostgreSQL driver for PDO(pdo_pgsql)</h4>
<p>−−with-pdo-pgsql=DIR  PDO: PostgreSQL support.  DIR is the PostgreSQL base install directory or the path to pg_config</p>
</div>
<div>
<h4>44、PostgreSQL</h4>
<p>−−with-pgsql=DIR  Include PostgreSQL support.  DIR is the PostgreSQL base install directory or the path to pg_config</p>
</div>
<div>
<h4>45、Pspell</h4>
<p>−−with-pspell=DIR  Include PSPELL support. GNU Aspell version 0.50.0 or higher required<br />
一般需指定其目录，−−with-pspell=/usr<br />
Debian/Ubuntu 需安装 libpspell-dev 依赖包。<br />
Redhat/CentOS 需安装 aspell-devel 依赖包。</p>
</div>
<div>
<h4>46、Readline</h4>
<p>−−with-readline=DIR  Include readline support (CLI/CGI only)<br />
Debian/Ubuntu 需安装 libreadline-dev 依赖包。<br />
Redhat/CentOS 需安装 readline-devel 依赖包。</p>
</div>
<div>
<h4>47、Recode</h4>
<p>−−with-recode=DIR  nclude recode support<br />
Debian/Ubuntu 需安装 librecode-dev 依赖包。<br />
Redhat/CentOS 需安装 recode-devel 依赖包。</p>
</div>
<div>
<h4>48、Reflection</h4>
<p>此扩展默认为启用。</p>
</div>
<div>
<h4>49、Sessions</h4>
<p>此扩展默认为启用，编译时可通过下列选项禁用：−−disable-session  Disable session support<br />
另如果要给此扩展指定 mm 支持的话，则还有以下的编译参数。<br />
−−with-mm=DIR  SESSION: Include mm support for session storage</p>
</div>
<div>
<h4>50、Shared Memory Operations(shmop)</h4>
<p>通过指定编译参数 −−enable-shmop 安装。 Enable shmop support</p>
</div>
<div>
<h4>51、SimpleXML</h4>
<p>此扩展默认为启用，编译时可通过下列选项禁用：−−disable-simplexml  Disable SimpleXML support<br />
另如果要给此扩展指定 libxml2 目录的话，则还有以下的编译参数。<br />
−−with-libxml-dir=DIR  SimpleXML: libxml2 install prefix</p>
</div>
<div>
<h4>52、SNMP</h4>
<p>通过指定编译参数 −−with-snmp=DIR 安装。 Include SNMP support<br />
另如果要给此扩展指定 openssl 目录的话，则还有以下的编译参数。<br />
−−with-openssl-dir=DIR  SNMP: openssl install prefix<br />
Debian/Ubuntu 需安装 libsnmp-dev 依赖包。<br />
Redhat/CentOS 需安装 net-snmp-devel 依赖包。</p>
</div>
<div>
<h4>53、SOAP</h4>
<p>通过指定编译参数 −−enable-soap 安装。 Enable SOAP support<br />
另如果要给此扩展指定 libxml2 目录的话，则还有以下的编译参数。<br />
−−with-libxml-dir=DIR  SOAP: libxml2 install prefix</p>
</div>
<div>
<h4>54、Sockets</h4>
<p>通过指定编译参数 −−enable-sockets 安装。 Enable sockets support</p>
</div>
<div>
<h4>55、SPL</h4>
<p>此扩展默认为启用。</p>
</div>
<div>
<h4>56、SQLite3</h4>
<p>此扩展默认为启用，编译时可通过下列选项禁用：−−without-sqlite3=DIR  Do not include SQLite3 support. DIR is the prefix to SQLite3 installation directory</p>
</div>
<div>
<h4>57、SQLite 3.x driver for PDO(pdo_sqlite)</h4>
<p>此扩展默认为启用，编译时可通过下列选项禁用：−−without-pdo-sqlite=DIR  PDO: sqlite 3 support. DIR is the sqlite base install directory BUNDLED</p>
</div>
<div>
<h4>58、System V Message based IPC</h4>
<p>通过指定编译参数 −−enable-sysvmsg 安装。 Enable sysvmsg support</p>
</div>
<div>
<h4>59、System V Semaphores</h4>
<p>通过指定编译参数 −−enable-sysvsem 安装。 Enable System V semaphore support</p>
</div>
<div>
<h4>60、System V Shared Memory</h4>
<p>通过指定编译参数 −−enable-sysvshm 安装。 Enable the System V shared memory support</p>
</div>
<div>
<h4>61、tidy</h4>
<p>通过指定编译参数 −−with-tidy=DIR 安装。 Include TIDY support<br />
一般需指定其目录，−−with-tidy=/usr<br />
Debian/Ubuntu 需安装 libtidy-dev 依赖包。<br />
Redhat/CentOS 需安装 libtidy-devel 依赖包。</p>
</div>
<div>
<h4>62、tokenizer</h4>
<p>此扩展默认为启用，编译时可通过下列选项禁用：−−disable-tokenizer  Disable tokenizer support</p>
</div>
<div>
<h4>63、WDDX</h4>
<p>通过指定编译参数 −−enable-wddx 安装。 Enable WDDX support<br />
另如果要给此扩展指定 libxml2 目录的话，则还有以下的编译参数。<br />
−−with-libxml-dir=DIR  WDDX: libxml2 install prefix</p>
</div>
<div>
<h4>64、XMLReader</h4>
<p>此扩展默认为启用，编译时可通过下列选项禁用：−−disable-xmlreader  Disable XMLReader support<br />
另如果要给此扩展指定 libxml2 目录的话，则还有以下的编译参数。<br />
−−with-libxml-dir=DIR  XMLReader: libxml2 install prefix</p>
</div>
<div>
<h4>65、xmlrpc</h4>
<p>通过指定编译参数 −−with-xmlrpc=DIR 安装。 Include XMLRPC-EPI support<br />
另如果要给此扩展指定 libxml2 和 iconv 目录的话，则还有以下的编译参数。<br />
−−with-libxml-dir=DIR  XMLRPC-EPI: libxml2 install prefix<br />
−−with-iconv-dir=DIR  XMLRPC-EPI: iconv dir for XMLRPC-EPI</p>
</div>
<div>
<h4>66、XML</h4>
<p>此扩展默认为启用，编译时可通过下列选项禁用：−−disable-xml  Disable XML support</p>
</div>
<div>
<h4>67、XMLWriter</h4>
<p>此扩展默认为启用，编译时可通过下列选项禁用：−−disable-xmlwriter  Disable XMLWriter support</p>
</div>
<div>
<h4>68、XSL</h4>
<p>通过指定编译参数 −−with-xsl=DIR 安装。 Include XSL support.  DIR is the libxslt base install directory (libxslt &gt;= 1.1.0 required)<br />
Debian/Ubuntu 需安装 libxslt1-dev 依赖包。<br />
Redhat/CentOS 需安装 libxslt-devel 依赖包。</p>
</div>
<div>
<h4>69、Zip</h4>
<p>通过指定编译参数 −−enable-zip 安装。 Include Zip read/write support<br />
另如果要给此扩展指定 libz, PCRE 和 libzip 目录的话，则还有以下的编译参数。<br />
−−with-zlib-dir=DIR  ZIP: Set the path to libz install prefix<br />
−−with-pcre-dir=DIR  ZIP: pcre install prefix<br />
−−with-libzip=DIR  ZIP: use libzip</p>
</div>
<div>
<h4>70、Zlib</h4>
<p>通过指定编译参数 −−with-zlib=DIR 安装。 Include ZLIB support (requires zlib &gt;= 1.0.9)<br />
Debian/Ubuntu 需安装 zlib1g-dev 依赖包。<br />
Redhat/CentOS 需安装 zlib-devel 依赖包。</p>
</div>
<div>
<h4>71、Zend OPcache</h4>
<p>PHP 5.5 之后的版本，此扩展默认为启用，编译时可通过下列选项禁用：−−disable-opcache  Disable Zend OPcache support<br />
注意：默认编译安装不代表默认启用，还需配置到 ini 文件里才行。</p>
</div>
<div>
<h3>另外，PHP 还有诸多的第三方扩展，框架，CMS，包管理工具等。举几个例子。</h3>
<p>扩展：ZendGuardLoader, ionCube Loader, XCache, Imagemagick, GraphicsMagick, Memcached, Redis, Mongodb, Swoole<br />
框架：Laravel, Symfony, Nette, Yii, Zend Framework, Silex, Slim, CakePHP, ThinkPHP<br />
CMS：Wordpress, Drupal, Joomla, Typecho, Phpcms,<br />
包管理工具：Composer</p>
</div>
<p>&nbsp;</p>
<div></div>]]></content:encoded>
					
					<wfw:commentRss>https://p1e.cn/html/23.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
