Subject: Professional PHP5 p25 Interface Problem
Posted By: mercury7 Post Date: 1/13/2006 2:18:50 AM
Can anyone explain why when using the code

interface Openable {
  abstract function open();
  abstract function close();
}

results in a

Fatal error: Access type for interface method Openable::open() must be omitted in e:\Apache\htdocs\PHP5\06 interfaces\interface.Opener.php on line 15

unless I comment out the 2 abstract functions, in which case the whole example code works perfectly.

TIA

Mark

Go to topic 38677

Return to index page 396
Return to index page 395
Return to index page 394
Return to index page 393
Return to index page 392
Return to index page 391
Return to index page 390
Return to index page 389
Return to index page 388
Return to index page 387