Your message dated Sun, 28 Mar 2010 15:55:04 +0100
with message-id <[email protected]>
and subject line Fwd: [php-maint] Bug#574982: 5.3.2-1 fixes this
has caused the Debian Bug report #574982,
regarding libapache2-mod-php: php5.3.1: Closure problems on armel
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
574982: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=574982
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Version: 5.3.2-1
---------- Forwarded message ----------
From: Kralik Barnabas <[email protected]>
Date: Sat, Mar 27, 2010 at 10:13
Subject: [php-maint] Bug#574982: 5.3.2-1 fixes this
To: "[email protected]" <[email protected]>
The error does not appear with package version 5.3.2-1.
_______________________________________________
pkg-php-maint mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-php-maint
--
Ondřej Surý <[email protected]>
http://blog.rfc1925.org/
--- End Message ---