From: christopher dot watford at gmail dot com Operating system: Any PHP version: 5.0.0 PHP Bug Type: Documentation problem Bug description: Reflection API example not correct
Description: ------------ The Reflection API listed on http://www.php.net/zend-engine-2.php has the wrong class names. The link offsite contains the wrong documentation too, however, since it is out of your control its not such a big deal. Moreover, your page on Migrating to PHP5 (http://www.php.net/manual/en/migration5.oop.php) has the correct documentation. But also has the link to the conflicting class names offsite. Reproduce code: --------------- Actual Documentation: <?php class Foo { public $prop; function Func($name) { echo "Hello $name"; } } reflection_class::export('Foo'); reflection_object::export(new Foo); reflection_method::export('Foo', 'func'); reflection_property::export('Foo', 'prop'); reflection_extension::export('standard'); ?> Expected result: ---------------- Expected Documentation: <?php class Foo { public $prop; function Func($name) { echo "Hello $name"; } } reflectionClass::export('Foo'); reflectionObject::export(new Foo); reflectionMethod::export('Foo', 'func'); reflectionProperty::export('Foo', 'prop'); reflectionExtension::export('standard'); ?> -- Edit bug report at http://bugs.php.net/?id=29130&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29130&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29130&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29130&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29130&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29130&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29130&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29130&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29130&r=support Expected behavior: http://bugs.php.net/fix.php?id=29130&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29130&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29130&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29130&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29130&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29130&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29130&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29130&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29130&r=float
