Doc #69573 [Opn->Nab]: Classes and Objects > Properties

From: Date: Tue, 05 May 2015 14:01:21 +0000
Subject: Doc #69573 [Opn->Nab]: Classes and Objects > Properties
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12296@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69573&edit=1 ID: 69573 Updated by: cmb@php.net Reported by: ramoaidas at gmail dot com Summary: Classes and Objects > Properties -Status: Open +Status: Not a bug Type: Documentation Problem Package: Documentation problem Operating System: Windows 8/ Ubuntu PHP Version: 5.5.24 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: The documentation already states: | This declaration may include an initialization, but this | initialization must be a constant value [...] So it appears this is not a bug. Previous Comments: ------------------------------------------------------------------------ [2015-05-05 12:26:00] ramoaidas at gmail dot com Description: ------------ --- From manual page: http://www.php.net/language.oop5.properties --- Dont work properties with operators . and + Test script: --------------- public $var1 = 'hello ' . 'world'; public $var3 = 1+2; ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69573&edit=1

« previous php.doc.bugs (#12296) next »