|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-10-02 08:16 UTC] rasmus@php.net
-Status: Open
+Status: Bogus
[2010-10-02 08:16 UTC] rasmus@php.net
[2010-10-02 10:48 UTC] cataphract@php.net
[2010-10-03 06:02 UTC] czambran at csrg dot inf dot utfsm dot cl
[2010-10-03 06:05 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 19:00:01 2025 UTC |
Description: ------------ Static private attributes of a class can be directly by another non-friendly resource or file. Test script: --------------- If I define a class with static methods, as the following: class Device{ static private $id = 15; } For example, if the class Device is stored into device.class.php and I have another file called main.php and the implementation of main.php is the following: <?php include("device.class.php"); echo "The device's id is: ".Device::$id; ?> Expected result: ---------------- The device's id is 15. Actual result: -------------- Not relevant results yet.