|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2016-08-22 05:02 UTC] requinix@php.net
 
-Status: Open
+Status: Duplicate
  [2016-08-22 05:02 UTC] requinix@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 21:00:02 2025 UTC | 
Description: ------------ When getting the string value of a ReflectionType instance that represents a class name, 7.1.0beta3 seems to prefix the value with a namespace separator. This behavior is inconsistent with the treatment of runtime class names across all other PHP functions, such as get_class(), that do not use a namespace separator prefix. It is also a regression. 7.1.0_beta1 did not exhibit this issue (not sure about beta 2). Test script: --------------- <?php $f = function (stdClass $a) {}; $r = new ReflectionFunction($f); $p = $r->getParameters(); $t = $p[0]->getType(); echo $t; Expected result: ---------------- stdClass Actual result: -------------- \stdClass