problem writing an extension
Posted: Thu Jan 14, 2010 9:55 am
Hello,
I try to write an extension to php5 on a Windows XP-system using Visual C++ 2008
I succeeded in compiling the "skeleton" extension as a DLL.
I can load it into php.
I can see its exported functions with "php --re extname"
Extension [ <persistent> extension #52 extname version 0.1 ] {
- Functions {
Function [ <internal:extname> function confirm_extname_compiled ] {
}
}
BUT:
I dont get any output:
php -r "confirm_extname_compiled('A');" outputs only an empty line.
As php -r "confirm_extname_compiled();" gives a warning about the missing parameter to confirm_extname_compiled(), I'm pretty sure, the function gets called.
The .h and .c file ist attached...
What might be wrong??
Thanks in advance for any hints!
Gerhard
I try to write an extension to php5 on a Windows XP-system using Visual C++ 2008
I succeeded in compiling the "skeleton" extension as a DLL.
I can load it into php.
I can see its exported functions with "php --re extname"
Extension [ <persistent> extension #52 extname version 0.1 ] {
- Functions {
Function [ <internal:extname> function confirm_extname_compiled ] {
}
}
BUT:
I dont get any output:
php -r "confirm_extname_compiled('A');" outputs only an empty line.
As php -r "confirm_extname_compiled();" gives a warning about the missing parameter to confirm_extname_compiled(), I'm pretty sure, the function gets called.
The .h and .c file ist attached...
What might be wrong??
Thanks in advance for any hints!
Gerhard