cvs: pear /File_DNS DNS.php

From: Date: Fri, 23 Feb 2007 21:02:19 +0000
Subject: cvs: pear /File_DNS DNS.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-44852@lists.php.net to get a copy of this message
bate Fri Feb 23 21:02:19 2007 UTC Modified files: /pear/File_DNS DNS.php Log: fixed parsing error, missing ":" on switch construct in line 671 http://cvs.php.net/viewvc.cgi/pear/File_DNS/DNS.php?r1=1.2&r2=1.3&diff_format=u Index: pear/File_DNS/DNS.php diff -u pear/File_DNS/DNS.php:1.2 pear/File_DNS/DNS.php:1.3 --- pear/File_DNS/DNS.php:1.2 Sun Mar 27 22:34:09 2005 +++ pear/File_DNS/DNS.php Fri Feb 23 21:02:19 2007 @@ -21,7 +21,7 @@ * @author Cipriano Groenendal <cipri@php.net> * @copyright 2004-2005 Cipriano Groenendal <cipri@php.net> * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: DNS.php,v 1.2 2005/03/27 22:34:09 cipri Exp $ + * @version CVS: $Id: DNS.php,v 1.3 2007/02/23 21:02:19 bate Exp $ * @link http://pear.php.net/package/File_DNS */ @@ -498,7 +498,7 @@ break 2; case 'TXT': - $record['data'] .= ' ' . $item; + $record['data'] .= ' ' . $item; break; default: @@ -668,7 +668,7 @@ case 'NS': case 'CNAME': case 'PTR': - case 'TXT' + case 'TXT': default: $zone[] = implode("\t", $record); break; @@ -715,17 +715,17 @@ if ($migrate) { $search = '/^(.*)(' . preg_quote($oldDomain) . ')(\.)$/'; $replace = '$1' . $domain . '$3'; - $this->_SOA['name'] = preg_replace($search, $replace, + $this->_SOA['name'] = preg_replace($search, $replace, $this->_SOA['name'] ); - $this->_SOA['origin'] = preg_replace($search, $replace, + $this->_SOA['origin'] = preg_replace($search, $replace, $this->_SOA['origin']); - $this->_SOA['person'] = preg_replace($search, $replace, + $this->_SOA['person'] = preg_replace($search, $replace, $this->_SOA['person']); foreach ($this->_records as $key => $record) { - $this->_records[$key]['name'] = - preg_replace($search, $replace, + $this->_records[$key]['name'] = + preg_replace($search, $replace, $this->_records[$key]['name']); - $this->_records[$key]['data'] = + $this->_records[$key]['data'] = preg_replace($search, $replace, $this->_records[$key]['data']); } @@ -769,13 +769,13 @@ return PEAR::raiseError('Unable to set SOA value.', FILE_DNS_UPDATE_SOA_FAILED); } - $validKeys = array('name', 'ttl', 'class', 'origin', 'person', + $validKeys = array('name', 'ttl', 'class', 'origin', 'person', 'serial', 'refresh', 'retry', 'expire', 'minimum'); foreach ($values as $key => $value) { if (array_search($key, $validKeys) === false) { return PEAR::raiseError('Unable to set SOA value.' . $key . ' not recognized', - FILE_DNS_UPDATE_SOA_FAILED, + FILE_DNS_UPDATE_SOA_FAILED, NULL, NULL, $key); } @@ -841,7 +841,7 @@ if ( ( (NULL == $name) - || + || (0 == strcasecmp($name, $record['name']) ) || (0 == strcasecmp("$name.{$this->_domain}.", $record['name']) ) @@ -849,7 +849,7 @@ && ( (NULL == $type) - || + || (0 == strcasecmp($type, $record['type']) ) ) && @@ -871,7 +871,7 @@ /** * sets the name of a specific, or not so specific, record. * - * @param string $new The new name for this record. If needed, the + * @param string $new The new name for this record. If needed, the * current domainname will be automaticly appended. * @param string $name The name of the record to edit. (NULL for all) * @param string $type The type of the record to edit. (NULL for all) @@ -895,7 +895,7 @@ if ( ( (NULL == $name) - || + || (0 == strcasecmp($name, $record['name'])) || (0 == strcasecmp("$name.{$this->_domain}.", $record['name']))

« previous php.pear.cvs (#44852) next »