Posted by yangsuli@gmail.com on 11/10/06 17:03
jello,everyone
i want to make my php extensions work.
first i run the ext_skel to create a new module named myext.
ok ,the i have the mycxt dir,
then i modifide the m4 file and ./phpize, make ,make install
it all works fine
but when i test the module by runining "php myext.php"
it returns this:
X-Powered-By: PHP/4.2.2
Content-type: text/html
<br />
<b>Warning</b>: Unable to load dynamic library
'/usr/lib/php4/myext.PHP_SHLIB_SUFFIX' -
/usr/lib/php4/myext.PHP_SHLIB_SUFFIX: cannot open shared object file:
No such file or directory in
<b>/home/backup/php-4.3.4/ext/myext/myext.php</b> on line <b>3</b><br
/>
PHP_SHLIB_SUFFIXFunctions available in the test extension:<br>
<br />
<b>Warning</b>: Invalid argument supplied for foreach() in
<b>/home/backup/php-4.3.4/ext/myext/myext.php</b> on line <b>9</b><br
/>
<br>
Module myext is not compiled into PHP
all the other php code works fine.
any one can tlell me how to solve this ploblem?
any suggestion is appreciated.
thanks & kissssss :)
[Back to original message]
|