Bug #12750: No echo call in example code
| From: | bwise at au dot adp dot com | Date: | Wed, 15 Aug 2001 02:34:31 +0000 |
| Subject: | Bug #12750: No echo call in example code | ||
| Groups: | php.dev php.doc | ||
| Request: | Send a blank email to php-dev+get-63214@lists.php.net to get a copy of this message | ||
From: bwise@au.adp.com
Operating system: N/A
PHP version: 4.0.6
PHP Bug Type: Documentation problem
Bug description: No echo call in example code
On the manual page:
http://www.php.net/manual/en/language.oop.constructor.php
The following code lacks an "echo" in function C (shown in square
brackets).
-------
class A {
function A() {
echo "I am the constructor of A.<br>\n";
}
}
class B extends A {
function C() {
[should have echo here?] "I am a regular function.<br>\n";
}
}
// no constructor is being called in PHP 3.
$b = new B;
--
Edit bug report at: http://bugs.php.net/?id=12750&edit=1