Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: xdebug
Upstream-Contact: Derick Rethans <derick@xdebug.org>
Source: https://xdebug.org/download

Files: *
Copyright: 2002-2026 Derick Rethans
License: Xdebug-1.03
Comment:
 The source files say they are "subject to version 1.01 of the Xdebug
 license, that is bundled with this package in the file LICENSE".  The
 LICENSE file bundled with this release is version 1.03, which is the text
 given below.  Clause 5 allows code published under one version to be used
 under any later version published by Derick Rethans.

Files: */src/lib/compat.c
Copyright: 2002-2026 Derick Rethans <derick@xdebug.org>
           1997-2004 Jim Winstead <jimw@trainedmonkey.com>
           1998-2004 Andi Gutmans <andi@zend.com>
           1998-2004 Zeev Suraski <zeev@zend.com>
License: BSD-3-clause
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions
 are met:
 .
   1. Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
 .
   2. Redistributions in binary form must reproduce the above
      copyright notice, this list of conditions and the following
      disclaimer in the documentation and/or other materials provided
      with the distribution.
 .
   3. The name of the author may not be used to endorse or promote
      products derived from this software without specific prior
      written permission.
 .
 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
 IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Files: */src/lib/strrnchr.h
Copyright: 2017-2018, 2021-2024 Mattias Andrée <m@maandree.se>
License: ISC
 Permission to use, copy, modify, and/or distribute this software for any
 purpose with or without fee is hereby granted, provided that the above
 copyright notice and this permission notice appear in all copies.
 .
 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Comment:
 Taken from libsimple (https://github.com/maandree/libsimple), as the file
 says.  It is included by src/lib/maps/maps_private.c and so compiled into
 the extension.

Files: */src/coverage/branch_info.c
Copyright: 1997-2025 Derick Rethans
License: BSD-2-clause
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:
 .
 1. Redistributions of source code must retain the above copyright notice,
    this list of conditions and the following disclaimer.
 .
 2. Redistributions in binary form must reproduce the above copyright notice,
    this list of conditions and the following disclaimer in the documentation
    and/or other materials provided with the distribution.
 .
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 POSSIBILITY OF SUCH DAMAGE.
Comment:
 The header of the file says it is "subject to the 2-Clause BSD license
 which is available through the LICENSE file, or online at
 http://opensource.org/licenses/bsd-license.php".  The LICENSE file of this
 package is the Xdebug License, so the text above is the one published at
 that address.

Files: */run-xdebug-tests.php
Copyright: The PHP Group
           2002-2023 Sebastian Bergmann
License: PHP-3.01 and BSD-3-clause
 The PHP License, version 3.01, applies to the test runner:
 .
 --------------------------------------------------------------------
                   The PHP License, version 3.01
 Copyright (c) 1999 - 2026 The PHP Group. All rights reserved.
 --------------------------------------------------------------------
 .
 Redistribution and use in source and binary forms, with or without
 modification, is permitted provided that the following conditions
 are met:
 .
   1. Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
 .
   2. Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in
      the documentation and/or other materials provided with the
      distribution.
 .
   3. The name "PHP" must not be used to endorse or promote products
      derived from this software without prior written permission. For
      written permission, please contact group@php.net.
 .
   4. Products derived from this software may not be called "PHP", nor
      may "PHP" appear in their name, without prior written permission
      from group@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"
 .
   5. The PHP Group may publish revised and/or new versions of the
      license from time to time. Each version will be given a
      distinguishing version number.
      Once covered code has been published under a particular version
      of the license, you may always continue to use it under the terms
      of that version. You may also choose to use such covered code
      under the terms of any subsequent version of the license
      published by the PHP Group. No one other than the PHP Group has
      the right to modify the terms applicable to covered code created
      under this License.
 .
   6. Redistributions of any form whatsoever must retain the following
      acknowledgment:
      "This product includes PHP software, freely available from
      <http://www.php.net/software/>".
 .
 THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
 ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
 PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE PHP
 DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 OF THE POSSIBILITY OF SUCH DAMAGE.
 .
 --------------------------------------------------------------------
 .
 This software consists of voluntary contributions made by many
 individuals on behalf of the PHP Group.
 .
 The PHP Group can be contacted via Email at group@php.net.
 .
 For more information on the PHP Group and the PHP project,
 please see <http://www.php.net>.
 .
 PHP includes the Zend Engine, freely available at
 <http://www.zend.com>.
 .
 The BSD 3-Clause License applies to the classes taken from sebastian/diff:
 .
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:
 .
 1. Redistributions of source code must retain the above copyright notice, this
    list of conditions and the following disclaimer.
 .
 2. Redistributions in binary form must reproduce the above copyright notice,
    this list of conditions and the following disclaimer in the documentation
    and/or other materials provided with the distribution.
 .
 3. Neither the name of the copyright holder nor the names of its
    contributors may be used to endorse or promote products derived from
    this software without specific prior written permission.
 .
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Comment:
 The test runner is PHP's run-tests.php adapted for Xdebug.  Its header
 names as authors Ilia Alshanetsky, Preston L. Bannister, Marcus Boerger,
 Derick Rethans, Sander Roobol and Andrea Faulds, based on versions by Stig
 Bakken and Rasmus Lerdorf.  The classes at its end are marked as part of
 sebastian/diff (https://github.com/sebastianbergmann/diff).
 .
 The source ships neither licence text.  The PHP License is the text at
 https://www.php.net/license/3_01.txt, the address the header gives; the
 BSD text is the LICENSE file of sebastian/diff.

Files: */m4/pkg.m4
Copyright: 2004 Scott James Remnant <scott@netsplit.com>
           2012-2015 Dan Nicholson <dbn.lists@gmail.com>
License: GPL-2+ with Autoconf-data exception
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.
 .
 This program is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 General Public License for more details.
 .
 On Debian systems, the complete text of the GNU General Public License
 version 2 can be found in "/usr/share/common-licenses/GPL-2".
 .
 As a special exception to the GNU General Public License, if you
 distribute this file as part of a program that contains a
 configuration script generated by Autoconf, you may include it under
 the same distribution terms that you use for the rest of that
 program.

Files: debian/*
Copyright: 2007 Marcelo Jorge Vieira (metal) <metal@alucinados.com>
           2008-2010 Martin Meredith <mez@debian.org>
           2012-2014 Lior Kaplan <kaplan@debian.org>
           2013-2026 Ondřej Surý <ondrej@debian.org>
License: Xdebug-1.03
Comment:
 The packaging has never stated a licence of its own, so it is taken to be
 under the licence of the work it packages.

License: Xdebug-1.03
 --------------------------------------------------------------------
                  The Xdebug License, version 1.03
              (Based on "The PHP License", version 3.01)
    Copyright (c) 2003-2022 Derick Rethans. All rights reserved.
 --------------------------------------------------------------------
 .
 Redistribution and use in source and binary forms, with or without
 modification, is permitted provided that the following conditions
 are met:
 .
   1. Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
 .
   2. Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in
      the documentation and/or other materials provided with the
      distribution.
 .
   3. The name "Xdebug" must not be used to endorse or promote products
      derived from this software without prior written permission. For
      written permission, please contact derick@xdebug.org.
 .
   4. Products derived from this software may not be called "Xdebug", nor
      may "Xdebug" appear in their name, without prior written permission
      from derick@xdebug.org.
 .
   5. Derick Rethans may publish revised and/or new versions of the
      license from time to time. Each version will be given a
      distinguishing version number.  Once covered code has been
      published under a particular version of the license, you may
      always continue to use it under the terms of that version. You
      may also choose to use such covered code under the terms of any
      subsequent version of the license published by Derick Rethans. No
      one other than Derick Rethans has the right to modify the terms
      applicable to covered code created under this License.
 .
   6. Redistributions of any form whatsoever must retain the following
      acknowledgment: "This product includes Xdebug software, freely
      available from <https://xdebug.org/>".
 .
 THIS SOFTWARE IS PROVIDED BY DERICK RETHANS ``AS IS'' AND ANY
 EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE PHP DEVELOPMENT TEAM OR
 ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .
 --------------------------------------------------------------------
 .
 This software consists of voluntary contributions made by some
 individuals on behalf of Derick Rethans.
 .
 Derick Rethans can be contacted via e-mail at derick@xdebug.org.
 .
 For more information on Xdebug, please see <https://xdebug.org>.
