I'm trying to use OpenTBS within Laravel, which relies on magic __get methods to return object attributes.I prefer not to change my __get to &__get because then you lose any illusion of the object protecting its properties.
__get works fine for me until line 2808 of tbs_class.php:
$data = &$Src->CurrRec->$col;
|
which throws an "indirect modification of overloaded property has no effect" error. Removing the ampersand from this line, or prefacing it with the error suppressor @ both solve my problem, but I wonder if the & is really needed?
Thanks for reading.