View previous topic :: View next topic |
Author |
Message |
hagman Smarty Rookie
Joined: 18 Apr 2003 Posts: 10 Location: Östersund, Sweden
|
Posted: Tue Apr 29, 2003 12:44 pm Post subject: Smarty for PHP5 |
|
|
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 |
|
AZTEK Smarty Pro
Joined: 16 Apr 2003 Posts: 235 Location: Purdue University
|
Posted: Tue Apr 29, 2003 2:45 pm Post subject: |
|
|
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 |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Tue Apr 29, 2003 4:21 pm Post subject: |
|
|
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 |
|
Back to top |
|
Tom Sommer Administrator
Joined: 16 Apr 2003 Posts: 47 Location: Denmark
|
Posted: Thu May 01, 2003 8:46 pm Post subject: |
|
|
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 |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Thu May 01, 2003 9:08 pm Post subject: |
|
|
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 |
|
Tom Sommer Administrator
Joined: 16 Apr 2003 Posts: 47 Location: Denmark
|
Posted: Thu May 01, 2003 9:13 pm Post subject: |
|
|
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 |
|
Wom.bat Smarty Pro
Joined: 24 Apr 2003 Posts: 107 Location: Munich, Germany
|
Posted: Thu May 01, 2003 9:38 pm Post subject: |
|
|
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 |
|
AZTEK Smarty Pro
Joined: 16 Apr 2003 Posts: 235 Location: Purdue University
|
Posted: Thu May 01, 2003 10:32 pm Post subject: |
|
|
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 |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Thu May 01, 2003 11:07 pm Post subject: |
|
|
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 |
|
Back to top |
|
Dummkopf Smarty Rookie
Joined: 19 Apr 2003 Posts: 23
|
Posted: Sun May 25, 2003 4:17 pm Post subject: |
|
|
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 - has never planed or programmed an OO project in PHP ... |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Sun May 25, 2003 5:16 pm Post subject: |
|
|
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
Anyhow, I don't care if it doesn't get released for another year--no hurry. |
|
Back to top |
|
|