Re: Question about broken OOP stuff

From: Date: Fri, 19 May 2000 14:20:37 +0000
Subject: Re: Question about broken OOP stuff
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-18956@lists.php.net to get a copy of this message
Dear, James McCann, If you have trouble in the problem yet, please refer this document, it is not for version 4.0 but i had same trouble like you, and i changed whole things... ---------------------------------------------------------------------------- --------------- Note: A limitation of PHP 3.0a1 is that while objects can reside inside arrays, their properties cannot be directly referenced inside the arrays. For example, you can do: $a[0] = $obj; But you cannot reference to $a[0]'s properties using: $a[0]->... This will be implemented at a later time. http://www.php.net/changes.php3 ---------------------------------------------------------------------------- ---------------- Sincerely, Lina Song ""James McCann"" <james@votehere.net> wrote in message news:000c01bfbf7a$35679780$310a0a0a@vhcorp.com... > Hello, I am using PHP at work and have run into several > difficulties using the OO features of PHP. I ended up > having to use a number of irritating workarounds that > will make the code harder to maintain. > > Specifically: > $obj[0]->get_next()->display(); > Doesn't work > > Also variable interpolation doesn't seem to work right: > # OK > print $obj[0]->string . "<br>\n"; > # OK > printf("%s<br>\n", $obj[0]->string); > # Broken > printf("$obj[0]->string<br>\n"); > > Also: > # Broken > $obj[0]->iarray[0] = 13; > $obj[0]->display(); > > Other than the problems w/ object referencing I find that > PHP fits the bill for our project quite nicely, & I would > like to continue to use it, but I don't think it will be > possible to use it if OO stuff is broken. Do you have any > idea when these might be addressed? > > Thanks, > James > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#18956) next »