Re: extensions

From: Date: Sun, 18 Jun 2000 08:16:12 +0000
Subject: Re: extensions
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-21671@lists.php.net to get a copy of this message
On Sat, 17 Jun 2000, er g wrote: > I'm trying to create my own extension to php and > haven't had much luck even with the new ext_skel > script. I'm using > > R.H. linux 6.1 > php-4.0.0 > ./configure --with-apache=../apache_1.3.12 > --enable-bcmath > > > I can't even seem to be able to access the bcmath > functions in a php script such as bcadd(). I get a > Fatal Error: undefined function ... bcadd(). > > It's my understanding that I've compiled this module > into php statically so I don't need any dynamic > loading. Am I wrong? Have I configured php > incorrectly? > Is there something special I need to do to load the > extension? nm and strings show that it's in the > libphp4.a and httpd files. I assume you did read README.BCMATH and have installed bcmath sources? If you did, here's nothing special you have to do, it's compiled into php. Regarding your own module and ext_skel, I found one off-the-list message from my mailbox that went unanswered, sorry. What you describe there makes me think that you are not starting that apache binary you compiled yourself but some other instead. That's the only explanation that fits the symptoms. -- Jouni

« previous php.dev (#21671) next »