diff options
author | Anantha Kesari H Y <hyanantha@php.net> | 2005-05-04 13:48:01 +0000 |
---|---|---|
committer | Anantha Kesari H Y <hyanantha@php.net> | 2005-05-04 13:48:01 +0000 |
commit | 3ccba5514ffd7fd6405e065663af6635de61ff72 (patch) | |
tree | 1a64a827fe532c3a3b6f8e9a23c0b90823dcacc8 | |
parent | 8f95eb97e28d93ad7b67c5cbb5e48a7265770445 (diff) | |
download | php-git-3ccba5514ffd7fd6405e065663af6635de61ff72.tar.gz |
NetWare LibC dlsym works perfectly only thing that each of the extension need to export a symbol with FULL capital prefix.
-rw-r--r-- | ext/standard/dl.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/ext/standard/dl.c b/ext/standard/dl.c index 6cca7f0a62..cdd20fb5b3 100644 --- a/ext/standard/dl.c +++ b/ext/standard/dl.c @@ -142,7 +142,6 @@ void php_dl(pval *file, int type, pval *return_value TSRMLS_DC) efree(libpath); -#ifndef NETWARE get_module = (zend_module_entry *(*)(void)) DL_FETCH_SYMBOL(handle, "get_module"); /* @@ -153,23 +152,6 @@ void php_dl(pval *file, int type, pval *return_value TSRMLS_DC) if (!get_module) get_module = (zend_module_entry *(*)(void)) DL_FETCH_SYMBOL(handle, "_get_module"); -#else - /* NetWare doesn't support two NLMs exporting same symbol */ - { - char symbol_name[64] = "\0"; - int module_name_length = Z_STRLEN_P(file) - 4; /* '.nlm' is 4 characters; knock it off */ - - /* Take the module name (e.g.: 'php_ldap') and append '@get_module' to it */ - strncpy(symbol_name, Z_STRVAL_P(file), module_name_length); - symbol_name[module_name_length] = '\0'; - strcat(symbol_name, "@"); - strcat(symbol_name, "get_module"); - - get_module = (zend_module_entry *(*)(void)) DL_FETCH_SYMBOL(handle, symbol_name); - } - /* NetWare doesn't prepend '_' to symbol names; so the corresponding portion of code is also - not required for NetWare */ -#endif if (!get_module) { DL_UNLOAD(handle); |