php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #12750 No echo call in example code
Submitted: 2001-08-14 22:34 UTC Modified: 2001-08-15 04:25 UTC
From: bwise at au dot adp dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.6 OS: N/A
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bwise at au dot adp dot com
New email:
PHP Version: OS:

 

 [2001-08-14 22:34 UTC] bwise at au dot adp dot com
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;

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-15 04:25 UTC] goba@php.net
You are right. Echo is added now. Thanks for the spot.

Goba
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 25 03:01:27 2024 UTC