<?php
 require_once 'PEAR/Task/Common.php'; class PEAR_Task_Unixeol extends PEAR_Task_Common { var $type = 'simple'; var $phase = PEAR_TASK_PACKAGE; var $_replacements; function validateXml($pkg, $xml, $config, $fileXml) { if ($xml != '') { return array(PEAR_TASK_ERROR_INVALID, 'no attributes allowed'); } return true; } function init($xml, $attribs) { } function startSession($pkg, $contents, $dest) { $this->logger->log(3, "replacing all line endings with \\n in $dest"); return preg_replace("/\r\n|\n\r|\r|\n/", "\n", $contents); } } ?>