Re: [PHP-DEV] Question about broken OOP stuff From: Lina Song (ruen <email protected>)
Date: 05/19/00

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 <email protected>> wrote in message
news:000c01bfbf7a$35679780$310a0a0a <email protected>
> 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 <email protected>
> For additional commands, e-mail: php-dev-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>