Pages/Caching
* use native functions of ReflectionProperty instead of magic numbers. GetModifiers() may return different values then expected/documented
This commit is contained in:
parent
04a14393e5
commit
583f8658d7
1 changed files with 2 additions and 2 deletions
|
|
@ -943,8 +943,8 @@ class GenericPage
|
|||
{
|
||||
try
|
||||
{
|
||||
// public, protected and an undocumented flag added to properties created on the fly..?
|
||||
if ((new ReflectionProperty($this, $key))->getModifiers() & 0x1300)
|
||||
$rp = new ReflectionProperty($this, $key);
|
||||
if ($rp && ($rp->isPublic() || $rp->isProtected()))
|
||||
if (!in_array($key, $noCache))
|
||||
$cache[$key] = $val;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue