|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46209 Problematic licence in rand.c (with solution)
Submitted: 2008-10-01 10:35 UTC Modified: 2008-10-01 11:04 UTC
From: thijs at debian dot org Assigned:
Status: Closed Package: *Math Functions
PHP Version: 5.2.6 OS: Any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: thijs at debian dot org
New email:
PHP Version: OS:


 [2008-10-01 10:35 UTC] thijs at debian dot org

The file ext/standard/rand.c in any recent version contains the following remark about the licencing of the Mersenne Twister code:

"       The original code included the following notice:

        When you use this, send an email to:
    with an appropriate reference to your work.

        It would be nice to CC: and
        when you write.

This requirement is problematic because everyone using the PHP code in some way has to send an email to him. This is for example a problem for Debian where Debian itself and any derivative distribution would need to send such a mail, plus every user who takes the source code and does something with it.

At Debian we contacted the copyright holder and he swiftly replied that the condition can be completely removed:;bug=498621

So, could you please remove this condition from the code?

Thijs Kinkhorst
Debian Developer


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-01 11:04 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

All sorted now in 5.2, 5.3 and trunk
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 14 18:01:30 2024 UTC