Bug #67099 [NEW]: a problem about ReflectionClass,please reply is it a bug

From: Date: Sun, 20 Apr 2014 15:51:26 +0000
Subject: Bug #67099 [NEW]: a problem about ReflectionClass,please reply is it a bug
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185346@lists.php.net to get a copy of this message
From: huqinlou0123 at 163 dot com Operating system: win7 PHP version: 5.4Git-2014-04-20 (Git) Package: *General Issues Bug Type: Bug Bug description:a problem about ReflectionClass,please reply is it a bug Description: ------------ --- From manual page: http://www.php.net/reflectionclass.construct --- <code> $rClass = new \ReflectionClass('CommonController'); //$a=new CommonController; //$rClass = new \ReflectionClass($a); $methodList = $rClass->getMethods(); dump($methodList); exit; $this->display(); </code> this will not exit;and will display,and no error report; <code> //$rClass = new \ReflectionClass('CommonController'); $a=new CommonController; $rClass = new \ReflectionClass($a); $methodList = $rClass->getMethods(); dump($methodList); exit; $this->display(); </code> this will exit,and dump right list; the CommonController has required;and no cache,I can't understand ,is my environment's problem? my english isn't good,please try do it; Test script: --------------- Public function index () { $paramParse = new \Org\Util\ParamParse; //$data=$paramParse->buildAll('D:/wamp/www/BS2/Application/Hunlian/Controller'); $list = array(); require_once 'D:\wamp\www\BS2\Application\Hunlian\Controller\CommonController.class.php'; $rClass = new \ReflectionClass('CommonController'); //$a=new CommonController; //$rClass = new \ReflectionClass($a); $methodList = $rClass->getMethods(); dump($methodList); exit; $this->display(); } Expected result: ---------------- it can't run the way on my writed code; Actual result: -------------- all in above; -- Edit bug report at https://bugs.php.net/bug.php?id=67099&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67099&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67099&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67099&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=67099&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=67099&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=67099&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=67099&r=needscript Try newer version: https://bugs.php.net/fix.php?id=67099&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=67099&r=support Expected behavior: https://bugs.php.net/fix.php?id=67099&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=67099&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=67099&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=67099&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67099&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=67099&r=dst IIS Stability: https://bugs.php.net/fix.php?id=67099&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=67099&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=67099&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=67099&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=67099&r=mysqlcfg

« previous php.bugs (#185346) next »