Doc #55027 [Opn->Bgs]: C Extension and symbol lookup error on execution
| From: | aharvey@php.net | Date: | Tue, 14 Jun 2011 13:56:41 +0000 |
| Subject: | Doc #55027 [Opn->Bgs]: C Extension and symbol lookup error on execution | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-6741@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=55027&edit=1
ID: 55027
Updated by: aharvey@php.net
Reported by: peter dot colclough at toolstation dot com
Summary: C Extension and symbol lookup error on execution
-Status: Open
+Status: Bogus
Type: Documentation Problem
Package: Unknown/Other Function
Operating System: Ubuntu 10
PHP Version: 5.3.6
Block user comment: N
Private report: N
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.
There's nothing wrong with the (tiny) snippet you've provided, and this doesn't sound
likely to be a bug in PHP itself, since the same pattern works elsewhere.
Please try one of the support channels above.
Previous Comments:
------------------------------------------------------------------------
[2011-06-10 15:36:45] peter dot colclough at toolstation dot com
Description:
------------
Hi, Am building a C extension, which is a wrapper to a third party product. I have the basics
working, but wanted to use a different call (from PHP) for a number of functions.
So I have a standard PHP C function, and a number of dirreent wrappers depending on what we need....
so:
static void php_main_php_function(INTERNAL_FUNCTION_PARAMETERS, long nType, int expected_args){
.....
call main C function();
Return to PHP
}
PHP_FUNCTION(main_function_wrap_1){
php_main_php_function(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0,1);
}
PHP_FUNCTION(main_function_wrap_2){
php_main_php_function(INTERNAL_FUNCTION_PARAM_PASSTHRU, 2,1);
}
-----------------------------
When I call main_function_wrap_1() (or _2()) I get a:
'php: symbol lookup error: .....undefined symbol: php_main_php_function
I have tried to do thios as per the mysql drivers, and can't see the differemce between my
code, and what they are doing? Anyone any ideas please?
TIA
Test script:
---------------
All C Code.... and lots of it... so best not to confuse here.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=55027&edit=1