Syntax error for PHP < 5.5 in class.calendar_uiforms.inc.php (revision 53642)

classic Classic list List threaded Threaded
2 messages Options
umehner umehner
Reply | Threaded
Open this post in threaded view
|

Syntax error for PHP < 5.5 in class.calendar_uiforms.inc.php (revision 53642)

Hi Nathan,

in version 53642 for /trunk/calendar/inc/class.calendar_ui.inc.php the single line

$event['non_blocking'] = boolval($event['non_blocking']);

was introduced. Unfortunately function boolval() works for PHP 5 >= 5.5.0, PHP 7 only - so no eGroupware anymore on a server with Ubuntu "12.04.5 LTS, Precise Pangolin" and default PHP 5.3.10.

Would be nice to have this the old fashioned way, for exampe like
$event['non_blocking'] = (bool) $event['non_blocking'];

Hope this doesn't lead into a supported-php-version discussion ...

Cheers
Ulle
eGroupware SVN Trunk
Ralf Becker Stylite AG Ralf Becker Stylite AG
Reply | Threaded
Open this post in threaded view
|

Re: Syntax error for PHP < 5.5 in class.calendar_uiforms.inc.php (revision 53642)

Hi Ulle,

Am 04.10.15 um 23:54 schrieb umehner:

> Hi Nathan,
>
> in version 53642 for /trunk/calendar/inc/class.calendar_ui.inc.php the
> single line
>
> $event['non_blocking'] = boolval($event['non_blocking']);
>
> was introduced. Unfortunately function boolval() works for PHP 5 >= 5.5.0,
> PHP 7 only - so no eGroupware anymore on a server with Ubuntu "12.04.5 LTS,
> Precise Pangolin" and default PHP 5.3.10.
>
> Would be nice to have this the old fashioned way, for exampe like
> $event['non_blocking'] = (bool) $event['non_blocking'];
Thanks for the info, that's easily fixed by using a cast instead,
commited it:

   
https://svn.stylite.de/viewvc/egroupware/trunk/calendar/inc/class.calendar_ui.inc.php?r1=53813&r2=53812&pathrev=53813
> Hope this doesn't lead into a supported-php-version discussion ...
Current plan for next version is to require 5.4 (instead of 5.3 as for
14.x).

Ralf
> Cheers
> Ulle

--
Ralf Becker
Director Software Development

Stylite AG

Isaac-Fulda-Allee 9 | Tel. +49 6131 32702-0
D-55124 Mainz       | Fax. +49 6131 32702-70

Email: [hidden email]

www.stylite.de | www.egroupware.org

Managing Directors: Andre Keller | Ralf Becker | Gudrun Mueller
Chairman of the supervisory board: Prof. Dr. Birger Leon Kropshofer

VAT DE214280951 | Registered HRB 46224 Mainz Germany



------------------------------------------------------------------------------

_______________________________________________
eGroupWare-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/egroupware-developers

signature.asc (817 bytes) Download Attachment