smarty-gettext / tsmarty2c

Smarty Gettext Translation String Ripper
BSD 3-Clause "New" or "Revised" License
3 stars 8 forks source link

php 8 compat? #24

Open kumy opened 2 years ago

kumy commented 2 years ago

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 commented 2 years ago

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

glensc commented 2 years ago

Pull requests are welcome!