php5 methode + num parameters

From: Date: Mon, 07 Jul 2003 16:58:25 +0000
Subject: php5 methode + num parameters
Groups: php.general 
Request: Send a blank email to php-general+get-154206@lists.php.net to get a copy of this message
Hi i have the fallowing code (simplified) class FormElement { private $element_id = null; private $element_name = null; private $element_type = null; private $element_style = null; private $element_string = null; public function FormElement($properties) { $this->SetStyle($properties["default_style"],$properties["error_style"]); } private function SetStyle($element_style) { $this->element_style = $element_style; } } Avisouly i pass it 2 parameters and it is expecting only 1. Usually PHP Bugs when this kind of thing happen right ? (php 4 anyways) But not in PHP5 it seems. Anybody else has experienced this problem ? Thanks -- Yann Larrivee <yannl@istop.com>

« previous php.general (#154206) next »