You are not logged in.

#1 2006-07-20 12:46:13

vinyl
Member
Registered: 2004-07-06
Posts: 33

[Apache] PHP 4 support

When I start Apache I get the following error:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/php/odbc.so' - libodbc.so.1: cannot open shared object file: No such file or directory in Unknown on line 0

My version is PHP 5.1.1 (cli) (built: Dec  5 2005 11:15:23)

I never seen this error in the log before, it also show up now when I type php -v at the prompt.

since the odbc extension is commented out in php.ini but is in the php extensions folder I dont get it.

What is causing the error? Anyone that knows what to do?

Also I thought PHP 5 also supported php 4 but libphp4.so is nowhere to be found... :S

For an application we are going to run the specs said php 4 was needed.. is php 5 instead a big issue?

// edit

The odbc issue is solved.. some dummy (proly me) has put it twice in the file.. now its properly commented out smile

The only question left is the one about PHP 4 and PHP 5.. if something is written for PHP 4, will this run without troubles on PHP 5?

Offline

#2 2006-07-20 13:15:25

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: [Apache] PHP 4 support

vinyl wrote:

The only question left is the one about PHP 4 and PHP 5.. if something is written for PHP 4, will this run without troubles on PHP 5?

It depends on code...
See this: http://www.php.net/manual/en/migration5.php


to live is to die

Offline

#3 2006-07-22 06:25:00

vinyl
Member
Registered: 2004-07-06
Posts: 33

Re: [Apache] PHP 4 support

But is it still possible to add the support? libphp4.so?

Offline

#4 2006-07-22 16:06:47

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: [Apache] PHP 4 support

vinyl wrote:

But is it still possible to add the support? libphp4.so?

This will make things harder.
If you want to run PHP4 code that breaks in PHP5 you should set zend.ze1_compatibility_mode to 1 and PHP will run in compatability mode.
Keep in mind that IIRC this functionality will be removed in PHP 5.2.


to live is to die

Offline

#5 2006-07-23 10:10:31

vinyl
Member
Registered: 2004-07-06
Posts: 33

Re: [Apache] PHP 4 support

So then it's over and out with PHP4, then it might be smart to just adjust the code tot PHP5 *may* problems occur...

Offline

#6 2006-07-23 10:19:36

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: [Apache] PHP 4 support

I've just looked at cvs.php.net and it seems that PHP4 compatability will not be removed in 5.2. Hmmm... but anyway IMHO it is better to review all code to be PHP 5.1 compatible.


to live is to die

Offline

#7 2006-07-25 06:54:32

vinyl
Member
Registered: 2004-07-06
Posts: 33

Re: [Apache] PHP 4 support

But why is it not in the package for php? Not compiled, or no need to run the libphp4.so anymore since libphp5.so supports it?

Offline

#8 2006-07-25 07:37:29

kth5
Member
Registered: 2004-04-29
Posts: 657
Website

Re: [Apache] PHP 4 support

vinyl wrote:

But why is it not in the package for php? Not compiled, or no need to run the libphp4.so anymore since libphp5.so supports it?

because it is version 5.x.x and not 4.x.x. what's the point putting an old binary in the package? libphp5.so is what libphp4.so used to be.


I recognize that while theory and practice are, in theory, the same, they are, in practice, different. -Mark Mitchell

Offline

Board footer

Powered by FluxBB