Yii Framework Forum: Yii Framework and 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

Yii Framework and PHP 5.4 Bugs or rare things happening with the next PHP version. Rate Topic: -----

#1 User is offline   MetaYii 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 393
  • Joined: 07-October 08
  • Location:The Matrix

Posted 19 October 2011 - 06:15 PM

I'm trying PHP 5.4 (I'll make the transition from 5.2 when it's at least 5.4.2). So, I'll be posting here my findings regarding Yii+5.4
Ah! on-off, simplement!
1

#2 User is offline   Max_Power 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 13-December 10

Posted 04 March 2012 - 08:40 PM

Have you discovered anything yet? i was kind of hoping this would be a post that was saying Yii would be written w/ php 5.4 in mind, given all the interesting new features they added.
0

#3 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,391
  • Joined: 12-October 09
  • Location:Croatia

Posted 05 March 2012 - 03:54 AM

NOTE: moved to proper section (Miscellaneous instead of Bug Discussion)
Find more about me.... btw. Do you know your WAN IP?
0

#4 User is offline   Da:Sourcerer 

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

Posted 05 March 2012 - 07:03 AM

I've been toying around with v5.4 for a bit now. I only noticed some serious breakage in a legacy app for now (probably maguic quotes related. I need to dig deeper into that). Apart from that, everything is fine. It looks like current APC doesn't work with it, so you need to pull a version from SVN. So far, no problems with Yii. but there are quite noticeable speed improvements.

If you are on a RadHat-based distro, I can recommend remi's fine RPMs (they are mostly a backport of the Fedora/Rawhide RPMs). If you are interested what's new: Ilia gave a nice presentation on that.
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

#5 User is offline   Da:Sourcerer 

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

Posted 12 March 2012 - 09:07 AM

Follow-up: This PHP v5.4 PPA is fine for Ubuntu. Still couldn't spot any bugs, but it really looks like most stuff is now really DB-bound. With Yii it turns into a real challenge to produce pages that take longer than 0.2s to render :lol:
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

#6 User is offline   Da:Sourcerer 

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

Posted 12 March 2012 - 09:19 AM

Oh yes, the packaged APC version won't work. But pulling a version from SVN doesn't seem to be necessariy. As far as I can tell, it's entirely sufficient to compile the last version via pear/pecl.
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

#7 User is offline   Da:Sourcerer 

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

Posted 12 March 2012 - 10:33 AM

Ok, here's one ... If you're running v3.1.9 of APC, make sure to set apc.stat to 1 and apc.include_once_override to 0. I'm seeing a lot of segfaults with other settings <_<
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

#8 User is offline   NandoSang 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 17-January 12

Posted 13 March 2012 - 12:51 PM

I'll try and post my result later.
0

#9 User is offline   xNicox 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 85
  • Joined: 19-October 10

Posted 29 August 2014 - 09:59 AM

HI, I'm havving problems with errors that appears in the app, that before 5.3, don't.
Can you tell me how to "bypass" some errors ?
Undefined index: id
(/opt/lampp/htdocs/yii-1.1.12/framework/web/CArrayDataProvider.php:102)
Stack trace:
#0
/opt/lampp/htdocs/yii-1.1.12/framework/zii/widgets/CBaseListView.php(130):
GroupGridView->renderKeys()
#1 /opt/lampp/htdocs/yii-1.1.12/framework/web/CBaseController.php(174):

Lic. Nicolas Machado
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