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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:28:30
Script start
Timing: Jan 18 2025 16:28:30
Module start 'layout'
Timing: Jan 18 2025 16:28:30
Module start 'content'
Timing: Jan 18 2025 16:28:31
Module end 'content'
Timing: Jan 18 2025 16:28:31
Script end

Main resources:

Total runtime0.0173 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.8047152.6094
Module start 'layout' 0.00580.0038 740.414139.4141
Module start 'content' 0.00960.0057 779.828193.2734
Module end 'content' 0.01520.0020 873.101638.3047
Script end 0.0173  911.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002715.5156140.0002
Check MTime0.00127.1519140.0001
Mysql Total
Database connection0.00074.029510.0007
Mysqli_queries0.003218.283730.0011
Looping result0.00000.150310.0000
Template Total0.00179.810.0017
Template load0.00084.914510.0008
Template processing0.00084.822210.0008
Override
Cache load0.00063.520810.0006
General
dbfile0.00031.457180.0000
String conversion0.00000.044140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs