Forums / General / Article: PHP 6 changes

Article: PHP 6 changes

Author Message

Bruce Morrison

Sunday 11 May 2008 4:08:18 pm

A good article on the changes slated for PHP6

http://www.ibm.com/developerworks/opensource/library/os-php-future/?ca=dgr-lnxw01PHP-Future

cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Piotrek Karaś

Wednesday 14 May 2008 11:30:34 pm

Hi Bruce,

My question, following your earlier Vista-like questions, would be: what is eZ System's plan for eZ Publish in relation to PHP6? Will there be another port, or is any more challenging approach taken under consideration? This will be nice to know ;)

Cheers,
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Kristof Coomans

Thursday 15 May 2008 1:18:38 am

As you can read, the differences between PHP 5 and PHP 6 are language-wise far from as big as the one between PHP 4 and PHP 5.

At first sight, the only (necessary) changes for eZ Publish will be:
- remove certain installation checks related to features that have been removed from PHP (safe mode, magic quotes, etc)
- use the PHP 6 unicode features
- replace usage of POSIX regex functions (ereg) with Perl Compatible regex functions (preg)

List of files in trunk (4.1.0alpha1) using ereg now:

./benchmarks/classes/ezbenchmarkrunner.php
./bin/php/ezconvertdbcharset.php
./kernel/classes/clusterfilehandlers/ezdbfilehandler.php
./kernel/classes/clusterfilehandlers/ezfsfilehandler.php
./kernel/classes/datatypes/ezxmltext/ezxmlinputtype.php
./kernel/classes/datatypes/ezxmltext/handlers/input/ezsimplifiedxmlinputparser.php
./kernel/classes/ezpackage.php
./kernel/classes/ezurlwildcard.php
./kernel/content/translations.php
./kernel/setup/steps/ezstep_registration.php
./lib/ezfile/classes/ezdir.php
./lib/ezlocale/classes/ezlocale.php
./lib/ezutils/classes/ezdebug.php
./lib/ezutils/classes/ezini.php
./lib/ezutils/classes/ezmail.php
./lib/ezutils/classes/ezsys.php

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Piotrek Karaś

Thursday 15 May 2008 6:46:02 pm

<i>As you can read, the differences between PHP 5 and PHP 6 are language-wise far from as big as the one between PHP 4 and PHP 5.</i>
The question remains - when will PHP4 code become problematic? Around PHP6, PHP7? ;)
Hopefully, the components will be introduced soon enough.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu