Req #66889 [NEW]: ReflectionException message should have quotes around class name

From: Date: Wed, 12 Mar 2014 11:16:57 +0000
Subject: Req #66889 [NEW]: ReflectionException message should have quotes around class name
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184746@lists.php.net to get a copy of this message
From:             sam at rmcreative dot ru
Operating system: All
PHP version:      5.4.26
Package:          Reflection related
Bug Type:         Feature/Change Request
Bug description:ReflectionException message should have quotes around class name

Description:
------------
Currently if there's a space in class name such as new
\ReflectionClass('\hey\there\is\Space '), it's very hard to get it from
error message:

Fatal error: Uncaught exception 'ReflectionException' with message
'Class \hey\t
here\is\Space  does not exist' in ...

Would be great to have it like the following:

Fatal error: Uncaught exception 'ReflectionException' with message
'Class "\hey\t
here\is\Space " does not exist' in ...

Test script:
---------------
<?php
new \ReflectionClass('\hey\there\is\Space ');

Expected result:
----------------
Exception with class name in quotes

Actual result:
--------------
Exception with class name w/o quotes

-- 
Edit bug report at https://bugs.php.net/bug.php?id=66889&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=66889&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=66889&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=66889&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=66889&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=66889&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=66889&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=66889&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=66889&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=66889&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=66889&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=66889&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=66889&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=66889&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66889&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=66889&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=66889&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=66889&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66889&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=66889&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=66889&r=mysqlcfg



Thread (4 messages)

« previous php.bugs (#184746) next »