Project

General

Profile

Actions

Bug #14374

closed

undefined function: float() in class.t3lib_cs.php

Added by old_jsb about 20 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend API
Target version:
-
Start date:
2004-11-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.7.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

when clicking on a news item (uri+query string like: index.php?id=4&backPID=4&tt_news=1) php raises a fatal error:

Call to undefined function: float() in /var/www/typo3/typo3_src-3.7.0/t3lib/class.t3lib_cs.php on line 1500

replacing the float(phpversion()) in line 1500 t3lib/class.t3lib_cs.php with floatva(phpversion()) resolved the problem for me.

mod_php = 4.3.9
apache = 2.0.52
(issue imported from #M459)

Actions #1

Updated by old_jsb about 20 years ago

Oops, just re-read the "additional information" - should be floatval(phpversion()) not floatva

Also, tested alternative (float)phpversion() which is not limited to PHP>=4.2 as floatval() is.

Line 1500 of t3lib/class.t3lib_cs.php becomes:

if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'mbstring' && (float)phpversion() >= 4.3)    {

...this also corrected the problem for me.

Actions #2

Updated by Michael Stucki almost 20 years ago

Fixed in CVS.

Actions

Also available in: Atom PDF