Function declaration
Posted: Wed Jul 30, 2003 5:56 am
Using Apache and Win32 CGI PHP 4.1.1, I wrote function declaration inside class:
class event extends item{
function eventType( $type ) {;}
After, in the same class, I have redeclared function to do something:
function eventType( $type ) {
-- functionality ---
}
Upgrading to PHP 4.3.2, I have get messagess like this:
Fatal error: cannot redeclare eventType() in ....
Is this something new in this version? Maybe the way I have declared then redeclared functions is not the usual way of coding? Please for advice.
Rgds,
RaBadu
class event extends item{
function eventType( $type ) {;}
After, in the same class, I have redeclared function to do something:
function eventType( $type ) {
-- functionality ---
}
Upgrading to PHP 4.3.2, I have get messagess like this:
Fatal error: cannot redeclare eventType() in ....
Is this something new in this version? Maybe the way I have declared then redeclared functions is not the usual way of coding? Please for advice.
Rgds,
RaBadu