#37271 [Opn->Bgs]: Dynamic loading of modules
| From: | tony2001@php.net | Date: | Wed, 24 May 2006 22:02:43 +0000 |
| Subject: | #37271 [Opn->Bgs]: Dynamic loading of modules | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-97560@lists.php.net to get a copy of this message | ||
ID: 37271
Updated by: tony2001@php.net
Reported By: bhoehl at linotype dot com
-Status: Open
+Status: Bogus
Bug Type: SOAP related
Operating System: Redhat ES4
PHP Version: 5.1.3
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2006-05-02 07:14:48] bhoehl at linotype dot com
Description:
------------
I am writing a soap server which shall use dynamically loaded modules (
like dl('.../mymodule.so' ).
Loading this module works so far and produces no error.
Accessing the function supplied by this module causes
an error telling that this function is not available in the
SOAP module.
It looks like PHP or SOAP causes the function mapper to look only in
the SOAP module for the new function.
I can "work around" this bug by putting my modules.so in php.ini. So my
the supplied function is found inside the
soap callback.
Reproduce code:
---------------
<?php
// base64Binary
function getCustomizedFont($symbol) {
return confirm_customize_font_compiled('xxxxxxx') ;
}
if(!extension_loaded('customize_font')) {
dl('../../../../root/php-5.1.2/ext/customize_font/.libs/customize_font.'
. PHP_SHLIB_SUFFIX);
}
ini_set("soap.wsdl_cache_enabled", "0"); // disabling WSDL cache
$server = new SoapServer("customizeFont.wsdl");
$server->addFunction("getCustomizedFont");
$server->handle();
?>
Expected result:
----------------
Congratulations! You have successfully modified
ext/customize_font/config.m4. Module customize_font is now compiled
into PHP.
Actual result:
--------------
PHP Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Server] Call
to undefined function confirm_customize_font_compiled() in
/root/php-5.1.2/ext/customize_font/client.php:4
Stack trace:
#0 [internal function]: SoapClient->__call('getCustomizedFo...',
Array)
#1 /root/php-5.1.2/ext/customize_font/client.php(4):
SoapClient->getCustomizedFont('ibm')
#2 {main}
thrown in /root/php-5.1.2/ext/customize_font/client.php on line 4
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37271&edit=1