php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #69573 Classes and Objects > Properties
Submitted: 2015-05-05 12:26 UTC Modified: 2015-05-05 14:01 UTC
From: ramoaidas at gmail dot com Assigned: cmb (profile)
Status: Not a bug Package: Documentation problem
PHP Version: 5.5.24 OS: Windows 8/ Ubuntu
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: ramoaidas at gmail dot com
New email:
PHP Version: OS:

 

 [2015-05-05 12:26 UTC] 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;


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-05-05 14:01 UTC] cmb@php.net
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2015-05-05 14:01 UTC] cmb@php.net
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 19:01:37 2025 UTC