ReflectionClass::getConstants()

Discussion about the open-source Phalanger [?] project.

ReflectionClass::getConstants()

Postby pospa » January 7th, 2013, 10:03 am

When I call:
Code: Select all
$r = new ReflectionClass($this);
$r->getConstants();

on any object, it will end up like
Error: Call to undefined method: ReflectionClass::getConstants() in xxxxx

I can see, that there is getConstants method defined in PHP.Library.SPL.ReflectionClass, but in runtime it seem to be inaccessible.
Jan Pospíšil
-<{Pospa}>-
User avatar
pospa
 
Posts: 2
Joined: November 21st, 2012, 12:35 pm

Re: ReflectionClass::getConstants()

Postby Jakub Misek » January 7th, 2013, 10:08 am

I see, there is missing
Code: Select all
[ImplementsMethod]
attribute above the
Code: Select all
public virtual object getConstants(ScriptContext context)
line.

Will be fixed in public repo.

Thanks!
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 2 guests

cron

User Control Panel

Login

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 151 on December 6th, 2020, 7:46 am

Users browsing this forum: No registered users and 2 guests