View Full Version : PHP 4
Herb
Tue 18th Apr '00, 11:14pm
Hey gang.. Well I been trying all morning to run the control panel..
I am getting the error message:
Fatal error: Cannot redeclare class db_sql in db_mysql.php on line 6
I am running PHP4RC2 with the Zend Optimizer B2 on WINNT 4 SRVPK 6 IIS 4..
Any ideas..? have you tried php4 at all? I understand this may not be supported yet but thought I would try.. If I can be of any assistance in trying to make it work under php4 I would be glad to help..
Herb
John
Tue 18th Apr '00, 11:23pm
I did test it on PHP 4 Beta 2 under Windows, and there was no problem then. Do you think that you could explain a bit more what you were doing when the error occured. Also, could you provide some information about your PHP/MySQL setup and configuration. Email them to me if you are not happy posting them here.
Cheers,
John
Herb
Tue 18th Apr '00, 11:42pm
Thanks for the quick reply.. It was after entering the admin info to enter the control panel for the first time.. Now all of a sudden (after a reboot) I get the the left and top frame no problem but the main frame I get "PHP Access violation at" and it gives a random number..
I am actually running NT Workstation with PWS.. PHP is setup as an isapi not cgi and mysql is using the defaults.. I can email you my php.ini file if you would like.. It was left to the defaults pretty much.
I have simliar problems with PHPMYAdmin as it was written for php 3.. I chucked it up to the app but I am thinking now I have something goofy.. All my own written scripts work fine..
My live server is configured the same except it is NT Server and true IIS.. It it doing the same thing so I pulled it down.. Maybe I should try it as a cgi and not ISAPI?
When you tested was it setup cgi or isapi? also did you install the Zend Optimizer.. I am gonna try cgi first, if that dont work then remove Zends optimizer and see what happens..
Herb
Herb
Wed 19th Apr '00, 12:23am
Alrighty.. Seems running PHP 4 as a cgi works.. All of my problems(including other apps) went away once I set it up to NOT use isapi but as cgi..
This is one mighty cool app!!!!
My configuration for the record..
NT Workstation 4.0 SRVPK 6
PWS 4.0
PHP 4.0 Release Canidate 2 (3-27-2000)
Zend Optimizer Beta 2
PHP configured as a cgi NOT ISAPI..
Herb
John
Wed 19th Apr '00, 2:54am
I'm glad you managed to get it going in the end. Perhaps this is something that should be reported to the PHP development team if the problem is reproduceable.
Thanks,
John
Michael
Wed 19th Apr '00, 11:33am
Works on PHP4 running as a module with Zend Optimiser installed on Apache 1.3.12 on a FreeBSD System :P
Just so you know if you are running it on a system like that it should still work.
kibbles
Thu 4th May '00, 1:50am
Running Redhat 6.1 with PHP4 RC1. When I go through the install script I'm getting:
Fatal error: Cannot redeclare class db_sql in db_mysql.php on line 6
*sigh*
-Greg
kibbles
Thu 4th May '00, 1:56am
After going back I solved the problem. One of the more widely-used PHP packages is a session management package. It's added to my auto_prepend_file parameter in my php configuration.
It also declares that class which is why the error pops up. I removed it from my prepend and install worked fine.
-G
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.