View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
08479Bug reportsSurvey takingpublic2013-12-20 13:05
ReporterDenisChenu Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionno change required 
Product Version2.05+ 
Summary08479: EM is_numeric accept Hexadecimal/Binary
Description

Not sure it's a bug, and what is the needed/desired behaviour, but for EM:
is_numeric(0x539) == true
is_numeric(0b10100111001) == true
is_numeric(0123.45e6) == true

It's true for PHP is_numeric function, but what for LS ?

Steps To Reproduce

Import included survey and lauch it (use default value)

Additional Information

http://php.net/is_numeric

Linked with: 08474: Unable to advance on survey when any numeric field answer starts with 0
Because:
(string)(int)("0x1A")=0
(string)(int)("0b11111111")=0
string)(int)("1e10")=1
(string)(int)("009")=9

TagsNo tags attached.
Attached Files
Bug heat2
Complete LimeSurvey version number (& build)131220
I will donate to the project if issue is resolvedNo
Browsernot relevant (i think)
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP VersionPHP Version 5.3

Relationships

related to 08474 closedDenisChenu Unable to advance on survey when any numeric field answer starts with 0 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2013-12-20 10:36

developer   ~27678

Last edited: 2013-12-20 10:38

I can take it, but i really don't know what is the needed behaviour.

For numeric question type : javascript remove x, b and e . (LEM_fixnum)

Issue History

Date Modified Username Field Change
2013-12-20 09:59 DenisChenu New Issue
2013-12-20 09:59 DenisChenu File Added: limesurvey_survey_299838.lss
2013-12-20 09:59 DenisChenu Relationship added related to 08474
2013-12-20 10:15 DenisChenu Additional Information Updated
2013-12-20 10:36 DenisChenu Note Added: 27678
2013-12-20 10:38 DenisChenu Note Edited: 27678
2013-12-20 13:05 DenisChenu Status new => closed
2013-12-20 13:05 DenisChenu Assigned To => DenisChenu
2013-12-20 13:05 DenisChenu Resolution open => no change required