Skip to content

bug; Invalid bind parameter value on "file" value #176

@antokara

Description

@antokara

I have an AQL that Binds a value to Filter an Attribute that matches the "file" value.
The problem is that the code here:
https://github.com/triAGENS/ArangoDB-PHP/blob/master/lib/triagens/ArangoDb/ValueValidator.php#L44

More specifically the part

is_callable($value)

returns true on a string containing the word "file" because it is also a php function.
please note that my bind variable has been explicitly defined as string with

$variable=strval($variable);

prior binding.

Is this intended? if not, perhaps the php gettype function
http://php.net/manual/en/function.gettype.php
could help/replace the above line? not sure why this check is being made there.

I can successfully bind and execute an AQL with the 'file' value with arangosh/http/etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions