2

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.

3 Answers 3

1

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.

1
  • 1
    Are you sure? imho his PHP code is not derived work.
    – jgauffin
    Dec 21, 2012 at 6:45
1

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.

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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