From:             [EMAIL PROTECTED]
Operating system: Linux/Debian(Woody)
PHP version:      4.0.4pl1
PHP Bug Type:     Class/Object related
Bug description:  obj->method()->method2() doesn't work!!

You cannot do the following:


Mini example:
class Foo{
 var $obj;
 setObj( &$obj ) {
   $this->obj =& $obj;

 &getObj() {
   return $this->obj;

 hello() {
   print "hi\n";

$a = new Foo;
$b = new Foo;
$b->setObj( $a );

// Doesn't work

In fact, this doesn't work either:
function foob() {
  global $a;
  return $a;


In addition, anything that hands objects back doesn't work
right.  You can't chain certain things, like new commands.

All in all, the objects are rather inflexable.

Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to