Bugfix for PHP < 5.4 incompatibility

In phpfdb_relation::createCompareFunction I used a reference to $this in
an anonymous function, which is supported only from PHP 5.4. So, I
assign $this to $obj, and use $obj in the anonymous function