[Kolab-devel] [issue1558] kolab-webadmin and php 5.2.0

Marcus Hüwe kolab-issues at intevation.de
Tue Jan 9 20:32:23 CET 2007


New submission from Marcus Hüwe <suse-tux at gmx.de>:

It seems that kolab-webadmin doesn't work properly with php 5.2.0
With this php version it isn't possible anymore to put a $object into a string
or do a "echo $object" call otherwise you'll get an error.

The "$DOCROOT/kolab/admin/user/user.php" script tries to put an object into a
string:
In function checkuniquemail
line 55: debug("checkuniquemail($form, $key, $value)");

"$form" is an instance of the KolabForm class, so it can't be put in a string.

If we want to get it working again with php 5.2.0 we have to add a __tostring
method to the KolabForm class which defines how the object will react if
something tries to convert it into a string (information:
http://www.php.net/manual/en/language.oop5.magic.php).

I attached a patch for it (it won't break anything - it just fixes a bug;) ).
If no one has any objections i will commit it to cvs:)

----------
files: kolab-webadmin_form.class.php.patch
messages: 9281
nosy: mhuewe
status: unread
title: kolab-webadmin and php 5.2.0
topic: server
________________________________________________
Kolab issue tracker <kolab-issues at intevation.de>
<https://intevation.de/roundup/kolab/issue1558>
________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kolab-webadmin_form.class.php.patch
Type: application/octet-stream
Size: 803 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/devel/attachments/20070109/57334306/attachment.obj>


More information about the devel mailing list