Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 13th, 2006, 03:18 AM
Registered User
 
Join Date: Jun 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Professional PHP5 p25 Interface Problem

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible Errors in Professional PHP5 zimdawg79 Pro PHP 0 July 27th, 2006 06:39 AM
GenericObject class from Professional PHP5 codecowboy Pro PHP 0 December 14th, 2005 06:31 PM
Professional PHP5 Comment kcraft BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 1 February 20th, 2005 10:19 PM
Professional PHP5 Ch. 15 Custom Session Handler superrobotpope Pro PHP 4 February 4th, 2005 08:32 PM
Problem MSSQL2000 - PHP5 ez PHP Databases 1 August 19th, 2004 05:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.