#26493 [Opn->Csd]: documentation example causes error
| From: | didou@php.net | Date: | Tue, 02 Dec 2003 09:20:47 +0000 |
| Subject: | #26493 [Opn->Csd]: documentation example causes error | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969357148@lists.php.net to get a copy of this message | ||
ID: 26493
Updated by: didou@php.net
Reported By: patterson at computer dot org
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: RH Linux 9.0
PHP Version: 5.0.0b2 (beta2)
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
The problem was on http://www.php.net/zend-engine-2.php
Previous Comments:
------------------------------------------------------------------------
[2003-12-01 15:19:27] patterson at computer dot org
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 this bug report at http://bugs.php.net/?id=26493&edit=1