Feature Request - abtract + throws

php.internals

Attila Strauss

22 years ago
Hi, are there any plans about implementing the ability to provide throws for abstract classes? Example: ---s.cut--- abstract class RDBMS_Connection_Abstract { abstract public function connect() throws RDBMS_Connection_Exception; } class RDBMS_Connection extends RDBMS_Connection_Abstract { public function connect() { echo 'implementing connect() without a "throw new RDBMS_Connection_Exception" should cause a PHP FATAL ERROR.'; } } ---e.cut--- So, any plans? Thanks in Advance ... Attila
-- +------------------------------------+ | First Name..................Attila | +------------------------------------+ | Last Name..................Strauss | +------------------------------------+ | Cell Phone.......+49 172 980 43 13 | +------------------------------------+ | eMail...............attila@php.net | +------------------------------------+

Zeev Suraski

22 years ago
At 23:50 07/09/2003, Attila Strauss wrote:
>Hi, > >are there any plans about implementing the ability to provide throws for >abstract classes?
Nope, no plans. Zeev