arius25 Posted January 24, 2008 Share Posted January 24, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/87471-solved-php-434-on-apache-2061-extends-problem/ Share on other sites More sharing options...
arius25 Posted January 24, 2008 Author Share Posted January 24, 2008 Sorry, it was a .inc file the application was not seeing. The problem was *very much* related to my application. Thanks to all who read my posting. Marius Quote Link to comment https://forums.phpfreaks.com/topic/87471-solved-php-434-on-apache-2061-extends-problem/#findComment-448367 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.