From 0be5511d1f3759d486a6ba726159cd37bddda426 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Jan 2006 00:00:28 +0000 Subject: [PATCH] s/count/sizeof/g --- functions.php | 2 +- kernel.php | 2 +- template.php | 4 ++-- xml.php | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/functions.php b/functions.php index f242dbf..19eb6d0 100644 --- a/functions.php +++ b/functions.php @@ -449,7 +449,7 @@ class Functions $string[ mt_rand() ] = chr(rand(97, 122)); } - if ($length != count($string)) + if ($length != sizeof($string)) { return $this->rand($length); } diff --git a/kernel.php b/kernel.php index 3776162..2d317a6 100644 --- a/kernel.php +++ b/kernel.php @@ -472,7 +472,7 @@ class ISSO } } - if (count($missing) > 0) + if (sizeof($missing) > 0) { $error = ($called ? 'The following fields are not set:' : 'You are missing required ISSO fields. Please make sure you have set:'); $error .= "\n"; diff --git a/template.php b/template.php index ab9b0f4..429259d 100644 --- a/template.php +++ b/template.php @@ -504,7 +504,7 @@ class Template // locate else tags else if (substr($template, $i, strlen($tag_else)) == $tag_else) { - if (count($stack) == 0 AND !isset($tag_full['else'])) + if (sizeof($stack) == 0 AND !isset($tag_full['else'])) { $tag_full['else'] = $i; } @@ -512,7 +512,7 @@ class Template // do we have an end tag? else if (substr($template, $i, strlen($tag_end)) == $tag_end) { - if (count($stack) != 0) + if (sizeof($stack) != 0) { array_pop($stack); continue; diff --git a/xml.php b/xml.php index 65d153e..955a4a8 100644 --- a/xml.php +++ b/xml.php @@ -288,7 +288,7 @@ class XML function attach_node(&$node) { // create a new node - $this->stack[ count($this->stack) ] =& $node; + $this->stack[ sizeof($this->stack) ] =& $node; // new attributes to work with $this->attribs =& $node; @@ -303,10 +303,10 @@ class XML function detach_node() { // drop the newest node - unset($this->stack[ count($this->stack) - 1 ]); + unset($this->stack[ sizeof($this->stack) - 1 ]); // assign the attributes to the next newest node - $this->attribs =& $this->stack[ count($this->stack) - 1 ]; + $this->attribs =& $this->stack[ sizeof($this->stack) - 1 ]; } // ################################################################### -- 2.22.5