Skip to content

extension shows in phpinfo() but not in php -m #502

@sam452

Description

@sam452

My phpbrew is 1.18.5, using php 5.4.34 as default and I'm encountering some behavior that I believe I've narrowed down to phpbrew. My SO post is here: http://serverfault.com/questions/692072/call-to-undefined-function-ldap-connect-in-ubuntu?noredirect=1#comment853351_692072

tl:dr; ldap extension is reported to be enabled for apache2 as evidenced by phpinfo() and in apache's mods-enabled.

However, when I run php -m in the command line it reports these: Core, ctype, curl, date, dom, ereg, filter, gd, gettext, hash, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, Phar, readline, Reflection, session, SimpleXML, soap, SPL, standard, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib
ldap is not one of them.

I attempted to manually enable the extension using phpbrew config, but when restarting apache it returns that it cannot because the ldap module is already enabled.

phpldapadmin still reports that the extension is not enabled and php -m confirms it's not. What am I not understanding about this apparent disconnect? thx, sam

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions