php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #48797 Package {}
Submitted: 2009-07-04 12:07 UTC Modified: 2009-07-04 12:29 UTC
From: substar7 at yahoo dot com Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 5.3.0 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
48 + 30 = ?
Subscribe to this entry?

 
 [2009-07-04 12:07 UTC] substar7 at yahoo dot com
Description:
------------
Hi,

I have a feature request for PHP classes. When I built a large system with many classes, I have to instantiate each one of them.

As a result I came to think that there could be a new procedure for classes called "packages"

for example; 



package MyPackage {


class Foo {

function Bar {
  
       } // end function Bar

   } // end class Foo



class AnotherFoo {

function AnotherBar {
  
       } // end function AnotherBar

   } // end class AnotherFoo


} // end Package


Basically packages capsulate classes just like classes capsulate functions.

Thanks for your time

Dogu Can Otag



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-04 12:29 UTC] derick@php.net
PHP 5.3 has namespaces: http://uk3.php.net/namespace
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 06:01:34 2024 UTC