Bug #70034 [NEW]: ReflectionClass->getFileName in PHPT returns "-" as filename

From: Date: Thu, 09 Jul 2015 12:53:29 +0000
Subject: Bug #70034 [NEW]: ReflectionClass->getFileName in PHPT returns "-" as filename
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194251@lists.php.net to get a copy of this message
From: james at asgrim dot com Operating system: Ubuntu 15.04 PHP version: 5.6.10 Package: Reflection related Bug Type: Bug Bug description:ReflectionClass->getFileName in PHPT returns "-" as filename Description: ------------ The ReflectionClass_FileInfo_basic.phpt test is failing. When creating a reflection of a class in a .phpt test, the getFileName() method returns simply a string with a hypen ("-") instead of the actual filename. --- Expected +++ Actual @@ @@ -string(%d) "%sReflectionClass_FileInfo_basic.php" +string(1) "-" https://github.com/php/php-src/blob/master/ext/reflection/tests/ReflectionClass_FileInfo_basic.phpt Expected result: ---------------- Expect the filename returned by getFileName() to be "%sReflectionClass_FileInfo_basic.php" Actual result: -------------- The filename returned by getFileName() is actually "-" -- Edit bug report at https://bugs.php.net/bug.php?id=70034&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70034&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70034&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70034&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70034&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70034&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70034&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70034&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70034&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70034&r=support Expected behavior: https://bugs.php.net/fix.php?id=70034&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70034&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70034&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70034&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70034&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70034&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70034&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70034&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70034&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70034&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70034&r=mysqlcfg

« previous php.bugs (#194251) next »