ID:               29728
 Updated by:       [EMAIL PROTECTED]
 Reported By:      wb at pro-net dot co dot uk
 Status:           Open
-Bug Type:         Zend Engine 2 problem
+Bug Type:         Feature/Change Request
 Operating System: *
-PHP Version:      5.0.0
+PHP Version:      5.0.*
-Assigned To:      
+Assigned To:      helly
 New Comment:

The first is ReflectionParameter::isOptional()



Previous Comments:
------------------------------------------------------------------------

[2004-08-18 12:05:01] wb at pro-net dot co dot uk

Description:
------------
This is not strictly a bug and more of a feature request (if there is a
better place for feature requests then please let me know).

At the moment there is no way to find out if a parameter for a method
has a default value or not.

It would be nice is the ReflectionParameter class had something like
the the following methods.

<boolean> ReflectionParameter->isRequired()

Returns TRUE if the parameter is required or FALSE if it is not
required (and therefore has a default value).

<mixed> ReflectionParameter->getDefault()

Returns the default value for the parameter. This could throw an
Exception if no default value is set as it could be possiable for the
default value to be FALSE :)



Reproduce code:
---------------
n/a

Expected result:
----------------
n/a

Actual result:
--------------
n/a


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29728&edit=1

Reply via email to