Yii Framework Forum: PHP 5.4 - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

PHP 5.4

#1 User is offline   fsb 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 123
  • Joined: 09-January 11

Posted 04 January 2012 - 01:53 PM

The downloads page of yiiframework.com clearly states that Yii 2 is aimed at PHP 5.3.

Given the timing of things, that PHP 5.4.0GA is coming "real soon now", and that Yii 2 will perhaps spend considerable time in alpha/beta, has anyone considered changing the basis to PHP 5.4?
Join the happiest place on Freenode: #yii
We've got a MrFisk the bot, hilarious banter and all kinds of other groovy stuff going on.
Comparison of Internet Relay Chat clients
Web IRC client
1

#2 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 04 January 2012 - 02:32 PM

It was decided to stick to 5.3 - simply because 5.4 does not bring enough new things to the table.

Let's not forget that Yii needs to be able to run on as many servers as possible.
"Less noise - more signal"
0

#3 User is offline   fsb 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 123
  • Joined: 09-January 11

Posted 04 January 2012 - 04:04 PM

View Postjacmoe, on 04 January 2012 - 02:32 PM, said:

It was decided to stick to 5.3 - simply because 5.4 does not bring enough new things to the table.

Let's not forget that Yii needs to be able to run on as many servers as possible.


ok.

well i guess we can use extensions to use some of 5.4's tricks, like tracing and debugging with dtrace or whatever
Join the happiest place on Freenode: #yii
We've got a MrFisk the bot, hilarious banter and all kinds of other groovy stuff going on.
Comparison of Internet Relay Chat clients
Web IRC client
0

#4 User is offline   Rodrigo Coelho 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 665
  • Joined: 05-August 10
  • Location:Rio de Janeiro, Brazil

Posted 04 January 2012 - 06:21 PM

View Postfsb, on 04 January 2012 - 04:04 PM, said:

well i guess we can use extensions to use some of 5.4's tricks, like tracing and debugging with dtrace or whatever


The core will require at least PHP 5.3, but you can install and use PHP 5.3+ (including PHP 5.4) on your server with no problems. Then all PHP 5.4 features will be available to your code (including your Yii extensions that use PHP 5.4 features).
0

#5 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 04 January 2012 - 06:27 PM

5.3 is just minimally required version. I think that's a good target. :)
"Less noise - more signal"
2

#6 User is offline   mmx 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 64
  • Joined: 20-June 11
  • Location:Virginia Beach, VA USA

Posted 09 February 2012 - 04:28 PM

View Postmentel, on 04 January 2012 - 06:21 PM, said:

The core will require at least PHP 5.3, but you can install and use PHP 5.3+ (including PHP 5.4) on your server with no problems. Then all PHP 5.4 features will be available to your code (including your Yii extensions that use PHP 5.4 features).


Just a memory recollection, but CodeIgniter 1.x.x (maybe 2.x also) detected PHP version in their equivalent to a CObject, allowing different sets of classes of the same name to coexist within the framework. The idea was originally meant to handle the distinction between PHP4 and PHP5 code (a major PHP version), but the concept seems very extensible. PHP4 related classes were used when running on top of PHP4 and so on.

CodeIgniter supports one additional feature and this is core class replacement. If the application code includes a file of the same name as a core class, the core class is replaced by the application version.

I always felt these were nice DRY solutions available should a developer need them. They are also KISS in the sense that the replacement of files is simple and automatic in most respects.
0

#7 User is offline   Rodrigo Coelho 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 665
  • Joined: 05-August 10
  • Location:Rio de Janeiro, Brazil

Posted 10 February 2012 - 01:28 AM

View Postmmx, on 09 February 2012 - 04:28 PM, said:

Just a memory recollection, but CodeIgniter 1.x.x (maybe 2.x also) detected PHP version in their equivalent to a CObject, allowing different sets of classes of the same name to coexist within the framework. The idea was originally meant to handle the distinction between PHP4 and PHP5 code (a major PHP version), but the concept seems very extensible. PHP4 related classes were used when running on top of PHP4 and so on.


IMHO, too much complexity for too little gain (for PHP 5.3 vs 5.4).

View Postmmx, on 09 February 2012 - 04:28 PM, said:

CodeIgniter supports one additional feature and this is core class replacement. If the application code includes a file of the same name as a core class, the core class is replaced by the application version.


With Yii 1.1, there's the "class" parameter where you can specify you own class to an application component. For me, it is good enough.

It seems that the core team is planning to have this for the 1.1 static classes (like CHtml), too.
0

#8 User is offline   Da:Sourcerer 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,222
  • Joined: 30-March 11
  • Location:Berlin, Germany

Posted 08 June 2012 - 05:06 AM

According to these slides (see slide #21), Yii2's minimum requirement is PHP v5.3.8. How come?
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

#9 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,788
  • Joined: 17-January 09
  • Location:Russia

Posted 08 June 2012 - 05:41 AM

Da:Sourcerer
There were some very important fixes about hashes, encryption and stuff in 5.3 branch. I think Yii2 will be able to run even on 5.3.0 but I'm preparing people for 5.3.8 :)
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#10 User is offline   Da:Sourcerer 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,222
  • Joined: 30-March 11
  • Location:Berlin, Germany

Posted 08 June 2012 - 05:47 AM

Ah, okay. It looked like an arbitrary change, but this explains :)
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

#11 User is offline   ekerazha 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 526
  • Joined: 10-October 08
  • Location:European Union

Posted 09 June 2012 - 01:36 PM

View Postsamdark, on 08 June 2012 - 05:41 AM, said:

Da:Sourcerer
There were some very important fixes about hashes, encryption and stuff in 5.3 branch. I think Yii2 will be able to run even on 5.3.0 but I'm preparing people for 5.3.8 :)


I know that openssl_random_pseudo_bytes() has issues on Windows until 5.3.4... what important fixes are there between 5.3.4 and 5.3.8?
Yii user #37
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users