security checks on extensions renaming - fixing #249 (PHP conn.)