php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #33029 Bug in translation of constructor example
Submitted: 2005-05-13 21:32 UTC Modified: 2005-05-14 19:32 UTC
From: aiv at intertop dot pl Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: aiv at intertop dot pl
New email:
PHP Version: OS:

 

 [2005-05-13 21:32 UTC] aiv at intertop dot pl
Description:
------------
http://www.php.net/manual/pl/language.oop.php
You have to change Cart() in second example to Koszyk() becouse is not working exmaple of constructor

Reproduce code:
---------------
class Koszyk
{
   var $dzisiejsza_data;
   var $nazwa;
   var $wlasciciel;
   var $artykuly;

   function Cart()
   {
       $this->dzisiejsza_data = date("Y-m-d");
       $this->nazwa = $GLOBALS['imie'];
       /* itp. . . */
   }
}

Expected result:
----------------
class Koszyk
{
   var $dzisiejsza_data;
   var $nazwa;
   var $wlasciciel;
   var $artykuly;

   function Koszyk()
   {
       $this->dzisiejsza_data = date("Y-m-d");
       $this->nazwa = $GLOBALS['imie'];
       /* itp. . . */
   }
}


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-14 17:44 UTC] goba@php.net
This is a Polish documentation problem
 [2005-05-14 19:32 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

Fixed at 2005/04/25 by leszek but the manual wasn't built since then.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Nov 19 15:00:02 2025 UTC