php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #10910 var $foo = madness
Submitted: 2001-05-16 17:07 UTC Modified: 2001-05-16 17:27 UTC
From: jjones at net-conex dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 Latest CVS (2001-05-16) OS: Linux
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jjones at net-conex dot com
New email:
PHP Version: OS:

 

 [2001-05-16 17:07 UTC] jjones at net-conex dot com
class foo {

  var $bar = "Some string";

  var $baz = new some_other_class_i_defined;

}



I would like for that to work, please.  ;)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-16 17:27 UTC] hholzgra@php.net
no way, initializer values have to be constants

use a constructor to initialize instead
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 28 10:01:29 2024 UTC