PHP: The new version will be close to Java

xiaoxiao2021-03-06  53

PHP: The new version will be close to Java

The so-called "php" is an open source web application development / operating environment. Recently, the "Nikkei Open System" reporter interviewed the center member Zeev Suraski on the development plan of the PHP Development Center in the future. Zeev Suraski said that the new version of PHP will be imported into Try, Catch, etc., which is closer to Java to make it easier to develop large systems. (Interviewer: High Bridge Trust) - Please talk about the cause of deciding to develop PHP. Rasmus Lerdorf first announced PHP in 1995. In 1997, I used a tool called PHP / FI (Personal Home Page / Form Interpreter) when making Israeli University webpage and online store sites. At this time, the PHP is only exposed. During use, a large bug was found. Since the source code is open, I have investigated the causes of BUG and have been revised, and there is still a big improvement in the investigation. So I made a modification of the PHP / Fi script execution engine together with Andi Gutmans that was jointly project. After the modified execution engine is handed over to Lerdorf, it has become a formal execution engine of the new PHP3.0. By improving the script execution engine, we have developed a higher speed of Zend Engine. Zend This name is a combination of Zeev and Andi. PHP embedded in Zend Engine is the current version PHP4. The original program is to execute while reading the inside, and then it is changed to each execution cycle explained once, so 100 cycles should be performed to perform 100 same interpretation processing. Zend Engine is an explanation of the script of the entire file and then start executing. Since the interpretation process is greatly reduced, the execution speed is greatly improved. PHP4 was downloaded 2,650,000 times within 2 months after the published. According to Netcraft statistics, the current PHP is currently installed on 6 million domain name servers. I think the most important reason for php is welcome is simple and practical. Some people have said in the email: "Although there is no programming experience, I use PHP only 3 hours to write simple programs." This extent is not reached with Java. In addition, PHP is developed for WWW, so it is convenient to handle cookies and forms. PHP is free, will continue to be released free of charge, but considering the requirements of business costs and support products, Israel Zend has been established in 1999, and high-speed PHP software and comprehensive development tools were developed. - What features are prepared to expand in the new version of PHP5 released by the end of 2002? Object-oriented functions will be further improved to make large systems development easier. Although PHP has already had class and subclasses, PHP5 is closer to Java. Java, which will be introduced into TRY, CATCH, and other Java structures. In PHP4, the function is used as a variable, even if an object does not change. PHP can be assigned by standard, and the object can also assign a value, so the function value is not the object itself, but a copy of the value. When a function needs to be changed to an object value, it is necessary to specifically prompt before the object as a variable. Such a prompt is not required in Java, and PHP5 uses the same mode as Java. In addition, PHP5 also imports Name Space, after the namespace determine, functions, variables, and valid ranges of class names are limited to namespaces. When the name is clear, the repetitive name can be ignored when using variables and function names, which is also convenient for the development of large programs. New features called "stream" are also a convenient function. It allows the WWW server to use the same function with the file on the FTP server.

转载请注明原文地址:https://www.9cbs.com/read-114426.html

New Post(0)