<?php
Class A
{
var $prop1;
var $prop2;
}
Class B extends A
{
var $prop2;
var $prop3;
}
$o = 'B';
$refClass = new ReflectionClass($o);
var_dump($refClass->getProperties(ReflectionProperty::IS_PUBLIC));
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/BN9gZ on line 6
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/BN9gZ on line 7
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/BN9gZ on line 14
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/BN9gZ on line 15
Fatal error: Undefined class constant 'IS_PUBLIC' in /in/BN9gZ on line 21
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ')', expecting '(' in /in/BN9gZ on line 21
Process exited with code 255.