Date: 08/15/01
- Next message: stefan.priebsch <email protected>: "[PHP-DOC] Bug #12759: What's new"
- Previous message: Hojtsy Gabor: "[PHP-DOC] cvs: phpdoc /en/language oop.xml"
- In reply to: bwise <email protected>: "[PHP-DOC] Bug #12750: No echo call in example code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 12750
Updated by: goba
Reported By: bwise <email protected>
Old Status: Open
Status: Closed
Bug Type: Documentation problem
Operating System: N/A
PHP Version: 4.0.6
New Comment:
You are right. Echo is added now. Thanks for the spot.
Goba
Previous Comments:
------------------------------------------------------------------------
[2001-08-14 22:34:31] bwise <email protected>
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 this bug report at http://bugs.php.net/?id=12750&edit=1
- Next message: stefan.priebsch <email protected>: "[PHP-DOC] Bug #12759: What's new"
- Previous message: Hojtsy Gabor: "[PHP-DOC] cvs: phpdoc /en/language oop.xml"
- In reply to: bwise <email protected>: "[PHP-DOC] Bug #12750: No echo call in example code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

