krakjoe / tombs

Detect unused code in production
Other
433 stars 20 forks source link

undefined symbol: zend_strpprintf #9

Open DmitryRomanov opened 4 years ago

DmitryRomanov commented 4 years ago

$ php -v
Failed loading /usr/lib64/php/modules/tombs.so: /usr/lib64/php/modules/tombs.so: undefined symbol: zend_strpprintf PHP 7.1.31 (cli) (built: Jul 31 2019 09:59:01) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies with Xdebug v2.7.2, Copyright (c) 2002-2019, by Derick Rethans

nenad commented 4 years ago

Turns out this function was only exported in Zend starting from PHP 7.2. Here is the commit: https://github.com/php/php-src/commit/c7742e280a4edcc8b216d7b798c805c9a439d663

nenad commented 4 years ago

@krakjoe Is there a compatible way of calling the zend_strpprintf from PHP 7.1?