Re: Interface and abstract method

From: Date: Tue, 18 May 2010 15:55:26 +0000
Subject: Re: Interface and abstract method
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-48321@lists.php.net to get a copy of this message
Normally, PHP won't allow access types for interface methods, but the reflection for SPL is defined inside the C code: static const zend_function_entry spl_funcs_OuterIterator[] = { SPL_ABSTRACT_ME(OuterIterator, getInnerIterator, arginfo_recursive_it_void) {NULL, NULL, NULL} }; IMO the SPL_ME should be used instead, but I wouldn't be bothered about it ;-) On Tue, May 18, 2010 at 11:12 PM, mathieu.suen <mathieu.suen@easyflirt.com> wrote: > Hi, > > In the SPL there is some interface that have abstract method: > > *Countable* { > /* Methods */ > abstract public int count > <http://www.php.net/manual/en/countable.count.php> > ( void ) > } > > While some interface have "none abstract" method. > > *OuterIterator* extends Iterator > <http://www.php.net/manual/en/class.iterator.php> { > /* Methods */ > public Iterator getInnerIterator > > <http://www.php.net/manual/en/outeriterator.getchildren.php> ( > void ) > ..snip.. > } > > Does  "abstract" keyword have a semantic? > > Thanks > > --Mathieu suen > > > > -- -- Tjerk

« previous php.internals (#48321) next »