Re: Extending PHP
| From: | Jouni Ahto | Date: | Sun, 09 Jul 2000 16:52:40 +0000 |
| Subject: | Re: Extending PHP | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-23934@lists.php.net to get a copy of this message | ||
On Sun, 9 Jul 2000, Gustavo Badauy wrote:
> Hi,
>
> I'm trying to extend PHP, so to have som functions I wrote in C. I've
> successfully created it and linked it to PHP4.
>
> When I run phpinfo(), it shows that my extension is loaded and when I change
> the PHP_MINFO_FUNCTION(myExtension), it changes ok. When I try to run
> confirm_myExtension_compiled, I get an error saying it is not loaded even
> though there is an entry on the function_entry array.
Seems either you or I have somehow screwed up that test php script that
ext_skel creates. If it shows with phpinfo(), it's there. Believe me and
create a small test script:
<?
$string = confirm_myExtension_compiled('a_non_existent_module');
echo "$string\n";
?>
and enjoy the results.
> When I test for the presence of myExtension using if
> (extension_loaded('myExtension')) it works fine.
-- Jouni Ahto