Bug #70282 [Fbk->Opn]: class not shown in reflection exception

From: Date: Tue, 18 Aug 2015 10:15:53 +0000
Subject: Bug #70282 [Fbk->Opn]: class not shown in reflection exception
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195271@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70282&edit=1

 ID:                 70282
 User updated by:    info at dynasource dot eu
 Reported by:        info at dynasource dot eu
 Summary:            class not shown in reflection exception
-Status:             Feedback
+Status:             Open
 Type:               Bug
 Package:            Reflection related
 Operating System:   W7
 PHP Version:        7.0.0beta3
 Block user comment: N
 Private report:     N

 New Comment:

not in the attachment I posted


Previous Comments:
------------------------------------------------------------------------
[2015-08-18 09:07:45] laruence@php.net

I don't understand what problem here?

"$class" is  substituted as expected

------------------------------------------------------------------------
[2015-08-17 11:59:22] info at dynasource dot eu

Description:
------------
when creating a new ReflectionClass object with a class that doesnt exist, this class is not showing
in the reflection class exception. This does happen in 5.6.* versions of PHP.

Test script:
---------------
$reflection = new ReflectionClass($class);



Expected result:
----------------
an exception with "$class does not exist"

Actual result:
--------------
an exception with "Class does not exist" (not the variable $class)


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=70282&edit=1


Thread (15 messages)

« previous php.bugs (#195271) next »