ID: 26402 Updated by: [EMAIL PROTECTED] Reported By: al at forest dot akadem dot ru -Status: Open +Status: Closed Bug Type: Documentation problem -Operating System: All +Operating System: Any PHP Version: 4.3.3 New Comment:
This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2003-11-25 07:27:27] al at forest dot akadem dot ru Description: ------------ In chapter 13 "Classes and objects" there is an example of non-valid and valid initializers: <?php /* None of these will work in PHP 4. */ class Cart { var $todays_date = date("Y-m-d"); var $name = $firstname; var $owner = 'Fred ' . 'Jones'; var $items = array("VCR", "TV"); } ... Actually, the initializer of $items varaible works at least in PHP 4.3.3. It may also work in previous versions as I haven't found any news in ChangeLog related to it. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26402&edit=1