5.6 no longer silently accepts invalid iv sizes, hence the warning. See the changelog here:
http://php.net/manual/en/function.mcrypt-encrypt.php
It'll still work fine, but not ideal with the warning.
My line numbers are different but I assume it's this code:
$ivSize =...