Problem returning private member array variables

From: Date: Thu, 20 Oct 2005 11:44:57 +0000
Subject: Problem returning private member array variables
Groups: php.general 
Request: Send a blank email to php-general+get-224360@lists.php.net to get a copy of this message
Hi to all, I was wondering if someone out there has had the same problem as I have; fetching from an object a private array variable through a get method. And instead of getting a copy of the array, you get access to the original array, being able to access the object's internal data! I have tried my test script on a Linux 2.6.5 running PHP 5.0.4 and on a FreeBSD 5.4 running PHP 5.0.5. Bellow is the test script: <?php class Atom { } ?>

« previous php.general (#224360) next »