DFSG NEW Queue

DFSG, Licensing & New Packages Team

php-ssh2 1.6.1-2

Package Information

DescriptionBindings for the libssh2 library

Provides PHP bindings to the functions of libssh2 which implements the SSH2 protocol.

WARNING: The PHP 7.0 is an unreleased git snapshot of current ssh2 that implements support for PHP 7.0. USE WITH CAUTION!

This is empty package that depends on default PHP version.

MaintainerDebian PHP PECL Maintainers <team+php-pecl@tracker.debian.org>
Changed ByOndřej Surý <ondrej@debian.org>
Sponsorondrej@debian.org
Distributionexperimental
Architectureany all
VCSgit: https://salsa.debian.org/php-team/pecl/php-ssh2.git (browse)
Popcon Installs1628
Binary NEWYes (new binary packages of a source already in sid)
Trackerhttps://tracker.debian.org/pkg/php-ssh2
Uploaded3 hours ago

New Package Report

.changes◂
Distributionexperimental
DateFri, 27 Nov 2026 15:58:19 +0100
Sourcephp-ssh2
Version1.6.1-2
Changed-ByOndřej Surý <ondrej@debian.org>
Architecturesource all amd64
Changelog◂
php-ssh2 (1.6.1-2) experimental; urgency=medium
 .
   * Depend on php-all-dev from experimental
.dsc◂
Sectionphp
Priorityextra
Componentmain
Package-Listphp-ssh2 deb php extra arch=all
php-ssh2-all-dev deb php extra arch=all
php8.6-ssh2 deb php extra arch=any
debian/copyright◂
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: PECL::Package::ssh2
Upstream-Contact: Sara Golemon <pollita@php.net>
Source: http://pecl.php.net/package/ssh2

Files: *
Copyright: 1997-2012, The PHP Group
License: PHP-3.01

