mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Pages/Caching
* use native functions of ReflectionProperty instead of magic numbers. GetModifiers() may return different values then expected/documented
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user