Date: 05/19/00
- Next message: Hartmut Holzgraefe: "[PHP-DEV] Manual annotations / Bug Database"
- Previous message: Bug Database: "[PHP-DEV] Bug #1515 Updated: php as a scripting language"
- In reply to: James McCann: "[PHP-DEV] Question about broken OOP stuff"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Hartmut Holzgraefe: "[PHP-DEV] Manual annotations / Bug Database"
- Previous message: Bug Database: "[PHP-DEV] Bug #1515 Updated: php as a scripting language"
- In reply to: James McCann: "[PHP-DEV] Question about broken OOP stuff"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

