pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: php with zlib



On Thu, Aug 16, 2018 at 05:57:47PM +0100, Stephen Borrill wrote:
> On Thu, 16 Aug 2018, Patrick Welche wrote:
> >With pkgsrc-current, -current/amd64, drupal7 is giving me this error:
> >
> > The extension 'zlib' couldn't be found. Please make sure your version of PHP was built with 'zlib' support.
> >
> >yet php72-zlib-7.2.8 is installed, /usr/pkg/etc/php.d/zlib.ini is present
> >with "extenion=zlib.so", and if I run php -m, I see zlib as listed.
> 
> I'd grep -r through drupal looking for what's printing that line and then
> looking to see what checks it is doing.

Yes, but it makes no sense:

            if (!extension_loaded($extname)) {
                $this->_error(
                    "The extension '$extname' couldn't be found.\n" .
                    "Please make sure your version of PHP was built " .
                    "with '$extname' support.\n"
                );

$ php -a
Interactive shell

php > print extension_loaded('zlib');
1
php >


php-fpm and /usr/pkg/bin/php should have the same idea of what is loaded?

Cheers,

Patrick


Home | Main Index | Thread Index | Old Index