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

From: Date: Thu, 09 Jul 2015 14:42:29 +0000
Subject: Bug #70034 [Opn->Fbk]: ReflectionClass->getFileName in PHPT returns "-" as filename
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194254@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70034&edit=1 ID: 70034 Updated by: cmb@php.net Reported by: james at asgrim dot com Summary: ReflectionClass->getFileName in PHPT returns "-" as filename -Status: Open +Status: Feedback Type: Bug Package: Reflection related Operating System: Ubuntu 15.04 PHP Version: 5.6.10 Block user comment: N Private report: N New Comment: The test passes for me, and apparently for others as well[1]. How did you run the test (make test or directly via run-tests.php)? [1] <https://qa.php.net/reports/run_tests.php?version=5.6.10> Previous Comments: ------------------------------------------------------------------------ [2015-07-09 12:53:28] james at asgrim dot com 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 this bug report at https://bugs.php.net/bug.php?id=70034&edit=1

« previous php.bugs (#194254) next »