Could I get away with php 5.3.3 ?

Having trouble installing serendipity?
Post Reply
pragmatist
Posts: 3
Joined: Tue Jan 24, 2017 1:24 pm

Could I get away with php 5.3.3 ?

Post by pragmatist »

Newbie here so if this has been answered elsewhere then please do point me to another thread.

See from the Requirements that Serendipity needs a min php version of 5.4. Unfortunately I have 5.3.3 on the live server on which I would like to use Serendipity. Don't really want to rock the boat with a version change, even assuming it's possible as it is Centos 6.

Could I get away with php 5.3.3 either with Serendipity 2.0.5 or by installing a slightly earlier version of Serendipity ?

(Planning to use it with Postgres 8.4.2 so if there would be any problems with that I would also love to know.)

TIA
P
onli
Regular
Posts: 2825
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Could I get away with php 5.3.3 ?

Post by onli »

I'm not sure. I personally gave zero attention to not breaking compatibility with versions that old. I know that Garvin added some compatibility patches, and the Changelog only stated when 5.3 became a hard requirement with 2.0. When moving the documentation to Github we upped the requirement to 5.4, and I think that was because of a specific thing, but I do not find it anymore. It is possible that PHP 5.3.3 could just work.

I don't see a specific problem with Postgres, but sadly the Postgres backend is a lot less tested than the MySQL and Sqlite backend.

Installing serendipity is very easy. Best thing will be to just test it out.
pragmatist
Posts: 3
Joined: Tue Jan 24, 2017 1:24 pm

Re: Could I get away with php 5.3.3 ?

Post by pragmatist »

Thanks Onli. I've used Serendipity before and liked it - hence the wish to use it again for this web site which is work not leisure - though (proudly) Open Source software too - IoT for boat owners http://www.skippersmate.co.uk.

We use Postgres for everything and have done for years so I am relatively comfortable with that. I will test it out on the live server (no use trying to reproduce it on my machine as it is Jessie and the php version is 5.6.27).

I will post here when I've tried it so that someone else may benefit from my success or failure.

Great bit of software.

Penny
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Could I get away with php 5.3.3 ?

Post by garvinhicking »

Hey,

I actually do think you will face issues with PHP 5.4. There are some library things and function declarations that might raise errors. It depends a bit though on the functionality you plan to use.

I would really suggest to try to update PHP, since even PHP 5.6 is outdated now :-D
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
pragmatist
Posts: 3
Joined: Tue Jan 24, 2017 1:24 pm

Re: Could I get away with php 5.3.3 ?

Post by pragmatist »

Hi Garvin

Many thanks for the reply. Fully agree with you re up to date but if you're working with an LTS server then you can be stuck with what you've got.

Serendipity seems to be working fine so far - I only want to use basic functionality to produce articles better suited to this format than the phpBB3 forum so with luck I'll get away with it. I won't whinge tho if it doesn't as I recognise it's my decision :) Will check the logs when I get a moment to see if anything's being reported.

Love your Flickr stuff - sure you can't be taking all that in Cologne ?!!

Penny
lazza
Regular
Posts: 15
Joined: Wed Feb 08, 2017 10:20 am

Re: Could I get away with php 5.3.3 ?

Post by lazza »

Hey guys, going a bit off topic here, but I also checked out Garvin's Fickr - great stuff! Makes me want to travel :wink:
onli
Regular
Posts: 2825
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Could I get away with php 5.3.3 ?

Post by onli »

That reminds me: There is an incompatiblity with PHP 5.3 in the rss.php, as that uses the shorthand syntax to create an array ([elem1, elem2, ...]) in line 25. See viewtopic.php?p=10446693#p10446693. You'd have to patch that to use array() instead.
Post Reply