function isExtension() { $roleInfo = PEAR_Installer_Role_Common::getInfo('PEAR_Installer_Role_' . ucfirst(str_replace('pear_installer_role_', '', strtolower(get_class($this))))); if (PEAR::isError($roleInfo)) { return $roleInfo; } return $roleInfo['phpextension']; }
function isExtension() { $role = $this->getRoleFromClass(); $info = PEAR_Installer_Role_Common::getInfo('PEAR_Installer_Role_' . $role); if (PEAR::isError($info)) { return $info; } return $info['phpextension']; }