Question about broken OOP stuff
| From: | James McCann | Date: | Tue, 16 May 2000 21:03:38 +0000 |
| Subject: | Question about broken OOP stuff | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18843@lists.php.net to get a copy of this message | ||
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