Req #66889 [NEW]: ReflectionException message should have quotes around class name
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)
- sam at rmcreative dot ru