PLEASE REMOVE MY NAME FROM THE MAILING LIST.
--- "patterson at computer dot org" <[EMAIL PROTECTED]> wrote:
From: patterson at computer dot org
Operating system: RH Linux 9.0
PHP version: 5.0.0b2 (beta2)
PHP Bug Type: Documentation problem
Bug description: documentation example causes error
Description:
------------
I tried to execute the example for interfaces in PHP 5.0.0b (beta 2) and
got this result:
Fatal error: Cannot redeclare class exception in
/home/billy/public_html/php5/interface.php on line 6
When I changed the word "Exception" to "Exception1" the code ran without a
problem.
Probably the example needs to be changed, but I am not sure.
Bill Patterson
Reproduce code:
---------------
<?php
interface Throwable {
public function getMessage();
}
class Exception implements Throwable {
public function getMessage() {
// ...
}
}
?>
Expected result:
----------------
expect a blank page
Actual result:
--------------
Fatal error: Cannot redeclare class exception in
/home/billy/public_html/php5/interface.php on line 6
--
Edit bug report at http://bugs.php.net/?id=26493&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26493&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26493&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26493&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26493&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26493&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26493&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26493&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26493&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26493&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26493&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26493&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26493&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26493&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26493&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26493&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26493&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26493&r=float
_____________________________________________________________
**********************************************************
SMS(mobile text messages) around the world,
Get 100 messages for $7.95, plus sign up now
and get 2 free tryout messages http://sms.aemail4u.com
**********************************************************