Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty for PHP5

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
hagman
Smarty Rookie


Joined: 18 Apr 2003
Posts: 10
Location: Östersund, Sweden

PostPosted: Tue Apr 29, 2003 12:44 pm    Post subject: Smarty for PHP5 Reply with quote

I would really like to see a native version of Smarty for PHP5.
Would really be nice if a stable release already existed when PHP5 is released.
_________________
php
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
AZTEK
Smarty Pro


Joined: 16 Apr 2003
Posts: 235
Location: Purdue University

PostPosted: Tue Apr 29, 2003 2:45 pm    Post subject: Reply with quote

From what I read *ALL* PHP 4 scripts should work on PHP 5 as it will be backwards compatible. I could be wrong however. It would be nice to see Smarty use some of the new features of PHP 5 (that is in ZE2 from http://www.php.net/ZEND_CHANGES.txt).
_________________
"Imagine a school with children that can read and write, but with teachers who cannot, and you have a metaphor of the Information Age in which we live." -Peter Cochrane
Back to top
View user's profile Send private message Visit poster's website
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Tue Apr 29, 2003 4:21 pm    Post subject: Reply with quote

here we go.

Quote:
native version of Smarty for PHP5


I think he means exploiting new functionality in PHP5. I think thatt will be awhile off. While we are at it, how about a module version of smarty? One that emits opcodes instead of writing php text Smile
Back to top
View user's profile Send private message
Tom Sommer
Administrator


Joined: 16 Apr 2003
Posts: 47
Location: Denmark

PostPosted: Thu May 01, 2003 8:46 pm    Post subject: Reply with quote

Once PHP5 is released, you can't assume everyone will upgrade from PHP4...

If you code for PHP5, you'll loose all PHP4 users, which is bad
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Thu May 01, 2003 9:08 pm    Post subject: Reply with quote

Tom Sommer wrote:
If you code for PHP5, you'll loose all PHP4 users, which is bad


Why? Will PHP5 virally delete all PHP4 code everywhere it exists in the world? In the distant future when PHP5 is a reality and there is a PHP5 optimized Smarty, there will still be a PHP4 version of Smarty (by then more advanced than it is now). The codebase can probably made to autodetect its environement and configure itself.

Most likely PHP5 and PHP4 will run side-by-side on the same box.
Back to top
View user's profile Send private message
Tom Sommer
Administrator


Joined: 16 Apr 2003
Posts: 47
Location: Denmark

PostPosted: Thu May 01, 2003 9:13 pm    Post subject: Reply with quote

PHP4 can't parse PHP5

You have to maintain two codebases then

And checking for PHP4 and PHP5 and going forward with all that namespace stuff etc. if it's PHP5, won't really be very good for performance
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Wom.bat
Smarty Pro


Joined: 24 Apr 2003
Posts: 107
Location: Munich, Germany

PostPosted: Thu May 01, 2003 9:38 pm    Post subject: Reply with quote

you can well assume that nearly everybody will migrate to PHP5. this was the case with PHP4, and since PHP5 will parse PHP4 perfectly, all web hosters will update, and it is only the spread among web hosters which defines the acceptance. web hosters will have to update, since their clients will require this, and no hoster will want to stay behind it's competitors
Back to top
View user's profile Send private message
AZTEK
Smarty Pro


Joined: 16 Apr 2003
Posts: 235
Location: Purdue University

PostPosted: Thu May 01, 2003 10:32 pm    Post subject: Reply with quote

Hell I've still seen some webhosts still only run PHP 3.0.18 so not always will webhosts update.
_________________
"Imagine a school with children that can read and write, but with teachers who cannot, and you have a metaphor of the Information Age in which we live." -Peter Cochrane
Back to top
View user's profile Send private message Visit poster's website
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Thu May 01, 2003 11:07 pm    Post subject: Reply with quote

Quote:
PHP4 can't parse PHP5

You have to maintain two codebases then


Yes, one would be a frozen PHP4 version and the other would be a rootin' tootin PHP5 version. It happens all the time in the software world.

Besides, PHP4 need never be asked to parse PHP5 code. A bootstrap (PHP4 compatable) could always detect env then load appropriate code libraries.

Anyhow, its not like its NOT going to happen one day, so don't worry about the mechanics of the switch-over or fret about the roll-out period. I don't think anyone intends to do anything that will strand or abandon users--that's just a silly thing to do Wink
Back to top
View user's profile Send private message
Dummkopf
Smarty Rookie


Joined: 19 Apr 2003
Posts: 23

PostPosted: Sun May 25, 2003 4:17 pm    Post subject: Reply with quote

The main changes in PHP 5 are a real implementation of OO-funcitonality, error-handling and portability (refers to executing pearl-statements, etc.)

All these every-day-snipplets, coded by every-day-users, won´t be affected anyway.

And the projects, which IMO just have to use OO if they reach a certain size, will propably all change to PHP5.

Anyway, without a good OO-functionality PHP wouldn´t survive as a professional web-scripting-language.

I guess that everybody who doesn´t like PHP5 - although it´s no released yet Wink - has never planed or programmed an OO project in PHP ...
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Sun May 25, 2003 5:16 pm    Post subject: Reply with quote

How many people are actually DYING to get PHP5? I have to admit, some of the features will be downright handy and many more will be welcome. Still, I can't say that I see eye-to-eye with some of the design decisions. Also, the OO implementation looks vastly improved, but I don't consider it to be a full blown OOP. Some of the ways you get to access the inner-workings of classes look novel, but obtuse. Who, knows--those will probably become my favourite features Smile

Anyhow, I don't care if it doesn't get released for another year--no hurry.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP