[PHP] MySQL BigInt in ResultSet given as String

In fact at the top level I use record_macros, but I dig a little and come into this function above, so at the end I don’t know if it should be processed by record_macros or upper in this function.
I use BigInt for an amount field, and somewhere I do a comparaison so it results in false because it comapres a haxe Float with a String…