PHP echo/print are not showed

I’m using PHP. The result are printed via `echo` command. Here is a quick example of file :slight_smile:

<?php

echo("test");

I tried using this workflow file:

name: Gitea Actions
on: [push]

jobs:
  run-php:
    runs-on: ubuntu-latest
    steps:
      - name: Check out repository code
        uses: actions/checkout@v4
      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: '8.2'   # adapte si besoin (7.4, 8.0, etc.)
      - name: Run run.php
        run: php run.php
      - name: List files in the repository
        run: |
          ls ${{ gitea.workspace }}
      - run: echo "🍏 This job's status is ${{ job.status }}."

Which works fine :

Except the `Run run.php` part which seems to do nothing. Why is the result of PHP not showing? or at least error or whatever ?

I tried this :

name: Gitea Actions
on: [push]

jobs:
  run-php:
    runs-on: ubuntu-latest
    steps:
      - name: Check out repository code
        uses: actions/checkout@v4
      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: '8.2'   # adapte si besoin (7.4, 8.0, etc.)
      - name: Run run.php
        run: php -d display_errors=1 -f run.php
      - run: php -r "echo 'Hello, world.';"
      - run: php -r "phpinfo();"
      - run: php -r "print('Hello, world.');"
      - name: List files in the repository
        run: |
          ls ${{ gitea.workspace }}
      - run: echo "🍏 This job's status is ${{ job.status }}."

It works fine on github, it doesn’t work on gitea.