Update of /cvsroot/phpxd/phpXD/include
In directory usw-pr-cvs1:/tmp/cvs-serv22113/include
Modified Files:
node.php nodelist.php
Log Message:
Fixed some warnings, i.e. some deprecated calls which cause a warning if
allow_call_time_pass_reference=off.
Index: node.php
===================================================================
RCS file: /cvsroot/phpxd/phpXD/include/node.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** node.php 2001/11/27 20:58:25 1.5
--- node.php 2001/12/01 23:49:29 1.6
***************
*** 400,404 ****
if (isset($newChild->parentNode)) {
! $result = $newChild->parentNode->removeChild(&$newChild);
}
--- 400,404 ----
if (isset($newChild->parentNode)) {
! $result = $newChild->parentNode->removeChild($newChild);
}
***************
*** 535,539 ****
if (isset($newChild->parentNode)) {
! $result = $newChild->parentNode->removeChild(&$newChild);
}
--- 535,539 ----
if (isset($newChild->parentNode)) {
! $result = $newChild->parentNode->removeChild($newChild);
}
***************
*** 557,561 ****
$newChild->nextSibling = &$child;
$child->previousSibling = &$newChild;
! $this->childNodes->insertNode(&$newChild, $i);
return $newChild;
}
--- 557,561 ----
$newChild->nextSibling = &$child;
$child->previousSibling = &$newChild;
! $this->childNodes->insertNode($newChild, $i);
return $newChild;
}
***************
*** 566,570 ****
$this->lastChild = &$this->firstChild;
$this->childNodes = new NodeList();
! $this->childNodes->insertNode(&$newChild);
return $newChild;
}
--- 566,570 ----
$this->lastChild = &$this->firstChild;
$this->childNodes = new NodeList();
! $this->childNodes->insertNode($newChild);
return $newChild;
}
***************
*** 574,578 ****
$newChild->previousSibling = &$this->lastChild;
$this->lastChild = &$newChild;
! $this->childNodes->insertNode(&$newChild);
return $newChild;
}
--- 574,578 ----
$newChild->previousSibling = &$this->lastChild;
$this->lastChild = &$newChild;
! $this->childNodes->insertNode($newChild);
return $newChild;
}
***************
*** 648,652 ****
if (isset($newChild->parentNode)) {
! $result = $newChild->parentNode->removeChild(&$newChild);
}
--- 648,652 ----
if (isset($newChild->parentNode)) {
! $result = $newChild->parentNode->removeChild($newChild);
}
***************
*** 673,677 ****
$this->lastChild = &$newChild;
}
! $this->childNodes->replaceNode(&$newChild, $i);
return $oldChild;
}
--- 673,677 ----
$this->lastChild = &$newChild;
}
! $this->childNodes->replaceNode($newChild, $i);
return $oldChild;
}
***************
*** 854,858 ****
}
! if ($this->nodeType == ATTR_NODE) {
if (($child->nodeType != ENTITY_REFERENCE_NODE) &&
($child->nodeType != TEXT_NODE)) {
--- 854,858 ----
}
! if ($this->nodeType == ATTRIBUTE_NODE) {
if (($child->nodeType != ENTITY_REFERENCE_NODE) &&
($child->nodeType != TEXT_NODE)) {
***************
*** 871,875 ****
if (($this->nodeType == DOCUMENT_FRAGMENT_NODE) ||
! ($this->nodeType == ENTITY_REFERNCE_NODE) ||
($this->nodeType == ENTITY_NODE) ||
($this->nodeType == ELEMENT_NODE)) {
--- 871,875 ----
if (($this->nodeType == DOCUMENT_FRAGMENT_NODE) ||
! ($this->nodeType == ENTITY_REFERENCE_NODE) ||
($this->nodeType == ENTITY_NODE) ||
($this->nodeType == ELEMENT_NODE)) {
Index: nodelist.php
===================================================================
RCS file: /cvsroot/phpxd/phpXD/include/nodelist.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** nodelist.php 2001/11/27 20:32:34 1.2
--- nodelist.php 2001/12/01 23:49:29 1.3
***************
*** 30,34 ****
* @type int
*/
! var $length;
/**
--- 30,34 ----
* @type int
*/
! var $length = 0;
/**
|