Page 1 of 1

Question about PHP

Posted: 13 Feb 2012, 10:19
by arthurmadsen
I have read that the PHP version of Bubba is 5.3...... is it possible to downgrade to php 5.2... my program is not compatible with php 5.3...

And if Yes --- is it difficult??

Regards Arthur Madsen

Re: Question about PHP

Posted: 13 Feb 2012, 14:21
by Gordon

Re: Question about PHP

Posted: 13 Feb 2012, 15:31
by arthurmadsen
Yes it looks dramatic to me.... it is a webshop. and it is the ereg-error

Re: Question about PHP

Posted: 13 Feb 2012, 16:25
by Ubi
there is a fix for that issue described here: http://www.devthought.com/2009/06/09/fi ... in-php-53/

In all honesty, i think you can cook your own version of PHP from source, but I think it is less work to modify the code of your open source webshop proggel. PHP has a lot of dependencies and takes a long time to compile.

Re: Question about PHP

Posted: 14 Feb 2012, 07:14
by Nrde
arthurmadsen wrote:Yes it looks dramatic to me.... it is a webshop. and it is the ereg-error
What is the exact error, But anyways I suggest modifying your script or at least try to modify it. PHP is not getting closer to 5.2 ever, so at some point you will have difficulties with scripts that require 5.3.

Re: Question about PHP

Posted: 14 Feb 2012, 12:30
by Gordon
Strangely I can't remember ever having used the simpler ereg() functions because I found them too confusing (I use other stuff with Perl-style regexes as well). Like the link that Ubi provided states, it's fairly simple to rewrite ereg() functions to preg() functions. In fact that simple that you could catch probably over 95% by generic substitution of the ereg filter. If someone else hasn't already done it, just create your own ereg() functions to implement preg() and insert that in the common library that will no doubt exist in your webapp.