5/13/2008

New features in PHP 6

The next version of PHP, V6, contains a very syntax of the new
features and improvements, will make it easier to object-oriented
aspects of use.
Other important features: for example, in the core function of the
Unicode (HS) support, which means that PHP 6 to provide a better more
reliable international support.

PHP has been very popular, numerous sites used by the majority of
Internet access by the support, Yahoo was such a big company to use
the network. In the coming version of PHP prepared to increase the
number of successful new features, so that PHP in some occasions even
easier to use security. You ready to accept the PHP 6? » If you
upgrade tomorrow, your program will run very good » You how to do »
The article set the PHP 6 of the change, some of them migrate to
backup version of the PHP v5.x, your current script may require some
adjustment.

If you are not using PHP, but have been considering it, consider it
the new features. These characteristics, the core support from Unicode
to support XML, making it easier for you to write to fill the
functions of PHP applications.

PHP 6 new features

PHP 6 has a current snapshot of the use of developers, so you can
download and try this article lists many of the characteristics of
these features have in the current snapshot of reality. See resources.

Improved Unicode support

The core function in PHP, many of Unicode strings the support of the
improvements, these new features will have a tremendous impact because
it allows PHP to the international character to provide more support.
Therefore, if a developer or architect to use a different language,
such as the Java programming language, because it has more than PHP
the international support it, when he will support the improvement,
spend a little time to think about PHP.

Because today you can download to developers version of the PHP V6,
you will see some of the features of function has been to support
Unicode strings. A function of the list has been tested and verified
can handle Unicode, see the resources.

Namespace

Namespace is a function or class to avoid naming conflicts between
the而使function and type of your way and can not be read without the use
of the prefix a method of naming convention. Therefore, through the
use of naming space, you can name others may have been used in class
name, without fear of running when an error. Table 1 provides a PHP in
the use of the name space sample.

You do not have to do in the source code of updates or changes, as you
write any PHP code can not contain namespace and running very well.
Named because of space seems to be transplanted to PHP 5.3 X, if it
can use, you can use its own procedures in the name space.

Table 1, sample namespace

<? php
/ / I'm not sure why I would implement my own XMLWriter, but at least
/ / The name of this one won't collide with the one built in to PHP
namespace NathanAGood;
class XMLWriter
(
/ / Implementation here ...
)

$ writer = new NathanAGood:: XMLWriter ();

«>


Web 2.0 properties

Depends on how you use PHP script and you look like what is now the
differences in language and syntax, or may not be the greatest degree
of impact on some of the following characteristics, this means that
you apply directly to the Web 2.0 functionality to your The PHP
applications.

SOAP

SOAP is a network services, "said" the agreement and support of many
other languages, such as Java and Microsoft. NET, although there are
other ways to drive and use of network services, such as
representation of the state changes (Representational State Transfer)
REST , SOAP still in a different platform is operational in the most
commonly used. In addition, SOAP extension in PHP and PEAR library
use, SOAP in PHP is not supported by default, so you or the opening of
this expansion is the opening of your ISP. In addition, PEAR package
allows you to build SOAP client and server, such as SOAP package.

If you change the default settings, SOAP will enable PHP 6. This
expansion will provide you very easy to achieve the SOAP client and
SOAP services, allows you to prepare the application or the use of
network services.

If the SOAP extension is the default setting, it would mean that you
can not set them in PHP, if you develop the PHP applications and
publish them to an ISP server, you may need to check your ISP, to
verify SOAP and enable them to upgrade .

XML

In PHP 5.1 in the XMLReader and XMLWriter has become part of the PHP
core, which makes you work together more easily if you need to use PHP
to process XML in the past. SOAP and expansion of the same, if you use
SOAP or XML This is good news for PHP 6 latest PHP4 than have more for
you.

Things have been removed

In addition to a number of new features, PHP 6 engine will remove some
of the earlier version has some function. Most of these features, such
as register_globals and in the current PHP safe_mode was regarded as a
"break." Because they may be exposed some security risks. PHP in
efforts to eliminate, the next version of the PHP will be removed or
abandoned. Opponents believe that the majority of ISP or enterprise
will retain the script because now upgrade to PHP6 would undermine the
current script, but supporters believe that PHP team is very pleased
to see that the repair of these loopholes, and to provide a clean and
safe operation of tools.

PHP will be deleted features are:

magic_quotes register_globals register_long_arrays safe_mode

No comments: