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

eZ debug

Timing: Jan 19 2025 09:13:04
Script start
Timing: Jan 19 2025 09:13:04
Module start 'content'
Timing: Jan 19 2025 09:13:05
Module end 'content'
Timing: Jan 19 2025 09:13:06
Script end

Main resources:

Total runtime1.3823 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.8438180.8516
Module start 'content' 0.00541.2480 769.6953607.8828
Module end 'content' 1.25350.1288 1,377.5781337.3906
Script end 1.3823  1,714.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.3166210.0002
Check MTime0.00150.1078210.0001
Mysql Total
Database connection0.00070.050110.0007
Mysqli_queries1.299193.98121990.0065
Looping result0.00210.15021970.0000
Template Total1.349397.620.6746
Template load0.00250.182820.0013
Template processing1.346797.425020.6734
Template load and register function0.00010.006210.0001
states
state_id_array0.00130.092310.0013
state_identifier_array0.00190.138420.0010
Override
Cache load0.00220.1593430.0001
Sytem overhead
Fetch class attribute can translate value0.00150.110140.0004
Fetch class attribute name0.00160.113270.0002
XML
Image XML parsing0.00190.135240.0005
class_abstraction
Instantiating content class attribute0.00000.001180.0000
General
dbfile0.00860.6257400.0002
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs