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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 18:01:36 2024 UTC