Giter Club home page Giter Club logo

Comments (6)

szepeviktor avatar szepeviktor commented on July 19, 2024

Maybe this is cause https://github.com/gordalina/cachetool/blob/master/composer.json#L6

from cachetool.

szepeviktor avatar szepeviktor commented on July 19, 2024

finally may be not part of your PHP version:
https://github.com/symfony/dependency-injection/blob/4b9645f5870e0b4ab35cc5b528422049946e8bec/Container.php#L280

symfony/dependency-injection is also for >=5.5.9

from cachetool.

szepeviktor avatar szepeviktor commented on July 19, 2024

You may try issuing composer install, hacking a bit with the code and rebuilding the phar.

from cachetool.

rndmh3ro avatar rndmh3ro commented on July 19, 2024

I've got the same problem using php:

PHP 7.0.14 (cli) (built: Dec 22 2016 14:17:52) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies

and downloading the cachetool-binary from github like mentioned in the docs.

[root@server]# /usr/local/bin/cachetool opcache:reset
PHP Parse error:  syntax error, unexpected '{' in phar:///usr/local/bin/cachetool/vendor/symfony/dependency-injection/Container.php on line 280

from cachetool.

mablae avatar mablae commented on July 19, 2024

@rndmh3ro Looks like an unrelated issue. I would open a new issue for that.

from cachetool.

gordalina avatar gordalina commented on July 19, 2024

To use with php5.4 you need to use cachetool 1.x

from cachetool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.