国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home php教程 php手冊 新版PHP極大的增強功能和性能

新版PHP極大的增強功能和性能

Jun 21, 2016 am 09:14 AM
api cli php streams

性能

在經(jīng)過長達8個月的開發(fā)和測試以后,PHP 4.3.0正式發(fā)布了。就范圍,時間,成就方面而言,這是最全面的PHP發(fā)行版,而且,作為綜合用途的腳本語言舞臺的一個重要的競爭者,它將更進一步的提高了PHP的地位。


命令行界面
這個版本最終完成了獨立的命令行界面(CLI),這可以(配合PHP-GTK一起)用于開發(fā)內(nèi)核和桌面應(yīng)用程序。CLI是內(nèi)建部分,但是在配置過程中,只有當CGI版本使用--disable-cgi開關(guān)時候,才自動安裝;或者使用make install-cli 。在Windows系統(tǒng)中,可以在cli目錄找到CLI。


與其他服務(wù)器API相比較,CLI有許多的不同。請在“PHP手冊:命令行中使用PHP”一章中找到更詳細的內(nèi)容。




Streams流
streams流API是一個非常重要的未披露的特征。在PHP內(nèi)核和擴展中,引進了統(tǒng)一的方法來處理文件、管道、sockets和其他I/O資源。


這意味著對用戶來說,任何使用streams流的I/O函數(shù)(和幾乎所有這些函數(shù))可以訪問內(nèi)置的協(xié)議,例如HTTP/HTTPS和FTP/FTPS,也可以通過PHP腳本登記使用自定義協(xié)議。請參考“已支持的協(xié)議/包列表”以獲取更詳細的內(nèi)容。


新安裝系統(tǒng)
安裝系統(tǒng)在其他重復(fù)的地方,使用了一個全局的Makefile代替了緩慢的遞歸,并且降低了固定的相關(guān)性的綜合程度。aclocal工具只需要automake。整個安裝過程更輕便,消耗更少資源。


改進
PHP 4.3.x有許多的改進和增強的地方:
捆綁發(fā)行GD庫而且推薦一直使用捆綁的版本的GD庫
vpopmail和cybermut擴充移到PECL
刪除幾個不常用的擴充(aspell, ccvs, cybercash, icap)和SAPIs(fastcgi,fhttpd)
提高了各種字符串處理函數(shù)的速度
刪除Apache2過濾器,還在實驗中(由于許多擴充基于外部的庫是不安全的,在prefork中使用PHP和工人模式)
修正各種安全隱患(imap, mysql, mcrypt, file upload, gd等等)
在其他應(yīng)用程序植入新的SAPI到PHP中(實驗性)
大量的測試套件
在dba, gd, pcntl, sybase和xslt擴展重要的改進
新增的debug_backtrace()有助于調(diào)試
現(xiàn)在錯誤信息可以鏈接到描述錯誤或者函數(shù)問題的網(wǎng)頁
Zend引擎修正小錯誤和做了小的性能的提高
大量的其他修正,更新和新功能等等



Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What is PHP and What is it Used For? What is PHP and What is it Used For? Jul 16, 2025 am 03:45 AM

PHPisaserver-sidescriptinglanguageusedforwebdevelopment,especiallyfordynamicwebsitesandCMSplatformslikeWordPress.Itrunsontheserver,processesdata,interactswithdatabases,andsendsHTMLtobrowsers.Commonusesincludeuserauthentication,e-commerceplatforms,for

Your First PHP Script: A Practical Introduction Your First PHP Script: A Practical Introduction Jul 16, 2025 am 03:42 AM

How to start writing your first PHP script? First, set up the local development environment, install XAMPP/MAMP/LAMP, and use a text editor to understand the server's running principle. Secondly, create a file called hello.php, enter the basic code and run the test. Third, learn to use PHP and HTML to achieve dynamic content output. Finally, pay attention to common errors such as missing semicolons, citation issues, and file extension errors, and enable error reports for debugging.

How Do You Handle File Operations (Reading/Writing) in PHP? How Do You Handle File Operations (Reading/Writing) in PHP? Jul 16, 2025 am 03:48 AM

TohandlefileoperationsinPHP,useappropriatefunctionsandmodes.1.Toreadafile,usefile_get_contents()forsmallfilesorfgets()inaloopforline-by-lineprocessing.2.Towritetoafile,usefile_put_contents()forsimplewritesorappendingwiththeFILE_APPENDflag,orfwrite()w

PHP 8 Installation Guide PHP 8 Installation Guide Jul 16, 2025 am 03:41 AM

The steps to install PHP8 on Ubuntu are: 1. Update the software package list; 2. Install PHP8 and basic components; 3. Check the version to confirm that the installation is successful; 4. Install additional modules as needed. Windows users can download and decompress the ZIP package, then modify the configuration file, enable extensions, and add the path to environment variables. macOS users recommend using Homebrew to install, and perform steps such as adding tap, installing PHP8, setting the default version and verifying the version. Although the installation methods are different under different systems, the process is clear, so you can choose the right method according to the purpose.

PHP Variable Scope Explained PHP Variable Scope Explained Jul 17, 2025 am 04:16 AM

Common problems and solutions for PHP variable scope include: 1. The global variable cannot be accessed within the function, and it needs to be passed in using the global keyword or parameter; 2. The static variable is declared with static, and it is only initialized once and the value is maintained between multiple calls; 3. Hyperglobal variables such as $_GET and $_POST can be used directly in any scope, but you need to pay attention to safe filtering; 4. Anonymous functions need to introduce parent scope variables through the use keyword, and when modifying external variables, you need to pass a reference. Mastering these rules can help avoid errors and improve code stability.

Advanced PHP Multiline Comment Techniques Advanced PHP Multiline Comment Techniques Jul 17, 2025 am 04:14 AM

UsemultilinecommentsinPHPforfunction/classdocumentation,codedebugging,andfileheaderswhileavoidingcommonpitfalls.First,documentfunctionsandclasseswith/*...*/toexplainpurpose,parameters,andreturnvalues,aidingreadabilityandenablingIDEintegration.Second,

PHP Installation for Beginners PHP Installation for Beginners Jul 17, 2025 am 04:15 AM

Installing PHP is not complicated for novices. The key is to clarify the system environment and version requirements and follow the steps. First, you need to confirm the operating system (Windows, macOS or Linux) and choose a stable version such as PHP8.1 or 8.2; secondly, you can install it through manual installation, using integrated environments (such as XAMPP, WAMP) or package management tools (such as apt-get and brew). Then configure environment variables to ensure that the command line can recognize PHP instructions and run through the phpinfo() page test; finally pay attention to common problems, such as Apache port occupation, php.ini file path errors and extensions not enabled, etc., and check them one by one to complete the installation smoothly.

PHP Operators for Beginners PHP Operators for Beginners Jul 17, 2025 am 04:17 AM

Mastering the commonly used operators of PHP can deal with most development scenarios, mainly including: 1. Arithmetic operators ( , -, , /, %) are used for mathematical calculations and support dynamic variable operations, but pay attention to the problems that may be caused by automatic type conversion; 2. Comparison operators (==, ===, !=, >

See all articles