You cannot add extensions to Xampp. Either it is already included (what i dont know), or it is not included. You cannot add it, because you have to recompile the whole thing. As far as it looks, readline is not part of Xampp.
If you need readline, you should not use Xampp, instead use the Packages from Ubuntu (Apache, MySQL, PHP etc.).