You are not logged in.

#1 2009-09-28 17:34:24

tompouceuh
Member
Registered: 2006-03-22
Posts: 30

PHP 5.3 screwed it all!

Hi!

I'd like to know how could I downgrade PHP and all of its relatives packages?

I already read http://wiki.archlinux.org/index.php/Downgrade_packages and I found a 5.2.9 version of PHP but now php-apache so there's a lot of missing parts.

Is there anybody who ran into the same troubles?

Thanks a lot!

PS: I can't change the non-working code since it's web apps such as wordpress and roundcube.

Offline

#2 2009-09-28 18:19:59

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,967
Website

Re: PHP 5.3 screwed it all!

Roundcube works just fine with PHP 5.3 and I am quite sure the latest wrodpress will do so, too. Don't use outdated php versions on a public server.

Offline

#3 2009-09-28 18:23:32

tompouceuh
Member
Registered: 2006-03-22
Posts: 30

Re: PHP 5.3 screwed it all!

Pierre wrote:

Roundcube works just fine with PHP 5.3 and I am quite sure the latest wrodpress will do so, too. Don't use outdated php versions on a public server.

I've downloaded latest version today, and I get a lot of deprecated functions errors :S

Did you download it from SVN or what?

Thanks!

Offline

#4 2009-09-28 18:23:40

ugkbunb
Member
Registered: 2009-02-26
Posts: 227

Re: PHP 5.3 screwed it all!

pacman -U /var/cache/pacman/pkg/**PACKAGE**

but it seems you already saw this from the wiki...


if you don't have it in your cache perhaps a nice member can post up his package... are you on x86_64 or i686?

Offline

#5 2009-09-28 18:28:08

tompouceuh
Member
Registered: 2006-03-22
Posts: 30

Re: PHP 5.3 screwed it all!

ugkbunb wrote:

pacman -U /var/cache/pacman/pkg/**PACKAGE**

but it seems you already saw this from the wiki...


if you don't have it in your cache perhaps a nice member can post up his package... are you on x86_64 or i686?

For some weird reasons I don't have those packages anymore...

And yes I saw it from the wiki.

I'm on x86_64 smile

Last edited by tompouceuh (2009-09-28 18:28:47)

Offline

#6 2009-09-28 18:32:08

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,967
Website

Re: PHP 5.3 screwed it all!

Disable the deprecated warning in php.ini. They are just warning which ask you to update your code becaused t wont work with future versions of PHP.

Offline

#7 2009-09-28 18:34:11

tompouceuh
Member
Registered: 2006-03-22
Posts: 30

Re: PHP 5.3 screwed it all!

Pierre wrote:

Disable the deprecated warning in php.ini. They are just warning which ask you to update your code becaused t wont work with future versions of PHP.

How the heck can I do this? Thanks!

Offline

#8 2009-09-28 18:50:50

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,967
Website

Re: PHP 5.3 screwed it all!

error_reporting = E_ALL & ~E_DEPRECATED

Offline

#9 2009-09-28 18:58:37

tompouceuh
Member
Registered: 2006-03-22
Posts: 30

Re: PHP 5.3 screwed it all!

tompouceuh wrote:
Pierre wrote:

Disable the deprecated warning in php.ini. They are just warning which ask you to update your code becaused t wont work with future versions of PHP.

How the heck can I do this? Thanks!

I did this and I'm still having those messages:
Deprecated: Assigning the return value of new by reference is deprecated in /srv/http/utils/roundcube/program/lib/MDB2.php on line 392 Deprecated: Assigning the return value of new by reference is deprecated in /srv/http/utils/roundcube/program/lib/MDB2.php on line 2614 Deprecated: Assigning the return value of new by reference is deprecated in /srv/http/utils/roundcube/program/lib/PEAR.php on line 563 Deprecated: Assigning the return value of new by reference is deprecated in /srv/http/utils/roundcube/program/lib/PEAR.php on line 566 DSN (write):  NOT OK(MDB2 Error: connect failed)

Check it out:
http://pousli.net/mail/

Damn it! tongue

Last edited by tompouceuh (2009-09-28 19:00:06)

Offline

#10 2009-09-28 20:05:34

tompouceuh
Member
Registered: 2006-03-22
Posts: 30

Re: PHP 5.3 screwed it all!

tompouceuh wrote:
tompouceuh wrote:
Pierre wrote:

Disable the deprecated warning in php.ini. They are just warning which ask you to update your code becaused t wont work with future versions of PHP.

How the heck can I do this? Thanks!

I did this and I'm still having those messages:
Deprecated: Assigning the return value of new by reference is deprecated in /srv/http/utils/roundcube/program/lib/MDB2.php on line 392 Deprecated: Assigning the return value of new by reference is deprecated in /srv/http/utils/roundcube/program/lib/MDB2.php on line 2614 Deprecated: Assigning the return value of new by reference is deprecated in /srv/http/utils/roundcube/program/lib/PEAR.php on line 563 Deprecated: Assigning the return value of new by reference is deprecated in /srv/http/utils/roundcube/program/lib/PEAR.php on line 566 DSN (write):  NOT OK(MDB2 Error: connect failed)

Check it out:
http://pousli.net/mail/

Damn it! tongue

There was functions in the code forcing to show them... So trouble "fixed".

Offline

#11 2009-09-28 20:18:57

ugkbunb
Member
Registered: 2009-02-26
Posts: 227

Re: PHP 5.3 screwed it all!

If you still need the php 5.2 packes let me know... and if you need any others with it... post the name. I should still have them in my cache.

Offline

#12 2009-09-28 22:36:29

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: PHP 5.3 screwed it all!

tompouceuh wrote:

There was functions in the code forcing to show them... So trouble "fixed".

Can these be patched into the repo package until upstream update to be fully compatible with 5.3?

Offline

#13 2009-09-28 22:39:42

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: PHP 5.3 screwed it all!

ugkbunb wrote:

If you still need the php 5.2 packes let me know... and if you need any others with it... post the name. I should still have them in my cache.

it wouldn't work with the current packages that we have now in repo. the old packages have to be rebuild against  libldap/postgresql


Give what you have. To someone, it may be better than you dare to think.

Offline

#14 2009-11-19 22:46:24

blitux
Member
From: Mendoza, Argentina
Registered: 2008-10-09
Posts: 21

Re: PHP 5.3 screwed it all!

Pierre wrote:

error_reporting = E_ALL & ~E_DEPRECATED

I've tried that, but it doesn't work. I've seen several comments about this issue...

Rollback to php 5.2.11 using this AUR package

http://aur.archlinux.org/packages.php?ID=30384 [php52]

Last edited by blitux (2009-11-19 22:47:46)


-=[ bLiTux ]=-

Offline

Board footer

Powered by FluxBB