#1528: Unsigned validator does not support float values and validates strings
-----------------------------------+----------------------------------------
Reporter: hwestphal | Owner: jwage
Type: defect | Status: new
Priority: minor | Milestone:
Component: Validators | Version: 1.0.0
Keywords: unsigned validator | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 1
-----------------------------------+----------------------------------------
the current unsigned validator only supports integer values, if you try to
validate (float) 5.9 it will return false. the inline documentation says
'''checks if given value is a valid unsigned integer''', so this is not
really the bug.
the problem is that if you try to validate "five" it would return true ;-)
and because of the general name of this validator one would expect that it
supports floats as well :-)
i wrote a patch which supports both int and float values and which does
not return true if the value is "five"
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1528>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---