Files: debian/*
Copyright: 2008, Martin Meredith <mez@debian.org>
License: GPL-2+

License: GPL-2+
 On Debian systems, the full text of the GNU General Public License
 version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.

License: PHP-3.01
 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.

DFSG Assistant LLM REVIEW 0 blocker, 1 important, 4 minor

This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.

Reviewed 1 hour ago.

Proposes a replacement debian/watch: debian/watch in version 5 format

Proposes a replacement debian/copyright: debian/copyright Format field

Report◂

DFSG NEW review for php-ssh2 version 1.6.1-2

Summary

  • Licensing is DFSG-compliant and debian/copyright is accurate: Yes
  • Packaging is of good quality: Yes
  • Issues: 0 blocker, 1 important, 4 minor
  • debian/watch: old format (version 3)
  • debian/copyright: machine-readable, without the current Format URL
  • Scan before the review: nothing found

Licensing

debian/copyright is DEP-5 and matches the tree. LICENSE is the PHP License 3.01 (Copyright 1999-2012 The PHP Group), reproduced in full in the copyright file; the four C/H files say Copyright 1997-2016 The PHP Group and refer to PHP license 3.01; composer.json declares PHP-3.01; package.xml says "PHP License". Every upstream file is covered by Files: *, and The PHP Group is the only holder named in any notice, so the prescan's four hits are correctly covered (its 1997-2012 date is only year drift from the 2016 template year). No third-party code is embedded (libssh2 comes from libssh2-1-dev), no binary or generated files, no non-free terms. PHP-3.01 is the licence Debian's own php packages use in main.

Packaging

Standard Debian PHP-team PECL packaging: two-line rules including dh-php's pkg-pecl.mk, split php8.6-ssh2 (any) plus the arch:all php-ssh2 and php-ssh2-all-dev metapackages matching control.in, 3.0 (quilt) with no patches, and a clean gbp configuration. Build-Depends all resolve (dh-php 5.25, libssh2-1-dev 1.11.1-6; php-all-dev 2:108exp2 in experimental satisfies >= 2:108). Three minor packaging faults: deprecated Priority: extra, Standards-Version 4.5.1, and a stale PHP 7.0 warning in all three descriptions.

Issues

important licensing 1. debian/copyright does not declare the current copyright-format 1.0 URL ◂
  • Files: debian/copyright:1
  • Basis: found by the review tooling's own checks
  • Evidence: Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
  • Problem: The first field must be exactly Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ (copyright-format 1.0, "Format" field). Anything else, including the http:// form and the URLs of the drafts that preceded 1.0, does not declare the file to be in the current format, and a file written to a draft may also use field names and licence short names that 1.0 changed.
  • Fix: Replace the line as shown under Proposed changes, then check the rest of the file against copyright-format 1.0 (for example Upstream-Name, Upstream-Contact and Source in the header, not Name or Maintainer).
minor packaging 2. Priority: extra is deprecated and this upload would regress it from optional ◂
  • Files: debian/control:3, debian/control.in:3
  • Basis: checked, in the package or with a reference tool
  • Evidence: Priority: extra
  • Problem: Policy 2.5 (read with the policy tool) says: "This priority is deprecated. Use the 'optional' priority instead." The binary package currently in unstable (php-ssh2 1.4.1-4, per apt-cache) is Priority: optional, so declaring extra again is a step backwards as well as a policy deprecation.
  • Fix: Change both stanzas to Priority: optional (or drop the field, which now defaults to optional) and regenerate debian/control.
minor packaging 3. Standards-Version 4.5.1 is older than the current Policy 4.7.4.1 ◂
  • Files: debian/control:15, debian/control.in:15
  • Basis: checked, in the package or with a reference tool
  • Evidence: Standards-Version: 4.5.1; the policy tool reports Debian Policy version 4.7.4.1
  • Problem: The declared standards version predates the current Policy by two minor series; Policy 4.1 and 5.6.11 allow an older value, but it no longer records a check of current requirements.
  • Fix: Check the Policy A10 upgrading checklist and set Standards-Version: 4.7.4.1 in debian/control.in, then regenerate debian/control.
minor packaging 4. All three descriptions still warn about an unreleased PHP 7.0 git snapshot ◂
  • Files: debian/control.in:49, debian/control:49, debian/control:83, debian/control:117
  • Basis: checked, in the package or with a reference tool
  • Evidence: WARNING: The PHP 7.0 is an unreleased git snapshot of current ssh2 that implements support for PHP 7.0. USE WITH CAUTION!
  • Problem: The package built here is php8.6-ssh2 from upstream 1.6.1; the paragraph is leftover 2016-era text and is user-visible in all three binary package descriptions, where it falsely says the shipped code is an unreleased PHP 7.0 snapshot.
  • Fix: Delete the WARNING paragraph from debian/control.in and regenerate debian/control so all three descriptions match the actual code.
minor packaging 5. debian/watch is in the old version 3 format ◂
  • Files: debian/watch
  • Basis: found by the review tooling's own checks
  • Evidence: version=3
  • Problem: Version 5 is the current format of debian/watch.
  • Fix: Convert it to version 5; a mechanical conversion is under Proposed changes.
Verified ◂
  • Read all of debian/ in full: control, control.in, rules, compat (10), changelog, copyright, gbp.conf, php-ssh2.php, ssh2.ini, source/format, source.lintian-overrides.
  • Inventory: all 39 upstream files listed or read - 9 at the top of ssh2-1.6.1/ (LICENSE, README.md, composer.json, config.m4, config.w32, php_ssh2.h, ssh2.c, ssh2_fopen_wrappers.c, ssh2_sftp.c) and 29 under tests/ - plus package.xml; all are matched by Files: * in debian/copyright.
  • Prescan hits accounted for: php_ssh2.h, ssh2.c, ssh2_fopen_wrappers.c and ssh2_sftp.c each carry Copyright (c) 1997-2016 The PHP Group and version 3.01 of the PHP license; debian/copyright already names The PHP Group under Files: *, so no holder is missing (only year drift, 2012 vs 2016).
  • The PHP-3.01 text in debian/copyright reproduces the upstream LICENSE term for term, including clauses 3, 4 and 6 (name restrictions and acknowledgement); it is not in /usr/share/common-licenses, so the full text is required and present.
  • tests/*.phpt, ssh2_skip.inc, ssh2_test.inc, config.m4, config.w32, README.md and package.xml carry no separate copyright or licence notice and are covered by the project-wide LICENSE and Files: *; they are test and build scripts, not third-party code.
  • No embedded third-party library: config.m4 probes an external libssh2 (>= 1.9.0) supplied by Build-Depends libssh2-1-dev; there is no vendored copy in the tree.
  • No prebuilt or generated binaries, minified code, PDFs, images or fonts in the upstream tree; no debian/patches directory, so no file is patch-generated.
  • php8.4-cli is in main (apt-cache: Section php, Priority optional), i.e. Debian accepts the PHP-family licence this source uses.
  • Build dependencies checked with apt-cache: dh-php 5.25, libssh2-1-dev 1.11.1-6; php-all-dev is 2:107 in unstable but 2:108~exp2 is in experimental, satisfying >= 2:108~ and matching the changelog's experimental target and the php8.6-ssh2 package name.
  • debian/control (generated) and debian/control.in differ as expected: the generated split (php-ssh2 all, php-ssh2-all-dev all, php8.6-ssh2 any) matches the template plus the PHP 8.6 default from php-all-dev 2:108; the .dsc Binary and Package-List fields match debian/control.
  • No maintainer scripts in debian/ (dh_php generates the enable/disable scripts); debian/php-ssh2.php (mod debian/ssh2.ini) and the 18-byte ssh2.ini are the dh-php unversioned ini pair.
  • debian/source.lintian-overrides suppresses license-problem-php-license for the PECL PHP-3.01 licence; I did not treat it as a defect on its own.
  • uscan found the packaged version as the newest upstream release (upstream 1.6.1, packaged 1.6.1).
  • Every pointer of debian/copyright to /usr/share/common-licenses names a file that is there (GPL-2).
Not confirmed ◂
  • debian/rules is only include /usr/share/dh-php/pkg-pecl.mk; dh-php is not installed on the reviewing system, so the fragment's exact dh sequence and substvar handling could not be read (not a defect of the package).
  • No php package is installed here, so Debian's own debian/copyright for php (PHP-3.01 short name and text) could not be compared; acceptance of PHP-3.01 in main rests on php8.4-cli being in main and on the licence text read in this package.
Proposed: debian/watch in version 5 format ◂

debian/watch is in an old format. This is the conversion made by uscan --update-watchfile, which has not been run against the upstream site: some defaults differ in version 5, so test it with uscan --report before use.

Version: 5

Source: https://pecl.php.net/package/ssh2
Matching-Pattern: /get/ssh2-(\d+.*).tgz
Proposed: debian/copyright Format field ◂

Replace line 1 of debian/copyright with:

Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Uploader's response to the LLM review

Waiting for the uploader's response until , because the review found serious issues.

Back to Dashboard | View all reviews for this package