[Kolab-devel] debug("checkuniquemail...) in user.php fails with php-5.2
Marcus Hüwe
suse-tux at gmx.de
Tue Dec 19 20:56:29 CET 2006
Hi,
On 2006-12-17 22:44:35 +0100, Richard Bos wrote:
> Hi,
<SNIP>
>
> I commented out the debug line, and now it works....:
> 54 function checkuniquemail( $form, $key, $value ) {
> 55 // debug("checkuniquemail( $form, $key, $value )");
>
> Why does debug("checkuniquemail ...) not work with php-5.2, does anyone know?
>
The problem is that the version of php which is delivered with opensuse 10.2
is more strict than older php version.
"$form" is an instance of the KolabForm class, so $form can't be echo'ed and
can't be put in a string ("blabla $form...").
So what should we do now? For what do you need the $form object or what for
debug information do you want to get from it?
I think it's the object id. Because if you run "echo $object" you'll get the
object id (this doesn't work anymore with newer php version).
for example:
echo "$form";
output:
"Object id #3"
Do someone know if there's a way to get the object id (in newer php versions)?
I had a look at php.net and google but didn't find some useful information
so far.
Marcus
More information about the devel
mailing list