php 5.1.6 to 5.2.x -- interesting experience

Support/Development for PHP
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

php 5.1.6 to 5.2.x -- interesting experience

Unread post 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.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
Post Reply