Debian Bug report logs - #574982
libapache2-mod-php: php5.3.1: Closure problems on armel

version graph

Package: libapache2-mod-php5; Maintainer for libapache2-mod-php5 is (unknown);

Reported by: Králik Barnabás <kralikba@msn.com>

Date: Mon, 22 Mar 2010 16:36:01 UTC

Severity: important

Found in version php5/5.3.1-5

Fixed in version 5.3.2-1

Done: Ondřej Surý <ondrej@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#574982; Package libapache2-mod-php5. (Mon, 22 Mar 2010 16:36:04 GMT) (full text, mbox, link).


Acknowledgement sent to Králik Barnabás <kralikba@msn.com>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Mon, 22 Mar 2010 16:36:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Králik Barnabás <kralikba@msn.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libapache2-mod-php: php5.3.1: Closure problems on armel
Date: Mon, 22 Mar 2010 17:32:03 +0100
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
Apache:

$cfgf=function($cfg)
        {
            global $fsroot;
            global $dbname, $dbhost, $dblogin, $dbpass;
            $cfg->set_model_directory($fsroot.'lib/models');
            $cfg->set_connections(array('conn' =>
            'mysql://'.$dblogin.':'.$dbpass.'@'.$dbhost.'/'.$dbname));
            $cfg->set_default_connection('conn');
        };

    var_dump($cfgf);

    ActiveRecord\Config::initialize($cfgf);

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:

NULL

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) {
  ["parameter"]=>
  array(1) {
    ["$cfg"]=>
    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:1.2.3.3.dfsg-15+b2 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




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#574982; Package libapache2-mod-php5. (Sat, 27 Mar 2010 10:57:05 GMT) (full text, mbox, link).


Acknowledgement sent to Kralik Barnabas <kralikba@inf.elte.hu>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Sat, 27 Mar 2010 10:57:05 GMT) (full text, mbox, link).


Message #10 received at 574982@bugs.debian.org (full text, mbox, reply):

From: Kralik Barnabas <kralikba@inf.elte.hu>
To: "574982@bugs.debian.org" <574982@bugs.debian.org>
Subject: 5.3.2-1 fixes this
Date: Sat, 27 Mar 2010 09:13:59 +0000
[Message part 1 (text/plain, inline)]
The error does not appear with package version 5.3.2-1.
[Message part 2 (text/html, inline)]

Reply sent to Ondřej Surý <ondrej@debian.org>:
You have taken responsibility. (Sun, 28 Mar 2010 14:57:06 GMT) (full text, mbox, link).


Notification sent to Králik Barnabás <kralikba@msn.com>:
Bug acknowledged by developer. (Sun, 28 Mar 2010 14:57:06 GMT) (full text, mbox, link).


Message #15 received at 574982-done@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@debian.org>
To: 574982-done@bugs.debian.org
Subject: Fwd: [php-maint] Bug#574982: 5.3.2-1 fixes this
Date: Sun, 28 Mar 2010 15:55:04 +0100
Version: 5.3.2-1


---------- Forwarded message ----------
From: Kralik Barnabas <kralikba@inf.elte.hu>
Date: Sat, Mar 27, 2010 at 10:13
Subject: [php-maint] Bug#574982: 5.3.2-1 fixes this
To: "574982@bugs.debian.org" <574982@bugs.debian.org>


The error does not appear with package version 5.3.2-1.

_______________________________________________
pkg-php-maint mailing list
pkg-php-maint@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-php-maint



-- 
Ondřej Surý <ondrej@sury.org>
http://blog.rfc1925.org/




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 12 May 2010 07:46:26 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 02:37:58 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.