#33029 [NEW]: Bug in translation of constructor example

From: Date: Fri, 13 May 2005 19:32:07 +0000
Subject: #33029 [NEW]: Bug in translation of constructor example
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-28138@lists.php.net to get a copy of this message
From: aiv at intertop dot pl Operating system: N/A PHP version: Irrelevant PHP Bug Type: Website problem Bug description: Bug in translation of constructor example 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. . . */ } } -- Edit bug report at http://bugs.php.net/?id=33029&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33029&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33029&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33029&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33029&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33029&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33029&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33029&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33029&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33029&r=support Expected behavior: http://bugs.php.net/fix.php?id=33029&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33029&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33029&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33029&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33029&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33029&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33029&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33029&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33029&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33029&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33029&r=mysqlcfg

« previous php.mirrors (#28138) next »