From:             pablobm at gmail dot com
Operating system: Any
PHP version:      5.1.2
PHP Bug Type:     Feature/Change Request
Bug description:  Allowing member variables in interfaces

Description:
------------
Maybe it's just me, but I think member variables should be allowed in
object interfaces.

My opinion is that this makes sense in PHP because it has proper
getters/setters.

Java allows mamber variables in interfaces for example, but, in its case,
that doesn't make much sense, since (last time I checked, in 1.4) there
are no proper getter/setter methods in Java as those found in PHP5.

If I want an interface to define behaviour for a data structure that holds
information, I will have to include getMember() and setMember() methods,
not being able to use PHP5 getters/setters.


-- 
Edit bug report at http://bugs.php.net/?id=36066&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=36066&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=36066&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=36066&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=36066&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=36066&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=36066&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=36066&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=36066&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=36066&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=36066&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=36066&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=36066&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=36066&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36066&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=36066&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=36066&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=36066&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36066&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=36066&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=36066&r=mysqlcfg

Reply via email to