Re: PHP 4.0 Bug #5882 Updated: Use inline directive in *.c files for global functions in Zend engine

From: Date: Tue, 15 Aug 2000 21:47:47 +0000
Subject: Re: PHP 4.0 Bug #5882 Updated: Use inline directive in *.c files for global functions in Zend engine
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-29049@lists.php.net to get a copy of this message
> Looks like problem in the compiler, because these functions aren't declared static. I am sorry, this is my mistake, this function declared as inline, and (in ANSI compilers) cann't use as external function, becouse in time of compilation, this inline function insert in other functions that use it as source code not as call function with out defenition as function (inline). In result library, I checked this function by #nm foo.lib|grep "foo_inline_function", this function not exist (it inlined in other functions, which use it) >I'll try to look into the standard and see what compiler is supposed to do with inlines. >Also, gcc has option "-fkeep-inline-functions" - does yours have one? I start to find information how this option work. > > Finally, most useful slution for you might be to add -Dinline= to you CFLAGS. That will hurt > performance a bit, but otherwise should work. No, becouse, in this situation you defined function in headers with implemantation, and in many object files at same time will exist same function with equal name - this is error for linker - it cann't choose function which will exists in library. > > Full Bug description available at: http://bugs.php.net/?id=5882

« previous php.dev (#29049) next »