I have a subclass that calls the constructor of its parent class within its own constructor. However, this causes the PHP4 interepreter (running on windows in CGI mode) to CRASH! Here's the code of the subclass:
<?PHP
include "HtmlElement.obj";
class Table extends HtmlElement
{
//public member variables
//private member variables
var $table_rows;
var $num_rows = 0;
//public interface functions
//constructor
//$table_attributes is an associative array in which all
function Table($table_attributes)
{
//call constructor of superclass
//CRASHES WITH THIS FUNCTION CALL
HtmlElement("TABLE", $table_attributes);
}
Can anyone offer some insight into this?
Thanks SO much,
Sonny