}
/* }}} */
-/* {{{ proto public static mixed Reflection::export(Reflector r [, bool return])
+/* {{{ proto public static mixed Reflection::export(Reflector r [, bool return]) U
Exports a reflection object. Returns the output if TRUE is specified for return, printing it otherwise. */
ZEND_METHOD(reflection, export)
{
}
/* }}} */
-/* {{{ proto public static array Reflection::getModifierNames(int modifiers)
+/* {{{ proto public static array Reflection::getModifierNames(int modifiers) U
Returns an array of modifier names */
ZEND_METHOD(reflection, getModifierNames)
{
}
/* }}} */
-/* {{{ proto public static mixed ReflectionFunction::export(string name [, bool return])
+/* {{{ proto public static mixed ReflectionFunction::export(string name [, bool return]) U
Exports a reflection object. Returns the output if TRUE is specified for return, printing it otherwise. */
ZEND_METHOD(reflection_function, export)
{
}
/* }}} */
-/* {{{ proto public void ReflectionFunction::__construct(string name)
+/* {{{ proto public void ReflectionFunction::__construct(string name) U
Constructor. Throws an Exception in case the given function does not exist */
ZEND_METHOD(reflection_function, __construct)
{
}
/* }}} */
-/* {{{ proto public string ReflectionFunction::__toString()
+/* {{{ proto public string ReflectionFunction::__toString() U
Returns a string representation */
ZEND_METHOD(reflection_function, __toString)
{
GET_REFLECTION_OBJECT_PTR(fptr);
string_init(&str);
_function_string(&str, fptr, intern->ce, "" TSRMLS_CC);
- RETURN_RT_STRINGL(str.string, str.len - 1, ZSTR_AUTOFREE);
+ RETURN_U_STRINGL(ZEND_U_CONVERTER(UG(output_encoding_conv)), str.string, str.len - 1, ZSTR_AUTOFREE);
}
/* }}} */
-/* {{{ proto public string ReflectionFunction::getName()
+/* {{{ proto public string ReflectionFunction::getName() U
Returns this function's name */
ZEND_METHOD(reflection, function_getName)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionFunction::isInternal()
+/* {{{ proto public bool ReflectionFunction::isInternal() U
Returns whether this is an internal function */
ZEND_METHOD(reflection, function_isInternal)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionFunction::isUserDefined()
+/* {{{ proto public bool ReflectionFunction::isUserDefined() U
Returns whether this is an user-defined function */
ZEND_METHOD(reflection_function, isUserDefined)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionFunction::isDisabled()
+/* {{{ proto public bool ReflectionFunction::isDisabled() U
Returns whether this function has been disabled or not */
ZEND_METHOD(reflection_function, isDisabled)
{
}
/* }}} */
-/* {{{ proto public string ReflectionFunction::getFileName()
+/* {{{ proto public string ReflectionFunction::getFileName() U
Returns the filename of the file this function was declared in */
ZEND_METHOD(reflection_function, getFileName)
{
}
/* }}} */
-/* {{{ proto public int ReflectionFunction::getStartLine()
+/* {{{ proto public int ReflectionFunction::getStartLine() U
Returns the line this function's declaration starts at */
ZEND_METHOD(reflection_function, getStartLine)
{
}
/* }}} */
-/* {{{ proto public int ReflectionFunction::getEndLine()
+/* {{{ proto public int ReflectionFunction::getEndLine() U
Returns the line this function's declaration ends at */
ZEND_METHOD(reflection_function, getEndLine)
{
}
/* }}} */
-/* {{{ proto public string ReflectionFunction::getDocComment()
+/* {{{ proto public string ReflectionFunction::getDocComment() U
Returns the doc comment for this function */
ZEND_METHOD(reflection_function, getDocComment)
{
METHOD_NOTSTATIC_NUMPARAMS(reflection_function_abstract_ptr, 0);
GET_REFLECTION_OBJECT_PTR(fptr);
if (fptr->type == ZEND_USER_FUNCTION && fptr->op_array.doc_comment) {
+ /* FIXME
+ * It should use the encoding in which the doc comment was written, aka
+ * the script encoding for the file that the class was defined in.
+ */
RETURN_RT_STRINGL(fptr->op_array.doc_comment, fptr->op_array.doc_comment_len, 1);
}
RETURN_FALSE;
}
/* }}} */
-/* {{{ proto public array ReflectionFunction::getStaticVariables()
+/* {{{ proto public array ReflectionFunction::getStaticVariables() U
Returns an associative array containing this function's static variables and their values */
ZEND_METHOD(reflection_function, getStaticVariables)
{
}
/* }}} */
-/* {{{ proto public mixed ReflectionFunction::invoke(mixed* args)
+/* {{{ proto public mixed ReflectionFunction::invoke(mixed* args) U
Invokes the function */
ZEND_METHOD(reflection_function, invoke)
{
return ZEND_HASH_APPLY_KEEP;
} /* }}} */
-/* {{{ proto public mixed ReflectionFunction::invokeArgs(array args)
+/* {{{ proto public mixed ReflectionFunction::invokeArgs(array args) U
Invokes the function and pass its arguments as array. */
ZEND_METHOD(reflection_function, invokeArgs)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionFunction::returnsReference()
+/* {{{ proto public bool ReflectionFunction::returnsReference() U
Gets whether this function returns a reference */
ZEND_METHOD(reflection_function, returnsReference)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionFunction::getNumberOfParameters()
+/* {{{ proto public bool ReflectionFunction::getNumberOfParameters() U
Gets the number of required parameters */
ZEND_METHOD(reflection_function, getNumberOfParameters)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionFunction::getNumberOfRequiredParameters()
+/* {{{ proto public bool ReflectionFunction::getNumberOfRequiredParameters() U
Gets the number of required parameters */
ZEND_METHOD(reflection_function, getNumberOfRequiredParameters)
{
}
/* }}} */
-/* {{{ proto public ReflectionParameter[] ReflectionFunction::getParameters()
+/* {{{ proto public ReflectionParameter[] ReflectionFunction::getParameters() U
Returns an array of parameter objects for this function */
ZEND_METHOD(reflection_function, getParameters)
{
}
/* }}} */
-/* {{{ proto public ReflectionExtension|NULL ReflectionFunction::getExtension()
+/* {{{ proto public ReflectionExtension|NULL ReflectionFunction::getExtension() U
Returns NULL or the extension the function belongs to */
ZEND_METHOD(reflection_function, getExtension)
{
}
/* }}} */
-/* {{{ proto public string|false ReflectionFunction::getExtensionName()
+/* {{{ proto public string|false ReflectionFunction::getExtensionName() U
Returns false or the name of the extension the function belongs to */
ZEND_METHOD(reflection_function, getExtensionName)
{
}
/* }}} */
-/* {{{ proto public static mixed ReflectionParameter::export(mixed function, mixed parameter [, bool return]) throws ReflectionException
+/* {{{ proto public static mixed ReflectionParameter::export(mixed function, mixed parameter [, bool return]) throws ReflectionException U
Exports a reflection object. Returns the output if TRUE is specified for return, printing it otherwise. */
ZEND_METHOD(reflection_parameter, export)
{
}
/* }}} */
-/* {{{ proto public void ReflectionParameter::__construct(mixed function, mixed parameter)
+/* {{{ proto public void ReflectionParameter::__construct(mixed function, mixed parameter) U
Constructor. Throws an Exception in case the given method does not exist */
ZEND_METHOD(reflection_parameter, __construct)
{
}
/* }}} */
-/* {{{ proto public string ReflectionParameter::__toString()
+/* {{{ proto public string ReflectionParameter::__toString() U
Returns a string representation */
ZEND_METHOD(reflection_parameter, __toString)
{
GET_REFLECTION_OBJECT_PTR(param);
string_init(&str);
_parameter_string(&str, param->fptr, param->arg_info, param->offset, param->required, "" TSRMLS_CC);
- RETURN_RT_STRINGL(str.string, str.len - 1, ZSTR_AUTOFREE);
+ RETURN_U_STRINGL(ZEND_U_CONVERTER(UG(output_encoding_conv)), str.string, str.len - 1, ZSTR_AUTOFREE);
}
/* }}} */
-/* {{{ proto public string ReflectionParameter::getName()
+/* {{{ proto public string ReflectionParameter::getName() U
Returns this parameters's name */
ZEND_METHOD(reflection_parameter, getName)
{
}
/* }}} */
-/* {{{ proto public ReflectionFunction ReflectionParameter::getDeclaringFunction()
+/* {{{ proto public ReflectionFunction ReflectionParameter::getDeclaringFunction() U
Returns the ReflectionFunction for the function of this parameter */
ZEND_METHOD(reflection_parameter, getDeclaringFunction)
{
}
/* }}} */
-/* {{{ proto public ReflectionClass|NULL ReflectionParameter::getDeclaringClass()
+/* {{{ proto public ReflectionClass|NULL ReflectionParameter::getDeclaringClass() U
Returns in which class this parameter is defined (not the typehint of the parameter) */
ZEND_METHOD(reflection_parameter, getDeclaringClass)
{
}
/* }}} */
-/* {{{ proto public ReflectionClass|NULL ReflectionParameter::getClass()
+/* {{{ proto public ReflectionClass|NULL ReflectionParameter::getClass() U
Returns this parameters's class hint or NULL if there is none */
ZEND_METHOD(reflection_parameter, getClass)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionParameter::isArray()
+/* {{{ proto public bool ReflectionParameter::isArray() U
Returns whether parameter MUST be an array */
ZEND_METHOD(reflection_parameter, isArray)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionParameter::allowsNull()
+/* {{{ proto public bool ReflectionParameter::allowsNull() U
Returns whether NULL is allowed as this parameters's value */
ZEND_METHOD(reflection_parameter, allowsNull)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionParameter::isPassedByReference()
+/* {{{ proto public bool ReflectionParameter::isPassedByReference() U
Returns whether this parameters is passed to by reference */
ZEND_METHOD(reflection_parameter, isPassedByReference)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionParameter::getPosition()
+/* {{{ proto public bool ReflectionParameter::getPosition() U
Returns whether this parameter is an optional parameter */
ZEND_METHOD(reflection_parameter, getPosition)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionParameter::isOptional()
+/* {{{ proto public bool ReflectionParameter::isOptional() U
Returns whether this parameter is an optional parameter */
ZEND_METHOD(reflection_parameter, isOptional)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionParameter::isDefaultValueAvailable()
+/* {{{ proto public bool ReflectionParameter::isDefaultValueAvailable() U
Returns whether the default value of this parameter is available */
ZEND_METHOD(reflection_parameter, isDefaultValueAvailable)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionParameter::getDefaultValue()
+/* {{{ proto public bool ReflectionParameter::getDefaultValue() U
Returns the default value of this parameter or throws an exception */
ZEND_METHOD(reflection_parameter, getDefaultValue)
{
}
/* }}} */
-/* {{{ proto public static mixed ReflectionMethod::export(mixed class, string name [, bool return]) throws ReflectionException
+/* {{{ proto public static mixed ReflectionMethod::export(mixed class, string name [, bool return]) throws ReflectionException U
Exports a reflection object. Returns the output if TRUE is specified for return, printing it otherwise. */
ZEND_METHOD(reflection_method, export)
{
}
/* }}} */
-/* {{{ proto public void ReflectionMethod::__construct(mixed class_or_method [, string name])
+/* {{{ proto public void ReflectionMethod::__construct(mixed class_or_method [, string name]) U
Constructor. Throws an Exception in case the given method does not exist */
ZEND_METHOD(reflection_method, __construct)
{
}
/* }}} */
-/* {{{ proto public string ReflectionMethod::__toString()
+/* {{{ proto public string ReflectionMethod::__toString() U
Returns a string representation */
ZEND_METHOD(reflection_method, __toString)
{
GET_REFLECTION_OBJECT_PTR(mptr);
string_init(&str);
_function_string(&str, mptr, intern->ce, "" TSRMLS_CC);
- RETURN_RT_STRINGL(str.string, str.len - 1, ZSTR_AUTOFREE);
+ RETURN_U_STRINGL(ZEND_U_CONVERTER(UG(output_encoding_conv)), str.string, str.len - 1, ZSTR_AUTOFREE);
}
/* }}} */
-/* {{{ proto public mixed ReflectionMethod::invoke(mixed object, mixed* args)
+/* {{{ proto public mixed ReflectionMethod::invoke(mixed object, mixed* args) U
Invokes the method. */
ZEND_METHOD(reflection_method, invoke)
{
}
/* }}} */
-/* {{{ proto public mixed ReflectionMethod::invokeArgs(mixed object, array args)
+/* {{{ proto public mixed ReflectionMethod::invokeArgs(mixed object, array args) U
Invokes the function and pass its arguments as array. */
ZEND_METHOD(reflection_method, invokeArgs)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionMethod::isFinal()
+/* {{{ proto public bool ReflectionMethod::isFinal() U
Returns whether this method is final */
ZEND_METHOD(reflection_method, isFinal)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionMethod::isAbstract()
+/* {{{ proto public bool ReflectionMethod::isAbstract() U
Returns whether this method is abstract */
ZEND_METHOD(reflection_method, isAbstract)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionMethod::isPublic()
+/* {{{ proto public bool ReflectionMethod::isPublic() U
Returns whether this method is public */
ZEND_METHOD(reflection_method, isPublic)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionMethod::isPrivate()
+/* {{{ proto public bool ReflectionMethod::isPrivate() U
Returns whether this method is private */
ZEND_METHOD(reflection_method, isPrivate)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionMethod::isProtected()
+/* {{{ proto public bool ReflectionMethod::isProtected() U
Returns whether this method is protected */
ZEND_METHOD(reflection_method, isProtected)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionMethod::isStatic()
+/* {{{ proto public bool ReflectionMethod::isStatic() U
Returns whether this method is static */
ZEND_METHOD(reflection_method, isStatic)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionFunction::isDeprecated()
+/* {{{ proto public bool ReflectionFunction::isDeprecated() U
Returns whether this function is deprecated */
ZEND_METHOD(reflection_function, isDeprecated)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionMethod::isConstructor()
+/* {{{ proto public bool ReflectionMethod::isConstructor() U
Returns whether this method is the constructor */
ZEND_METHOD(reflection_method, isConstructor)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionMethod::isDestructor()
+/* {{{ proto public bool ReflectionMethod::isDestructor() U
Returns whether this method is static */
ZEND_METHOD(reflection_method, isDestructor)
{
}
/* }}} */
-/* {{{ proto public int ReflectionMethod::getModifiers()
+/* {{{ proto public int ReflectionMethod::getModifiers() U
Returns a bitfield of the access modifiers for this method */
ZEND_METHOD(reflection_method, getModifiers)
{
}
/* }}} */
-/* {{{ proto public ReflectionClass ReflectionMethod::getDeclaringClass()
+/* {{{ proto public ReflectionClass ReflectionMethod::getDeclaringClass() U
Get the declaring class */
ZEND_METHOD(reflection_method, getDeclaringClass)
{
}
/* }}} */
-/* {{{ proto public ReflectionClass ReflectionMethod::getPrototype()
+/* {{{ proto public ReflectionClass ReflectionMethod::getPrototype() U
Get the prototype */
ZEND_METHOD(reflection_method, getPrototype)
{
}
/* }}} */
-/* {{{ proto public static mixed ReflectionClass::export(mixed argument [, bool return]) throws ReflectionException
+/* {{{ proto public static mixed ReflectionClass::export(mixed argument [, bool return]) throws ReflectionException U
Exports a reflection object. Returns the output if TRUE is specified for return, printing it otherwise. */
ZEND_METHOD(reflection_class, export)
{
}
/* }}} */
-/* {{{ proto public void ReflectionClass::__construct(mixed argument) throws ReflectionException
+/* {{{ proto public void ReflectionClass::__construct(mixed argument) throws ReflectionException U
Constructor. Takes a string or an instance as an argument */
ZEND_METHOD(reflection_class, __construct)
{
}
/* }}} */
-/* {{{ proto public array ReflectionClass::getStaticProperties()
+/* {{{ proto public array ReflectionClass::getStaticProperties() U
Returns an associative array containing all static property values of the class */
ZEND_METHOD(reflection_class, getStaticProperties)
{
}
/* }}} */
-/* {{{ proto public mixed ReflectionClass::getStaticPropertyValue(string name [, mixed default])
+/* {{{ proto public mixed ReflectionClass::getStaticPropertyValue(string name [, mixed default]) U
Returns the value of a tsstic property */
ZEND_METHOD(reflection_class, getStaticPropertyValue)
{
}
/* }}} */
-/* {{{ proto public void ReflectionClass::setStaticPropertyValue($name, $value)
+/* {{{ proto public void ReflectionClass::setStaticPropertyValue($name, $value) U
Sets the value of a static property */
ZEND_METHOD(reflection_class, setStaticPropertyValue)
{
}
/* }}} */
-/* {{{ proto public array ReflectionClass::getDefaultProperties()
+/* {{{ proto public array ReflectionClass::getDefaultProperties() U
Returns an associative array containing copies of all default property values of the class */
ZEND_METHOD(reflection_class, getDefaultProperties)
{
}
/* }}} */
-/* {{{ proto public string ReflectionClass::__toString()
+/* {{{ proto public string ReflectionClass::__toString() U
Returns a string representation */
ZEND_METHOD(reflection_class, __toString)
{
GET_REFLECTION_OBJECT_PTR(ce);
string_init(&str);
_class_string(&str, ce, intern->obj, "" TSRMLS_CC);
- RETURN_RT_STRINGL(str.string, str.len - 1, ZSTR_AUTOFREE);
+ RETURN_U_STRINGL(ZEND_U_CONVERTER(UG(output_encoding_conv)), str.string, str.len - 1, ZSTR_AUTOFREE);
}
/* }}} */
-/* {{{ proto public string ReflectionClass::getName()
+/* {{{ proto public string ReflectionClass::getName() U
Returns the class' name */
ZEND_METHOD(reflection_class, getName)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionClass::isInternal()
+/* {{{ proto public bool ReflectionClass::isInternal() U
Returns whether this class is an internal class */
ZEND_METHOD(reflection_class, isInternal)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionClass::isUserDefined()
+/* {{{ proto public bool ReflectionClass::isUserDefined() U
Returns whether this class is user-defined */
ZEND_METHOD(reflection_class, isUserDefined)
{
}
/* }}} */
-/* {{{ proto public string ReflectionClass::getFileName()
+/* {{{ proto public string ReflectionClass::getFileName() U
Returns the filename of the file this class was declared in */
ZEND_METHOD(reflection_class, getFileName)
{
}
/* }}} */
-/* {{{ proto public int ReflectionClass::getStartLine()
+/* {{{ proto public int ReflectionClass::getStartLine() U
Returns the line this class' declaration starts at */
ZEND_METHOD(reflection_class, getStartLine)
{
}
/* }}} */
-/* {{{ proto public int ReflectionClass::getEndLine()
+/* {{{ proto public int ReflectionClass::getEndLine() U
Returns the line this class' declaration ends at */
ZEND_METHOD(reflection_class, getEndLine)
{
}
/* }}} */
-/* {{{ proto public string ReflectionClass::getDocComment()
+/* {{{ proto public string ReflectionClass::getDocComment() U
Returns the doc comment for this class */
ZEND_METHOD(reflection_class, getDocComment)
{
METHOD_NOTSTATIC_NUMPARAMS(reflection_class_ptr, 0);
GET_REFLECTION_OBJECT_PTR(ce);
if (ce->type == ZEND_USER_CLASS && ce->doc_comment) {
+ /* FIXME
+ * It should use the encoding in which the doc comment was written, aka
+ * the script encoding for the file that the class was defined in. We
+ * don't have access to that yet.
+ */
RETURN_RT_STRINGL(ce->doc_comment, ce->doc_comment_len, 1);
}
RETURN_FALSE;
}
/* }}} */
-/* {{{ proto public ReflectionMethod ReflectionClass::getConstructor()
+/* {{{ proto public ReflectionMethod ReflectionClass::getConstructor() U
Returns the class' constructor if there is one, NULL otherwise */
ZEND_METHOD(reflection_class, getConstructor)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionClass::hasMethod(string name)
+/* {{{ proto public bool ReflectionClass::hasMethod(string name) U
Returns whether a method exists or not */
ZEND_METHOD(reflection_class, hasMethod)
{
}
/* }}} */
-/* {{{ proto public ReflectionMethod ReflectionClass::getMethod(string name) throws ReflectionException
+/* {{{ proto public ReflectionMethod ReflectionClass::getMethod(string name) throws ReflectionException U
Returns the class' method specified by its name */
ZEND_METHOD(reflection_class, getMethod)
{
}
/* }}} */
-/* {{{ proto public ReflectionMethod[] ReflectionClass::getMethods([long $filter])
+/* {{{ proto public ReflectionMethod[] ReflectionClass::getMethods([long $filter]) U
Returns an array of this class' methods */
ZEND_METHOD(reflection_class, getMethods)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionClass::hasProperty(string name)
+/* {{{ proto public bool ReflectionClass::hasProperty(string name) U
Returns whether a property exists or not */
ZEND_METHOD(reflection_class, hasProperty)
{
}
/* }}} */
-/* {{{ proto public ReflectionProperty ReflectionClass::getProperty(string name) throws ReflectionException
+/* {{{ proto public ReflectionProperty ReflectionClass::getProperty(string name) throws ReflectionException U
Returns the class' property specified by its name */
ZEND_METHOD(reflection_class, getProperty)
{
}
/* }}} */
-/* {{{ proto public ReflectionProperty[] ReflectionClass::getProperties([long $filter])
+/* {{{ proto public ReflectionProperty[] ReflectionClass::getProperties([long $filter]) U
Returns an array of this class' properties */
ZEND_METHOD(reflection_class, getProperties)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionClass::hasConstant(string name)
+/* {{{ proto public bool ReflectionClass::hasConstant(string name) U
Returns whether a constant exists or not */
ZEND_METHOD(reflection_class, hasConstant)
{
}
/* }}} */
-/* {{{ proto public array ReflectionClass::getConstants()
+/* {{{ proto public array ReflectionClass::getConstants() U
Returns an associative array containing this class' constants and their values */
ZEND_METHOD(reflection_class, getConstants)
{
}
/* }}} */
-/* {{{ proto public mixed ReflectionClass::getConstant(string name)
+/* {{{ proto public mixed ReflectionClass::getConstant(string name) U
Returns the class' constant specified by its name */
ZEND_METHOD(reflection_class, getConstant)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionClass::isInstantiable()
+/* {{{ proto public bool ReflectionClass::isInstantiable() U
Returns whether this class is instantiable */
ZEND_METHOD(reflection_class, isInstantiable)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionClass::isInterface()
+/* {{{ proto public bool ReflectionClass::isInterface() U
Returns whether this is an interface or a class */
ZEND_METHOD(reflection_class, isInterface)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionClass::isFinal()
+/* {{{ proto public bool ReflectionClass::isFinal() U
Returns whether this class is final */
ZEND_METHOD(reflection_class, isFinal)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionClass::isAbstract()
+/* {{{ proto public bool ReflectionClass::isAbstract() U
Returns whether this class is abstract */
ZEND_METHOD(reflection_class, isAbstract)
{
}
/* }}} */
-/* {{{ proto public int ReflectionClass::getModifiers()
+/* {{{ proto public int ReflectionClass::getModifiers() U
Returns a bitfield of the access modifiers for this class */
ZEND_METHOD(reflection_class, getModifiers)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionClass::isInstance(stdclass object)
+/* {{{ proto public bool ReflectionClass::isInstance(stdclass object) U
Returns whether the given object is an instance of this class */
ZEND_METHOD(reflection_class, isInstance)
{
}
/* }}} */
-/* {{{ proto public stdclass ReflectionClass::newInstance(mixed* args, ...)
+/* {{{ proto public stdclass ReflectionClass::newInstance(mixed* args, ...) U
Returns an instance of this class */
ZEND_METHOD(reflection_class, newInstance)
{
}
/* }}} */
-/* {{{ proto public stdclass ReflectionClass::newInstanceArgs([array args])
+/* {{{ proto public stdclass ReflectionClass::newInstanceArgs([array args]) U
Returns an instance of this class */
ZEND_METHOD(reflection_class, newInstanceArgs)
{
}
/* }}} */
-/* {{{ proto public ReflectionClass[] ReflectionClass::getInterfaces()
+/* {{{ proto public ReflectionClass[] ReflectionClass::getInterfaces() U
Returns an array of interfaces this class implements */
ZEND_METHOD(reflection_class, getInterfaces)
{
}
/* }}} */
-/* {{{ proto public String[] ReflectionClass::getInterfaceNames()
+/* {{{ proto public String[] ReflectionClass::getInterfaceNames() U
Returns an array of names of interfaces this class implements */
ZEND_METHOD(reflection_class, getInterfaceNames)
{
}
/* }}} */
-/* {{{ proto public ReflectionClass ReflectionClass::getParentClass()
+/* {{{ proto public ReflectionClass ReflectionClass::getParentClass() U
Returns the class' parent class, or, if none exists, FALSE */
ZEND_METHOD(reflection_class, getParentClass)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionClass::isSubclassOf(string|ReflectionClass class)
+/* {{{ proto public bool ReflectionClass::isSubclassOf(string|ReflectionClass class) U
Returns whether this class is a subclass of another class */
ZEND_METHOD(reflection_class, isSubclassOf)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionClass::implementsInterface(string|ReflectionClass interface_name)
+/* {{{ proto public bool ReflectionClass::implementsInterface(string|ReflectionClass interface_name) U
Returns whether this class is a subclass of another class */
ZEND_METHOD(reflection_class, implementsInterface)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionClass::isIterateable()
+/* {{{ proto public bool ReflectionClass::isIterateable() U
Returns whether this class is iterateable (can be used inside foreach) */
ZEND_METHOD(reflection_class, isIterateable)
{
}
/* }}} */
-/* {{{ proto public ReflectionExtension|NULL ReflectionClass::getExtension()
+/* {{{ proto public ReflectionExtension|NULL ReflectionClass::getExtension() U
Returns NULL or the extension the class belongs to */
ZEND_METHOD(reflection_class, getExtension)
{
}
/* }}} */
-/* {{{ proto public string|false ReflectionClass::getExtensionName()
+/* {{{ proto public string|false ReflectionClass::getExtensionName() U
Returns false or the name of the extension the class belongs to */
ZEND_METHOD(reflection_class, getExtensionName)
{
}
/* }}} */
-/* {{{ proto public static mixed ReflectionObject::export(mixed argument [, bool return]) throws ReflectionException
+/* {{{ proto public static mixed ReflectionObject::export(mixed argument [, bool return]) throws ReflectionException U
Exports a reflection object. Returns the output if TRUE is specified for return, printing it otherwise. */
ZEND_METHOD(reflection_object, export)
{
}
/* }}} */
-/* {{{ proto public void ReflectionObject::__construct(mixed argument) throws ReflectionException
+/* {{{ proto public void ReflectionObject::__construct(mixed argument) throws ReflectionException U
Constructor. Takes an instance as an argument */
ZEND_METHOD(reflection_object, __construct)
{
}
/* }}} */
-/* {{{ proto public static mixed ReflectionProperty::export(mixed class, string name [, bool return]) throws ReflectionException
+/* {{{ proto public static mixed ReflectionProperty::export(mixed class, string name [, bool return]) throws ReflectionException U
Exports a reflection object. Returns the output if TRUE is specified for return, printing it otherwise. */
ZEND_METHOD(reflection_property, export)
{
}
/* }}} */
-/* {{{ proto public void ReflectionProperty::__construct(mixed class, string name)
+/* {{{ proto public void ReflectionProperty::__construct(mixed class, string name) U
Constructor. Throws an Exception in case the given property does not exist */
ZEND_METHOD(reflection_property, __construct)
{
}
/* }}} */
-/* {{{ proto public string ReflectionProperty::__toString()
+/* {{{ proto public string ReflectionProperty::__toString() U
Returns a string representation */
ZEND_METHOD(reflection_property, __toString)
{
GET_REFLECTION_OBJECT_PTR(ref);
string_init(&str);
_property_string(&str, ref->prop, NULL_ZSTR, "" TSRMLS_CC);
- RETURN_RT_STRINGL(str.string, str.len - 1, ZSTR_AUTOFREE);
+ RETURN_U_STRINGL(ZEND_U_CONVERTER(UG(output_encoding_conv)), str.string, str.len - 1, ZSTR_AUTOFREE);
}
/* }}} */
-/* {{{ proto public string ReflectionProperty::getName()
+/* {{{ proto public string ReflectionProperty::getName() U
Returns the class' name */
ZEND_METHOD(reflection_property, getName)
{
RETURN_BOOL(ref->prop->flags & mask);
}
-/* {{{ proto public bool ReflectionProperty::isPublic()
+/* {{{ proto public bool ReflectionProperty::isPublic() U
Returns whether this property is public */
ZEND_METHOD(reflection_property, isPublic)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionProperty::isPrivate()
+/* {{{ proto public bool ReflectionProperty::isPrivate() U
Returns whether this property is private */
ZEND_METHOD(reflection_property, isPrivate)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionProperty::isProtected()
+/* {{{ proto public bool ReflectionProperty::isProtected() U
Returns whether this property is protected */
ZEND_METHOD(reflection_property, isProtected)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionProperty::isStatic()
+/* {{{ proto public bool ReflectionProperty::isStatic() U
Returns whether this property is static */
ZEND_METHOD(reflection_property, isStatic)
{
}
/* }}} */
-/* {{{ proto public bool ReflectionProperty::isDefault()
+/* {{{ proto public bool ReflectionProperty::isDefault() U
Returns whether this property is default (declared at compilation time). */
ZEND_METHOD(reflection_property, isDefault)
{
}
/* }}} */
-/* {{{ proto public mixed ReflectionProperty::getDefaultValue()
+/* {{{ proto public mixed ReflectionProperty::getDefaultValue() U
Returns the default value of the property. */
ZEND_METHOD(reflection_property, getDefaultValue)
{
}
/* }}} */
-/* {{{ proto public int ReflectionProperty::getModifiers()
+/* {{{ proto public int ReflectionProperty::getModifiers() U
Returns a bitfield of the access modifiers for this property */
ZEND_METHOD(reflection_property, getModifiers)
{
}
/* }}} */
-/* {{{ proto public mixed ReflectionProperty::getValue([stdclass object])
+/* {{{ proto public mixed ReflectionProperty::getValue([stdclass object]) U
Returns this property's value */
ZEND_METHOD(reflection_property, getValue)
{
}
/* }}} */
-/* {{{ proto public void ReflectionProperty::setValue([stdclass object,] mixed value)
+/* {{{ proto public void ReflectionProperty::setValue([stdclass object,] mixed value) U
Sets this property's value */
ZEND_METHOD(reflection_property, setValue)
{
}
/* }}} */
-/* {{{ proto public ReflectionClass ReflectionProperty::getDeclaringClass()
+/* {{{ proto public ReflectionClass ReflectionProperty::getDeclaringClass() U
Get the declaring class */
ZEND_METHOD(reflection_property, getDeclaringClass)
{
}
/* }}} */
-/* {{{ proto public string ReflectionProperty::getDocComment()
+/* {{{ proto public string ReflectionProperty::getDocComment() U
Returns the doc comment for this property */
ZEND_METHOD(reflection_property, getDocComment)
{
METHOD_NOTSTATIC_NUMPARAMS(reflection_property_ptr, 0);
GET_REFLECTION_OBJECT_PTR(ref);
if (ref->prop->doc_comment) {
+ /* FIXME
+ * It should use the encoding in which the doc comment was written, aka
+ * the script encoding for the file that the class was defined in. We
+ * don't have access to that yet.
+ */
RETURN_RT_STRINGL(ref->prop->doc_comment, ref->prop->doc_comment_len, 1);
}
RETURN_FALSE;
}
/* }}} */
-/* {{{ proto public static mixed ReflectionExtension::export(string name [, bool return]) throws ReflectionException
+/* {{{ proto public static mixed ReflectionExtension::export(string name [, bool return]) throws ReflectionException U
Exports a reflection object. Returns the output if TRUE is specified for return, printing it otherwise. */
ZEND_METHOD(reflection_extension, export)
{
}
/* }}} */
-/* {{{ proto public void ReflectionExtension::__construct(string name)
+/* {{{ proto public void ReflectionExtension::__construct(string name) U
Constructor. Throws an Exception in case the given extension does not exist */
ZEND_METHOD(reflection_extension, __construct)
{
}
/* }}} */
-/* {{{ proto public string ReflectionExtension::__toString()
+/* {{{ proto public string ReflectionExtension::__toString() U
Returns a string representation */
ZEND_METHOD(reflection_extension, __toString)
{
GET_REFLECTION_OBJECT_PTR(module);
string_init(&str);
_extension_string(&str, module, "" TSRMLS_CC);
- RETURN_RT_STRINGL(str.string, str.len - 1, ZSTR_AUTOFREE);
+ RETURN_U_STRINGL(ZEND_U_CONVERTER(UG(output_encoding_conv)), str.string, str.len - 1, ZSTR_AUTOFREE);
}
/* }}} */
-/* {{{ proto public string ReflectionExtension::getName()
+/* {{{ proto public string ReflectionExtension::getName() U
Returns this extension's name */
ZEND_METHOD(reflection_extension, getName)
{
}
/* }}} */
-/* {{{ proto public string ReflectionExtension::getVersion()
+/* {{{ proto public string ReflectionExtension::getVersion() U
Returns this extension's version */
ZEND_METHOD(reflection_extension, getVersion)
{
}
/* }}} */
-/* {{{ proto public ReflectionFunction[] ReflectionExtension::getFunctions()
+/* {{{ proto public ReflectionFunction[] ReflectionExtension::getFunctions() U
Returns an array of this extension's fuctions */
ZEND_METHOD(reflection_extension, getFunctions)
{
return 0;
}
-/* {{{ proto public array ReflectionExtension::getConstants()
+/* {{{ proto public array ReflectionExtension::getConstants() U
Returns an associative array containing this extension's constants and their values */
ZEND_METHOD(reflection_extension, getConstants)
{
}
/* }}} */
-/* {{{ proto public array ReflectionExtension::getINIEntries()
+/* {{{ proto public array ReflectionExtension::getINIEntries() U
Returns an associative array containing this extension's INI entries and their values */
ZEND_METHOD(reflection_extension, getINIEntries)
{
}
/* }}} */
-/* {{{ proto public ReflectionClass[] ReflectionExtension::getClasses()
+/* {{{ proto public ReflectionClass[] ReflectionExtension::getClasses() U
Returns an array containing ReflectionClass objects for all classes of this extension */
ZEND_METHOD(reflection_extension, getClasses)
{
}
/* }}} */
-/* {{{ proto public array ReflectionExtension::getClassNames()
+/* {{{ proto public array ReflectionExtension::getClassNames() U
Returns an array containing all names of all classes of this extension */
ZEND_METHOD(reflection_extension, getClassNames)
{
}
/* }}} */
-/* {{{ proto public array ReflectionExtension::getDependencies()
+/* {{{ proto public array ReflectionExtension::getDependencies() U
Returns an array containing all names of all extensions this extension depends on */
ZEND_METHOD(reflection_extension, getDependencies)
{