From: Steve W. <sw...@pa...> - 2001-01-12 16:51:49
|
Hello again Martin, This is the second perplexing problem we've had this week with DBM based installs and PHP 4.0.4. I'm going to build 4.0.4 myself tonight to see if there isn't a bug in PHP itself. The ChangeLog for 4.0.4 shows at least two changes relating to DBM support. ~swain On Fri, 12 Jan 2001, Martin Verboon wrote: > It's version 1.1.9 I'm running, and I ./configure-d it with: > ./configure -with-config-file-path=/ect/httpd -enable-sockets -with-mysql -w > ith-apxs -with-dbm -with-ndbm -with-gdbm > I also set the PHP4 to handle .php .php3 AND .php4 file extensions (in > httpd.conf), so that's not it too. The rest of the php including mysql is > working, but I don't want to convert my current dbm database of PHPWiki to a > mysql database for it. > > In the info of PHP I get: > dba > DBA support enabled > Supported handlers gdbm dbm ndbm > so I know the support is on... that's why I asked you for help, because I > know that the error was in dbmopen, but dmb support was on... > > Without the @ I get the message: > Fatal error: Call to undefined function: dbmopen() in > /usr/local/httpd/htdocs/lib/dbmlib.php on line 35 > > It is on a private server on an intern network, so you can't visit it... > > Thanx again, > Martin > > > ----- Original Message ----- > From: Steve Wainstead <sw...@pa...> > To: Martin Verboon <ma...@lo...> > Sent: Friday, January 12, 2001 4:28 PM > Subject: Re: Question about PHPWiki and PHP4 > > > > > > I sure can help you :-) > > > > First, if you are running an old version of PhpWiki, and I mean really old > > (older than 1.1.4, I think) there was a function that used the "static" > > keyword which was taken out of PHP4. > > > > If that's not the problem, you might edit dbmlib.php (or wiki_dbmlib.php3, > > depending on your version) and remove the '@' from dbmopen() inside > > OpenDataBase(). The '@' supressess error messages. That should tell you > > what's wrong. > > > > If the problem does lie there, you may need to compile --with-gdbm or > > --with-dbm; try ./configure --help for the options. > > > > If you can, give me the URL to view the wiki (if public) or send me the > > error output after you remove the '@'. This will help me figure out your > > problem. > > > > cheers > > ~swain > > > > On Fri, 12 Jan 2001, Martin Verboon wrote: > > > > > Hi, > > > > > > I've got troubles with running PHPWiki with PHP4.0.4. Standard > > > PHP3.0.16 was installed with Apache 1.3.12 on a Suse 7.0 OS, and > > > PHPWiki worked all ok (I also addes lots of data to it, so I don't > > > want it to be lost). Now I installed PHP4.0.4 because I need to work > > > with socket-support (for my job here), but PHPWiki won't work with it > > > anymore... is there something that I forgot to ./configure that > > > PHPWiki needs in PHP? I found out, it probably is in the dbmopen() > > > function, so I tried to ./configure with dbm support, but it doesn't > > > help me any further... I hope you can help me? > > > > > > Thanx, > > > Martin Verboon > > > LoyaltyWorld > > > > > > > http://wcsb.org/~swain/ | "In a calendar year, America's entire > > * * * * * * | recorded music industry has revenues > > * * * * * * | roughly equal to one month's sales by > > * * * * * * | IBM." --Philip Greenspun > > > > http://wcsb.org/~swain/ | "In a calendar year, America's entire * * * * * * | recorded music industry has revenues * * * * * * | roughly equal to one month's sales by * * * * * * | IBM." --Philip Greenspun |