473,732 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

question about php license and pear

The PHP license states the following:

4. Products derived from this software may not be called "PHP", nor
may "PHP" appear in their name, without prior written permission
from gr***@php.net. You may indicate that your software works in
conjunction with PHP by saying "Foo for PHP" instead of calling
it "PHP Foo" or "phpfoo"

As the author of something released under the PHP license, can I, as I
see fit, just grant permission to an application using PHP in its name?
Alternatively, could I maybe have two different versions of the
package in question - one licensed under the PHP license and one
licensed under the GPL license?

Also, say I were wanting to make a certain package a part of PEAR and I
wanted it to be released under the GPL license and not the PHP license.
How would I need to update the header comment block to reflect this?
The sample header block given reads like this:

* LICENSE: This source file is subject to version 3.0 of the PHP
license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_0.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to li*****@php.net so we can mail you a copy immediately.

Further, one of the required lines in the PEAR header is as follows:

* @author Original Author <au****@example .com>

Do email addresses have to be included?

Also, say I have a PEAR account. How do I start submitting new
packages?

Regarding the naming conventions of functions... the PEAR manual says
that they ought to use the "studly caps" convention. What about for
something like base256_lshift or bytes2int, though? For those function
names, using the "studly caps" convention seems like it'd almost hinder
readability...

Regarding constants... the sample file suggests that comments ought to
be done like this:

// {{{ constants

/**
* Methods return this if they succeed
*/
define('NET_SAM PLE_OK', 1);

What if, however, there are multiple constants? Does each one need to
be preceeded by a comment or can they sorta be grouped together?
Further, what if the constants are chiefly intended to be used by
"private" functions (as indicated by their being preceeded with a _)?
Are comments still needed? Or should "private" functions not even use
constants? Personally, I think they ought to as using constants can
help one follow through the code. What's the PEAR Groups stance on
this?

Jun 8 '06 #1
2 1834
yawnmoth wrote:
The PHP license states the following:

4. Products derived from this software may not be called "PHP", nor
may "PHP" appear in their name, without prior written permission
from gr***@php.net. You may indicate that your software works in
conjunction with PHP by saying "Foo for PHP" instead of calling
it "PHP Foo" or "phpfoo"

As the author of something released under the PHP license, can I, as I
see fit, just grant permission to an application using PHP in its name?
Alternatively, could I maybe have two different versions of the
package in question - one licensed under the PHP license and one
licensed under the GPL license?

Also, say I were wanting to make a certain package a part of PEAR and I
wanted it to be released under the GPL license and not the PHP license.
How would I need to update the header comment block to reflect this?
The sample header block given reads like this:

* LICENSE: This source file is subject to version 3.0 of the PHP
license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_0.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to li*****@php.net so we can mail you a copy immediately.

Further, one of the required lines in the PEAR header is as follows:

* @author Original Author <au****@example .com>

Do email addresses have to be included?

Also, say I have a PEAR account. How do I start submitting new
packages?

Regarding the naming conventions of functions... the PEAR manual says
that they ought to use the "studly caps" convention. What about for
something like base256_lshift or bytes2int, though? For those function
names, using the "studly caps" convention seems like it'd almost hinder
readability...

Regarding constants... the sample file suggests that comments ought to
be done like this:

// {{{ constants

/**
* Methods return this if they succeed
*/
define('NET_SAM PLE_OK', 1);

What if, however, there are multiple constants? Does each one need to
be preceeded by a comment or can they sorta be grouped together?
Further, what if the constants are chiefly intended to be used by
"private" functions (as indicated by their being preceeded with a _)?
Are comments still needed? Or should "private" functions not even use
constants? Personally, I think they ought to as using constants can
help one follow through the code. What's the PEAR Groups stance on
this?


Maybe you need to ask your license questions of the people who license PHP -
that is, the folks at php.net. No one here will be able to give you a more
authoritative answer.

And maybe ask your pear questions would get better answers from pear.php.net, I
would think.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Jun 8 '06 #2
yawnmoth wrote:
As the author of something released under the PHP license, can I, as I
see fit, just grant permission to an application using PHP in its name?
Alternatively, could I maybe have two different versions of the
package in question - one licensed under the PHP license and one
licensed under the GPL license?
As the holder of the copyright, I don't see why not.
Also, say I were wanting to make a certain package a part of PEAR and I
wanted it to be released under the GPL license and not the PHP license.
How would I need to update the header comment block to reflect this?
The sample header block given reads like this:


If you want it to be a part of PEAR, then it can't be licensed under
the GPL, nor can it make use of code under GPL. The LGPL is acceptable
I believe.

Jun 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2284
by: Robbie | last post by:
Hi to everyone, I'm relatively new to php and to PEAR in particular. I'm using PEAR, especially the HTML_Table package. It's almost clear how the things work, but I've a question for which I'll appreciate your opinions. I fetch some record from a MySQL db and print them out on a table with addRow() method: no problem until here.
3
7244
by: junkmail | last post by:
on a win 2k server apparantly it is saying i dont have it. or it cant find it. im using mySQL 4.1 php 4.3.x apache 3.0.53 im new to php and am doing some tutorials, but when i run the sripts it tells mea it can not run pear/soap, because it can not be found.the book im learning form does not tell me how to install or configure this extension. so now im looking for help.
1
2047
by: DJ Majestik | last post by:
OK, I am new to the whole PEAR/Smarty templating thing. I am trying to setup my directory structure correctly. If someone could weigh in and see if I have this setup "right", I would appreciate it. Directory structure: pear/ db/ db/ DB/ doc/
8
2882
by: madcap | last post by:
Hi, Our company was looking for contract programmer to develop an internet/intranet application. We were approached by a freelancer who have quite a lot experience and his resume was impressive. But he did mention that if we download php & mysql and use the application developed within our company, we should be fine and there will not be any legal issues. While some of the folks see this as a low cost solution, others are concerned...
3
2208
by: David | last post by:
I installed the Pear program and set the include path in php.ini to point to the pear dir. I have a program which <? require_once("DB.php"); ?> This produces the error "Class 'PEAR_Error' not found in c:\PHP\pear\PEAR\DB.php on line 868"
4
2124
by: Martitza | last post by:
Hi. I work for a small company (actually in process of forming) interested in embedding or extending python as part of our commercial non-open-source product. We have legal counsel, but are interested in the spirit as well as the letter of the law. Not much seems to have been written about the python license since version 2, so pointers to more recent discussions or contacts are appreciated. If this is not the right place to ask these...
1
13667
by: IchBin | last post by:
I remember having problems with pear when I first installed it but got it running some time ago. This is on a windoze XP SP OS. I did not think it was correct because it pointed to "C\php\pear\PEAR". I writing a pear front-end GUI and I want to have it installed correctly. It seemed to have some duplication of directories between the lower and upper cased pear dir names. Should there be a "php\pear\PEAR" subdirectory? I thought it should...
25
2256
by: Why Tea | last post by:
Thanks to those who have answered my original question. I thought I understood the answer and set out to write some code to prove my understanding. The code was written without any error checking. --- #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct {
5
1691
by: jmark | last post by:
I saw this example in php.net // Outputs: apearpearle pear $letters = array('a', 'p'); $fruit = array('apple', 'pear'); $text = 'a p'; $output = str_replace($letters, $fruit, $text); echo $output; and I am bit puzzled why the output is the way it is instead of
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8774
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9307
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9235
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.