Fix $needsOp in PHP-1065 test