[pear/pear-core] efd2d9: Fixed extension loaded check for pecl binaries

[email protected] ("CloCkWeRX via pear-cvs") Wed, 05 Apr 2023 02:23:42 -0700
Newsgroups php.pear.cvs
Message-ID <pear/pear-core/push/refs/heads/master/[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/pear/pear-core
  Commit: efd2d9685c8f0a7d57a30fa1e4549bf05cdbca8b
      https://github.com/pear/pear-core/commit/efd2d9685c8f0a7d57a30fa1e4549bf05cdbca8b
  Author: Derick Rethans <[email protected]>
  Date:   2023-03-31 (Fri, 31 Mar 2023)

  Changed paths:
    M PEAR/Installer.php

  Log Message:
  -----------
  Fixed extension loaded check for pecl binaries

This check is used to make sure we don't overwrite binary files that are
already in use, as doing so will cause a segmentation fault. This is reported
among others in https://bugs.xdebug.org/view.php?id=2167, but I have ran into
this in many occasions.

However, this check never worked, since its introduction 19 years ago, as the
`return` was missing, and the suffix as created by `basename` does not include
the `.`.


  Commit: ed08e2b2200980d9787211f81655f11f491d22dc
      https://github.com/pear/pear-core/commit/ed08e2b2200980d9787211f81655f11f491d22dc
  Author: Daniel O'Connor <[email protected]>
  Date:   2023-04-05 (Wed, 05 Apr 2023)

  Changed paths:
    M PEAR/Installer.php

  Log Message:
  -----------
  Merge pull request #125 from derickr/fix-extension-loaded-check

Fixed extension loaded check for pecl binaries


Compare: https://github.com/pear/pear-core/compare/e4b6d2d95b90...ed08e2b22009