The new version of PHP greatly enhances functions and performance

Source: Internet
Author: User
Tags stream api
PHP 4.3.0 was officially released after 8 months of development and testing of the new version of PHP. In terms of scope, time, and achievements, this is the most comprehensive PHP release, and is an important competitor in the script language stage for comprehensive purposes, it will further improve the status of PHP.


Command line interface
This version eventually completes the independent CLI, which can be used together with the PHP-GTK to develop kernel and desktop applications. CLI is a built-in part, but it is automatically installed only when the -- disable-CGI switch is used in the configuration process, or make install-cli is used. In Windows, you can find the cli in the CLI directory.


Compared with other server APIs, CLI has many differences. Find more details in the "PHP Manual: use PHP in command line" chapter.




Streams stream
The streams stream API is a very important non-disclosure feature. In PHP kernel and extension, a unified method is introduced to process files, pipelines, sockets and other I/O resources.


This means that for users, any I/O function that uses the streams stream (and almost all of these functions) can access the built-in protocols, such as HTTP/HTTPS and FTP/FTPS, you can also use the PHP script to register and use the custom protocol. For more information, see "supported protocols/Packages.


New Installation System
The installation system uses a global Makefile to replace the slow recursion and reduce the overall degree of fixed correlation. The aclocal tool only needs automake. The entire installation process is lighter and consumes less resources.


Improvement
PHP 4.3.x has many improvements and enhancements:
It is recommended that you always use the GD library of the bundled version.
Expand vpopmail and cybermut to PECL
Delete several uncommonly used extensions (aspell, ccvs, cybercash, icap) and SAPIs (fastcgi, fhttpd)
Improves the speed of various string processing functions
Deleting the Apache2 filter is still in the experiment (because many external libraries based on extensions are insecure, PHP and worker modes are used in prefork)
Fix various security risks (imap, mysql, mcrypt, file upload, gd, etc)
Embedding new SAPI into PHP in other applications (experimental)
A large number of test kits
Significant improvements in dba, gd, pcntl, sybase, and xslt extensions
The new debug_backtrace () facilitates debugging.
The error message can be linked to the webpage that describes the error or function problem.
Zend engine fixes minor errors and improves performance.
A large number of other fixes, updates, and new features

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.