Skip to content

initial release

Choose a tag to compare

@staabm staabm released this 07 Jan 08:31
· 508 commits to main since this release
960490c

This intial release provides following features:

  • the array shape of results can be inferred for PDOStatement and mysqli_result
    • .. when the query string can be resolved at analysis time. This is even possible for queries containing php-variables, as long as their typ is known in most cases.
    • builtin we support mysqli_query, mysqli->query, PDO->query and PDO->prepare
  • PDO->prepare knows the array shape of the returned results and therefore can return a generic PDOStatement
  • mysqli->query knows the array shape of the returned results and therefore can return a generic mysqli_result
  • SyntaxErrorInQueryMethodRule can inspect sql queries and detect syntax errors - SyntaxErrorInQueryFunctionRule can do the same for functions
    • builtin is query syntax error detection for mysqli_query, mysqli->query, PDO->query and PDO->prepare
  • mysqli_real_escape_string and mysqli->real_escape_string dynamic return type extensions
  • pdo->quote dynamic return type extension

see the unit-testsuite to get a feeling about the current featureset.

Its really early days... and this libs has a few rough edges.