-
Notifications
You must be signed in to change notification settings - Fork 48
Closed
Description
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
Labels
No labels