Page 1 of 1

php 5.1.6 to 5.2.x -- interesting experience

Posted: Fri Jul 23, 2010 9:07 am
by faris
We run the Centos Plus 5.1.6 version of PHP on most of our Centos 4 (64-bit), Plesk 8.6 servers, along with the mysql 5.0.82

I'd like to upgrade to the ART 5.2.13 version of PHP along with mysql 5.1.48

I've just done a test upgrade on a test system and come accross a peculiar issue.

Before I go into my issue, can I ask those of you who have done this upgrade if you've run into any incompatibility problems with common php scripts or just general incompatibility issues?

My issue is seriously odd.

I had a script that did a require as follows:

require(../../blah.php)

The problem was that blah.php was actually located at ../blah.php not ../../blah.php

Under 5.1.6 it didn't seem to care and it worked. Under 5.2.13 it didn't work (not surprising).

I can't work out why it works under 5.1.6. Any ideas?

Thanks,

Faris.