|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-06-14 15:56 UTC] aharvey@php.net
-Status: Open
+Status: Bogus
[2011-06-14 15:56 UTC] aharvey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 12 15:00:02 2025 UTC |
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.