php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62560 \ReflectionProperty on Exception::$trace has incorrect internal name
Submitted: 2012-07-13 20:46 UTC Modified: 2013-02-18 00:35 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: franssen dot roland at gmail dot com Assigned:
Status: No Feedback Package: Reflection related
PHP Version: 5.4.4 OS: Ubuntu
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-07-13 20:46 UTC] 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"


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-13 22:05 UTC] rasmus@php.net
I can't replicate that here on Ubuntu. Do you have any other extensions 
installed? APC, XDebug, etc. ?
 [2012-07-13 22:05 UTC] rasmus@php.net
-Status: Open +Status: Feedback
 [2012-07-14 08:06 UTC] franssen dot roland at gmail dot com
APC is enabled, but disabled on CLI.

This reminds me of issues with \RuntimeException;
https://bugs.php.net/bug.php?id=62419#1341752621
 [2012-07-14 08:07 UTC] franssen dot roland at gmail dot com
Memcached is also enabled.
 [2012-07-14 08:24 UTC] franssen dot roland at gmail dot com
Test script works as expected when APC is disabled.
 [2012-07-14 14:55 UTC] rasmus@php.net
Right, we fixed something related to this recently in APC. Grab the svn version 
and try again.
 [2012-07-14 20:49 UTC] franssen dot roland at gmail dot com
Is the fix available in 5.4.5? Im just a simple programmer using the dotdeb packages... never compiled PHP myself before ;-)
 [2012-08-01 08:24 UTC] franssen dot roland at gmail dot com
Seems to be fixed in 5.4.5
 [2013-02-18 00:35 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 13:01:30 2024 UTC