Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Quercus is an implementation of PHP written in Java, and released under the GPL.

If I use it, does my PHP code fall under the GPL?

What about my Java code?

Assuming I write new Java code, and new PHP code, and use Quercus to run my PHP code on the JVM and call into my Java code, which pieces fall under the GPL?

Also, assume that the result is commercial software that I want to distribute.

share|improve this question
add comment

3 Answers

Let me (IANAL) try to understand what you are saying:

  • You link a GPL module into your program
  • You wonder if that makes your program GPL

If so, the answer is "yes". I may not understand what you mean by "use Quercus to run my PHP code on the JVM and call into my Java code", but it certainly sounds like it's bundled into your code. If you only need to have something that is a "PHP interpreter in Java" and can provide another one, you could probably have documentation stating "You can, if you want, use Quercus".

I think the real answer here is to consult a lawyer, specializing in electronic copyright.

share|improve this answer
add comment

I decide on the following:

If my code runs only with the GPL licensed library my code has also to be GPL.

If my code can run without the library (in your example the PHP code) it does not need to be GPL.

Disclaimer: IANAL.

share|improve this answer
add comment

Generally, if you start to distribute Quercus with your code, then your code will also fall under the GPL. For alternative licensing terms, you should contact their representatives.

share|improve this answer
1  
Are you sure? imho his PHP code is not derived work. –  jgauffin Dec 21 '12 at 6:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.