|  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
 [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-2023 The PHP Group
All rights reserved.
Last updated: Wed Mar 29 20:03:46 2023 UTC