PHP Extension : How to use EG macro in windows

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
king011a
Forum Newbie
Posts: 1
Joined: Mon Aug 09, 2010 3:46 am

PHP Extension : How to use EG macro in windows

Post by king011a »

My extension used ZEND_API call_user_function_ex like this:

Code: Select all

if(call_user_function_ex(CG(function_table), NULL, function_name, &retval, 1, params, 0, NULL TSRMLS_CC) == FAILURE)
	{
		zend_error(E_ERROR, "Function call failed");
		RETURN_FALSE;
	}
The extension compiled with g++ works well in Linux.
When I build it with visual studio 2008, the compiler show me error msg like this:
error LNK2001: unresolved extenal symbol _executor_globals_id
I Saw the zend macro EG used executor_globals_id and the dynamic library php5ts.dll export the symbol executor_globals_id with the tool Dependency Walker.
but i can`t find the symbol _executor_globals_id.
What should i do?
Post Reply