Menu

#1565 php-cli can't use any modules

10.5_(32-bit_Intel)
open
7
2009-05-17
2008-09-09
No

For the Apache Handler PHP is correctly configured like this:

Configuration File (php.ini) Path => /sw/etc/php5/apache2
Loaded Configuration File => /sw/etc/php5/apache2/php.ini
Scan this dir for additional .ini files => /sw/etc/php5/conf.d

php5-cli contains the file /sw/etc/php5/cli/php.ini but is configured like this:

Configuration File (php.ini) Path => /etc/php5/cli
Loaded Configuration File => (none)
Scan this dir for additional .ini files => /etc/php5/conf.d

Discussion

  • James Marten

    James Marten - 2008-10-16

    php5-cli is still more or less unuseable as no modules are loaded. Manipulating the path in the info-File results in the following message:

    dyld: NSLinkModule() error
    dyld: Symbol not found: _executor_globals_id
    Referenced from: /sw/lib/php5/libexec/[any module that should be loaded].so
    Expected in: flat namespace

    Btw., is this bug tracker in use at all?

     
  • James Marten

    James Marten - 2008-11-23
    • summary: PHP CLI uses wrong php.ini --> php-cli can't use any modules
     
  • James Marten

    James Marten - 2008-11-23

    apache2handler and cli SAPIs can't use the same modules because CLI is built without ZTS whereas the Apache 2 version is built with thread safety. This is because of the missing parameter --with-apxs2=%p/bin/apxs2 for the CLI built. Incidentally /sw/bin/apxs2 -q MPM_NAME allways returns "worker" (even if "prefork" is the active one) which allways results in an ZTS built. (Hm, the PHP 5 package description says that it should allways be built as non-ZTS ...?)

     
  • James Marten

    James Marten - 2008-11-23
    • labels: 349628 --> Package: Build problem
    • milestone: --> 10.5_(32-bit_Intel)
    • priority: 5 --> 7
     
  • monipol

    monipol - 2009-03-13

    As php5 is a maintained package, we'd like to ask you to contact the maintainer (Justin F. Hallett <thesin@users.sourceforge.net>) directly with regard to this issue.

    To find out who is the maintainer of a given package, type the following command on a terminal window:

    fink info packagename

    replacing packagename with the actual name of the package, e.g. php5.

     
  • monipol

    monipol - 2009-05-17

    Assigned bug report to maintainer.

     
  • monipol

    monipol - 2009-05-17
    • assigned_to: nobody --> thesin
     

Log in to post a comment.