Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php 8 compat? #24

Open
kumy opened this issue Dec 24, 2021 · 2 comments
Open

php 8 compat? #24

kumy opened this issue Dec 24, 2021 · 2 comments

Comments

@kumy
Copy link
Contributor

kumy commented Dec 24, 2021

I recently got bunch of new errors in my CI pipelines. Downgrading php from 8.? to 7.4 remove the error.

./vendor/bin/tsmarty2c.php -o /tmp/tmp.Z5QCcr2eoV/smarty.pot ./website/app-templates ./website/app-templates/smarty/js/_dropzone-drop-local.inc.tpl.js ./website/app-templates/smarty/js/geokrety_map.tpl.js ./website/app-templates/smarty/js/magnificPopup.tpl.js ./website/app-templates/smarty/js/map_geojson_loader.tpl.js ./website/app-templates/smarty/js/_map_init.tpl.js ./website/app-templates/smarty/js/maxlenght.tpl.js ./website/app-templates/smarty/js/modal.tpl.js ./website/app-templates/smarty/js/tooltips.tpl.js

PHP Warning:  fopen(/home/travis/build/geokrety/geokrety-website/vendor/smarty-gettext/tsmarty2c/bin/../smarty-gettext/smarty-gettext/tsmarty2c.php): failed to open stream: No such file or directory in /home/travis/build/geokrety/geokrety-website/vendor/bin/tsmarty2c.php on line 32

PHP Stack trace:

PHP   1. {main}() /home/travis/build/geokrety/geokrety-website/vendor/bin/tsmarty2c.php:0

PHP   2. include() /home/travis/build/geokrety/geokrety-website/vendor/bin/tsmarty2c.php:92

PHP   3. Composer\BinProxyWrapper->stream_open() /home/travis/build/geokrety/geokrety-website/vendor/smarty-gettext/tsmarty2c/bin/tsmarty2c.php:91

PHP   4. fopen() /home/travis/build/geokrety/geokrety-website/vendor/bin/tsmarty2c.php:32

Warning: fopen(/home/travis/build/geokrety/geokrety-website/vendor/smarty-gettext/tsmarty2c/bin/../smarty-gettext/smarty-gettext/tsmarty2c.php): failed to open stream: No such file or directory in /home/travis/build/geokrety/geokrety-website/vendor/bin/tsmarty2c.php on line 32

Call Stack:

    0.0002     433096   1. {main}() /home/travis/build/geokrety/geokrety-website/vendor/bin/tsmarty2c.php:0

    0.0004     444808   2. include('/home/travis/build/geokrety/geokrety-website/vendor/smarty-gettext/tsmarty2c/bin/tsmarty2c.php') /home/travis/build/geokrety/geokrety-website/vendor/bin/tsmarty2c.php:92

    0.0004     446064   3. Composer\BinProxyWrapper->stream_open() /home/travis/build/geokrety/geokrety-website/vendor/smarty-gettext/tsmarty2c/bin/tsmarty2c.php:91

    0.0004     446224   4. fopen() /home/travis/build/geokrety/geokrety-website/vendor/bin/tsmarty2c.php:32

PHP Warning:  include(composer-bin-proxy:///home/travis/build/geokrety/geokrety-website/vendor/smarty-gettext/tsmarty2c/bin/../smarty-gettext/smarty-gettext/tsmarty2c.php): failed to open stream: "Composer\BinProxyWrapper::stream_open" call failed in /home/travis/build/geokrety/geokrety-website/vendor/smarty-gettext/tsmarty2c/bin/tsmarty2c.php on line 91

PHP Stack trace:

PHP   1. {main}() /home/travis/build/geokrety/geokrety-website/vendor/bin/tsmarty2c.php:0

PHP   2. include() /home/travis/build/geokrety/geokrety-website/vendor/bin/tsmarty2c.php:92

Warning: include(composer-bin-proxy:///home/travis/build/geokrety/geokrety-website/vendor/smarty-gettext/tsmarty2c/bin/../smarty-gettext/smarty-gettext/tsmarty2c.php): failed to open stream: "Composer\BinProxyWrapper::stream_open" call failed in /home/travis/build/geokrety/geokrety-website/vendor/smarty-gettext/tsmarty2c/bin/tsmarty2c.php on line 91

Call Stack:

    0.0002     433096   1. {main}() /home/travis/build/geokrety/geokrety-website/vendor/bin/tsmarty2c.php:0

    0.0004     444808   2. include('/home/travis/build/geokrety/geokrety-website/vendor/smarty-gettext/tsmarty2c/bin/tsmarty2c.php') /home/travis/build/geokrety/geokrety-website/vendor/bin/tsmarty2c.php:92

PHP Warning:  include(): Failed opening 'composer-bin-proxy:///home/travis/build/geokrety/geokrety-website/vendor/smarty-gettext/tsmarty2c/bin/../smarty-gettext/smarty-gettext/tsmarty2c.php' for inclusion (include_path='.:/home/travis/.phpenv/versions/7.4.6/share/pear') in /home/travis/build/geokrety/geokrety-website/vendor/smarty-gettext/tsmarty2c/bin/tsmarty2c.php on line 91

PHP Stack trace:

PHP   1. {main}() /home/travis/build/geokrety/geokrety-website/vendor/bin/tsmarty2c.php:0

PHP   2. include() /home/travis/build/geokrety/geokrety-website/vendor/bin/tsmarty2c.php:92

Warning: include(): Failed opening 'composer-bin-proxy:///home/travis/build/geokrety/geokrety-website/vendor/smarty-gettext/tsmarty2c/bin/../smarty-gettext/smarty-gettext/tsmarty2c.php' for inclusion (include_path='.:/home/travis/.phpenv/versions/7.4.6/share/pear') in /home/travis/build/geokrety/geokrety-website/vendor/smarty-gettext/tsmarty2c/bin/tsmarty2c.php on line 91

Call Stack:

    0.0002     433096   1. {main}() /home/travis/build/geokrety/geokrety-website/vendor/bin/tsmarty2c.php:0

    0.0004     444808   2. include('/home/travis/build/geokrety/geokrety-website/vendor/smarty-gettext/tsmarty2c/bin/tsmarty2c.php') /home/travis/build/geokrety/geokrety-website/vendor/bin/tsmarty2c.php:92
@kumy
Copy link
Contributor Author

kumy commented Dec 24, 2021

BTW, from what I saw in my logs, in such case, the command return code doesn't seems to be > 0 :/

@glensc
Copy link
Member

glensc commented Dec 24, 2021

Pull requests are welcome!

dfranco added a commit to dfranco/tsmarty2c that referenced this issue Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants