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
|
try
|
||||||
{
|
{
|
||||||
// public, protected and an undocumented flag added to properties created on the fly..?
|
$rp = new ReflectionProperty($this, $key);
|
||||||
if ((new ReflectionProperty($this, $key))->getModifiers() & 0x1300)
|
if ($rp && ($rp->isPublic() || $rp->isProtected()))
|
||||||
if (!in_array($key, $noCache))
|
if (!in_array($key, $noCache))
|
||||||
$cache[$key] = $val;
|
$cache[$key] = $val;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user