Bug #62560 [Com]: \ReflectionProperty on Exception::$trace has incorrect internal name

From: Date: Sat, 14 Jul 2012 08:06:13 +0000
Subject: Bug #62560 [Com]: \ReflectionProperty on Exception::$trace has incorrect internal name
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-171941@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62560&edit=1

 ID:                 62560
 Comment by:         franssen dot roland at gmail dot com
 Reported by:        franssen dot roland at gmail dot com
 Summary:            \ReflectionProperty on Exception::$trace has
                     incorrect internal name
 Status:             Feedback
 Type:               Bug
 Package:            Reflection related
 Operating System:   Ubuntu
 PHP Version:        5.4.4
 Block user comment: N
 Private report:     N

 New Comment:

APC is enabled, but disabled on CLI.

This reminds me of issues with \RuntimeException;
https://bugs.php.net/bug.php?id=62419#1341752621


Previous Comments:
------------------------------------------------------------------------
[2012-07-13 22:05:57] rasmus@php.net

I can't replicate that here on Ubuntu. Do you have any other extensions 
installed? APC, XDebug, etc. ?

------------------------------------------------------------------------
[2012-07-13 20:46:22] franssen dot roland at gmail dot com

Description:
------------
Well this is awkward... this seems to happens as of php 5.4.4

Test script:
---------------
<?php
$reflection = new \ReflectionClass(new \Exception('...'));
var_dump($reflection->getProperty('trace')->getName());
var_dump($reflection->getProperty('previous')->getName());

Expected result:
----------------
string(5) "trace"
string(8) "previous"


Actual result:
--------------
string(14) "trace"e��0�w	"
string(8) "previous"



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



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


Thread (9 messages)

« previous php.bugs (#171941) next »