Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-582

Perl language bindings do not properly identify integers from strings when encoding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-0.7
    • proton-0.8
    • perl-binding
    • None

    Description

      Rafi found the code:

      sub isnum ($)

      { return 0 if $_[0] eq ''; $_[0] ^ $_[0] ? 0 : 1 }

      which can differentiate strings from integers. An additional piece can check for a . in a numeric value to differentiate integers from floating point values.

      Attachments

        Activity

          People

            mcpierce Darryl Pierce
            mcpierce Darryl Pierce
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: