From:             jevon at jevon dot org
Operating system: WinXP
PHP version:      5.0.0RC2
PHP Bug Type:     Zend Engine 2 problem
Bug description:  Reflection_Parameter needs getDefault()

Description:
------------
It would be nice for Reflection_Parameter to have a "getDefault" method to
get the default value for the parameter.

Reproduce code:
---------------
class Foo {
  function a($b = 1) { }
}

...

$r = new Reflection_Class("Foo"));
$m = $r->getMethods();
$p = $m[0]->getParameters();
echo "p->getDefault = " . $p->getDefault();

Expected result:
----------------
p->getDefault = 1

Actual result:
--------------
The function doesn't exist
(Fatal error: Call to undefined method reflection_parameter::getDefault())

-- 
Edit bug report at http://bugs.php.net/?id=28241&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28241&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28241&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28241&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28241&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28241&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28241&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28241&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28241&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28241&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28241&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28241&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28241&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28241&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28241&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28241&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28241&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28241&r=float

Reply via email to