You are here: Re: Are PHP libraries linked dynamically or statically? « PHP Programming Language « IT news, forums, messages
Re: Are PHP libraries linked dynamically or statically?

Posted by Henk verhoeven on 07/26/07 07:36

Jerry Stuckle wrote:
> Henk verhoeven wrote:
>> NC wrote:
>>> On Jul 20, 5:30 am, Martin Larsen <martin+spamfree+lar...@bigfoot.com>
>>> wrote:
>> (..)

> Actually, it does. Unless you have implemented a PHP optimizer, every
> PHP file is interpreted every time you load the file.

That may be true, but i was talking about function calls.

> There is no intermediate code.

IMHO either you are mistaken or the developers of php are, even the
primitivce Commodore 64 BASIC interpreter converted commands and
function calls to opcodes so that repeated execution of a subroutine
would not require reparsing of the source code. Loops often run hundreds
of times, I doubt if the current level of performance on OOP code (which
tends to make lots of function calls intersecting many files) would be
possible if all functions that are called from loops where reparsed for
every call.

>> "A consequence is that if you choose to use GPL'd Perl modules or Java
>> classes in your program, you must release the program in a
>> GPL-compatible way, regardless of the license used in the Perl or Java
>> interpreter that the combined Perl or Java program will run on." See
>> http://www.gnu.org/licenses/gpl-faq.html#IfInterpreterIsGPL
>>
>> (The terms "use" and "release" may also not be what you think. Here it
>> becomes really tricky, i rather avoid making comments on that)
>>
>
> Which has absolutely nothing to do with whether something is statically
> or dynamically linked.
>
>
>> BTW, running a program that is using a GPL-ed library on your own
>> public website might have consequences with the new version of GPL
>> (gpl3), see http://www.gnu.org/licenses/gpl-faq.html#UnreleasedMods
>>
>
> Again, nothing to do with the current discussion.
>
Again? Maybe the discussion has been narrowed to the technical meaning
of static versus dynamic linking, but Martin Larsen did mention GPL in
his original post, so i think the juridical meaning of linking *is*
subject of the original discussion and that i can help him by bringing
it back into the current discussion. The FSF FAQ are probably meant to
help non-lawyers to understand the juridical meaning of their GPL
license, they *may* have to do with the juridical meaning of linking.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация