[Kolab-devel] freebusy.class.php problem

Marcus Hüwe suse-tux at gmx.de
Thu Apr 6 22:56:26 CEST 2006


Hi,


Richard and I discovered a new bug.
If you browse to
https://<your-domain>/kolab/freebusy/trigger/<user>%40<your-domain>.pfb
you'll get the following error/notice:

Notice: Only variable references should be returned by reference
in /usr/share/php/kolab/freebusy/freebusy.class.php on line 138

Warning: Cannot modify header information - headers already sent by
(output started
at /usr/share/php/kolab/freebusy/freebusy.class.php:138)
in /srv/www/htdocs/kolab/freebusy/pfb.php on line 205

<some more header warnings.. but they're not important>

Warning: Cannot modify header information - headers already sent by
(output started
at /usr/share/php/kolab/freebusy/freebusy.class.php:138)
in /srv/www/htdocs/kolab/freebusy/pfb.php on line 210

Warning: Cannot modify header information - headers already sent by
(output started
at /usr/share/php/kolab/freebusy/freebusy.class.php:138)
in /srv/www/htdocs/kolab/freebusy/pfb.php on line 211 
BEGIN:VCALENDAR VERSION:2.0 PRODID:-//proko2//freebusy 1.0//EN
METHOD:PUBLISH BEGIN:VFREEBUSY ORGANIZER:MAILTO:marcus at linux-network.tld
DTSTAMP:20060406T205037Z DTSTART:19691231T230000Z
DTEND:19691231T230000Z COMMENT:This is a dummy vfreebusy that indicates
an empty calendar END:VFREEBUSY END:VCALENDAR


The header warnings can be ignored.. but this is the important one:
Notice: Only variable references should be returned by reference
in /usr/share/php/kolab/freebusy/freebusy.class.php on line 138

You're trying to return a pointer which isn't allowed in php. I
attached a small patch.



Marcus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: krh-return.patch
Type: text/x-patch
Size: 721 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/devel/attachments/20060406/d9d5b468/attachment.bin>


More information about the devel mailing list