7

How the fuck does php type juggleling evaluate an variable as an integer on my system and passing all tests.
Then on the server as string, failing a typesafe comparison for authentication.

Comments
  • 0
  • 2
    sounds like different php versions or previous variables that lead up to this, having other data on the server, therefore this one being casted to string?
  • 2
    That’s why you should always use type hinting...
  • 3
    The answer is the fifth word in your rant.
  • 1
    @JoshBent Yep, php 7.2 on the server and 7.1 locally. but on the other hand, the database on the server is mssql.

    So it could also be the driver?
  • 0
    @raldo94 MSSQL ... I feel bad for you.

    Looking at how Excel also fucks up every kind of type parsing, I don't think Microsoft did better there.
  • 1
    @Meta ye, php and mssql on Linux isn't an great fit, but it has got a lot better in the last year, the devs at ms has been working hard on their new driver https://github.com/Microsoft/...
  • 1
    @raldo94 mssql..making this fcking pdo odbc driver in cpanel almost killed me, piece of shit 🔪🔪
Add Comment