Doctrine 1
  1. Doctrine 1
  2. DC-432

::isValidType fails when input format is different from php default format

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows XP (XAMPP Apache) & Linux

      Description

      In Validator::isValidType():
      return (string)$var == strval(floatval($var));

      floatval($var) returns only the integer part if the decimal character is anything other than ".".
      Therefore this evaluation fails.

      I've added a small function 'ParseFloat' which takes locale settings into consideration.
      There might be a better solution.

        Activity

        Hide
        Jonathan H. Wage added a comment -

        Can you provide the changes as patch?

        Show
        Jonathan H. Wage added a comment - Can you provide the changes as patch?

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Jón Ragnarsson
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: