Skip to content

php5.3: Call to undefined function Sentry\init() #1301

Closed

Description

@pixeline

I would like to use Sentry on a php5.3 application (stuck there for a while, until i finish porting the code to PHP8+). I get this error message:

Fatal error: Call to undefined function Sentry\init() in /var/www/html/membres/test_sentry.php on line 9

Line 8 and 9:

require '../vendor/autoload.php';
\Sentry\init(array('dsn' => 'https://xxxx.ingest.sentry.io/xxxxx' ));

Here is my composer.json

{
    "require": {
        "sentry/sentry": "^1.0"
    },
    "config": {
        "platform": {
            "php": "5.3"
        }
    }
}

Does this mean Sentry cannot be run on php5.3?

Activity

  1. locked and limited conversation to collaborators on Apr 20, 2022
  2. converted this issue into a discussion #1302 on Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions