Skip to content

Bug: Cleanup /tmp/pear #905

@glensc

Description

@glensc

Describe the bug

It appears there's some cruft with fixed path in /tmp, owned by root, that can cause normal CI job to fail:

+ pecl install xhprof-0.9.4
WARNING: configuration download directory "/tmp/pear/install" is not writeable.  Change download_dir config variable to a writeable dir to avoid this warning
downloading xhprof-0.9.4.tgz ...
Starting to download xhprof-0.9.4.tgz (842,077 bytes)
........................................................................................................................................................................done: 842,077 bytes
ERROR: failed to write /usr/local/php/5.4/docs/xhprof/examples/.tmpsample.php: copy(/usr/local/php/5.4/docs/xhprof/examples/.tmpsample.php): failed to open stream: Permission denied

Here's full dump of /tmp:

Version

  • v2
  • v1

Runners

GitHub Hosted

Operating systems

ubuntu-20.04

PHP versions

5.4, basically all 5.*

To Reproduce

      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: "5.4"
          extensions: xdebug, xhprof, mongodb, tideways_xhprof

      - run: pecl install xhprof-0.9.4

Expected behavior

The /tmp is doesn't contain cruft from setup-php.

Screenshots/Logs

No response

Additional context

No response

Are you willing to submit a PR?

No

Metadata

Metadata

Assignees

Labels

workflow-editIssue can be fixed by editing the GitHub Action workflow

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions