1--TEST-- 2Reflect attributes on different kinds of internal symbols 3--FILE-- 4<?php 5 6$rf = new ReflectionFunction('unserialize'); 7var_dump($rf->getAttributes()); 8 9$rc = new ReflectionClass('DateTime'); 10var_dump($rc->getAttributes()); 11 12$rm = $rc->getMethod('__construct'); 13var_dump($rm->getAttributes()); 14 15$rcc = $rc->getReflectionConstant('ATOM'); 16var_dump($rcc->getAttributes()); 17 18$rp = new ReflectionProperty('Exception', 'message'); 19var_dump($rp->getAttributes()); 20 21?> 22--EXPECT-- 23array(0) { 24} 25array(0) { 26} 27array(0) { 28} 29array(0) { 30} 31array(0) { 32} 33