Jump to content

[SOLVED] php 4.3.4 on apache 2.0.61 extends problem


Recommended Posts

Hello,

 

I have to support an application written using php4 syntax and object model. It runs on php 4.2.2 and it was not compiled with xslt (expat/Sablot) extensions. I need these modules so I compiled them and then php4.3.4 on an apache2.0.61 web server (php4.2.2 on apache2.x refused to compile).

 

I verified that httpd.conf loads the php4 module and added the proper paths to the classes in the include_path parameter in php.ini (this file is also in the proper location). I verified all these by calling phpinfo.php from a browser.

 

The problem is this: one of the database classes cannot find the class it extends. The parent class is called /myapp1/code/MatrixSQL.php and its parent is /myapp2/matrix/MatrixDB.inc (myapp1,2 are not the real paths). Both /myapp1/code and /myapp2 are in the "include_path" and the class definition is:

  class MatrixSQL extends matrix_MatrixDB

 

There are no errors at apache's startup but whenever I go to the application in a browser I get:

Fatal error: Class matrixsql: Cannot inherit from undefined class matrix_matrixdb in /myapp1/code/MatrixSQL.php on line 12

 

In another class I get:

Fatal error: Call to a member function on a non-object in /myapp1/code/matrixsql.php on line 52

(this is, I believe, because of a null instance)

 

Can anyone shed some light into this problem? Initially I thought it was easy, that it was a "classpath" problem but no matter how I changed the include_path variable (I added all sort of combinations) it kept getting me those errors back. Any hint will be hugely appreciated.

 

Thanks,

Marius

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.