[php-maint] Bug#574982: libapache2-mod-php: php5.3.1: Closure problems on armel

Králik Barnabás kralikba at msn.com
Mon Mar 22 16:32:03 UTC 2010

Package: libapache2-mod-php5
Version: 5.3.1-5
Severity: important
File: libapache2-mod-php

I am using a PHP library called PHPActiveRecord, which should get
initialized by passing an initializer closure to a function.

The following code fails on my armel system if it is being invoked through

            global $fsroot;
            global $dbname, $dbhost, $dblogin, $dbpass;
            $cfg->set_connections(array('conn' =>



Note, that when running from the command line, it executes successfully. Also, it runs
in a production environment (non-debian, but PHP 5.3.1 too).

The code produces the following output:


Catchable fatal error: Argument 1 passed to
ActiveRecord\Config::initialize() must be an instance of Closure, null
given, called in /data/www/wwwroot/pktr-live/lib/config.php on line 34 and
defined in /data/www/wwwroot/pktr-live/lib/php-activerecord/lib/Config.php
on line 86

However, invoking php -c /etc/php5/apache2 config.php executes correctly:

object(Closure)#1 (1) {
  array(1) {
    string(10) "<required>"

is the output.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: armel (armv5tel)

Kernel: Linux 2.6.29-2-kirkwood
Locale: LANG=hu_HU.UTF-8, LC_CTYPE=hu_HU (charmap=UTF-8) (ignored: LC_ALL set to hu_HU.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libapache2-mod-php5 depends on:
ii  apache2-mpm-prefork 2.2.14-3             Apache HTTP Server - traditional n
ii  apache2.2-common    2.2.14-3             Apache HTTP Server common files
ii  libbz2-1.0          1.0.5-3              high-quality block-sorting file co
ii  libc6               2.10.1-1             GNU C Library: Shared libraries
ii  libcomerr2          1.41.9-1             common error description library
ii  libdb4.8            4.8.24-1             Berkeley v4.8 Database Libraries [
ii  libgcc1             1:4.4.2-1            GCC support library
ii  libgssapi-krb5-2    1.7+dfsg-3           MIT Kerberos runtime libraries - k
ii  libk5crypto3        1.7+dfsg-3           MIT Kerberos runtime libraries - C
ii  libkrb5-3           1.7+dfsg-3           MIT Kerberos runtime libraries
ii  libmagic1           5.03-1               File type determination library us
ii  libpcre3            7.8-3                Perl 5 Compatible Regular Expressi
ii  libssl0.9.8         0.9.8k-3             SSL shared libraries
ii  libxml2             2.7.6.dfsg-1         GNOME XML library
ii  mime-support        3.46-1               MIME files 'mime.types' & 'mailcap
ii  php5-common         5.3.1-5              Common files for packages built fr
ii  tzdata              2009s-1              time zone and daylight-saving time
ii  ucf                 3.0018               Update Configuration File: preserv
ii  zlib1g              1: compression library - runtime

libapache2-mod-php5 recommends no packages.

Versions of packages libapache2-mod-php5 suggests:
ii  php-pear                      5.3.1-5    PEAR - PHP Extension and Applicati

-- no debconf information

More information about the pkg-php-maint mailing list