|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54127 Strange Object behaviour after not trackable PHP Process error?!
Submitted: 2011-03-01 13:12 UTC Modified: 2013-02-18 00:34 UTC
From: anj2j at yahoo dot de Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.3SVN-2011-03-01 (snap) OS: Ubuntu 10.04 LTS
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: anj2j at yahoo dot de
New email:
PHP Version: OS:


 [2011-03-01 13:12 UTC] anj2j at yahoo dot de
Hello PHP-Community,

i have very strange behaviour with object.

My setup is: 

Ubuntu 10.04 LTS (8vCPU, 12GB RAM)
PHP-FPM 5.3.3-1ubuntu9.3ppa1~lucid1 (

The server works great at all for a while, and then some of the 20 Processes seemed not to work correctly. The test script keeps failing until i restart the php5-fpm processes. 

It is 100% an PHP error. Our research on the problem gives us the clue that writing on internal variables in objects is working (dump of $this), but the reading of that is not.

This is really strange, and if there is a better possibility to get more debug information on php, please advise me.

P.S. This error also occures on an apache+PHP 5.3.2-1ubuntu4.7 with only one process!

Test script:

class testme{
        protected $protected;
        public $public;

        public function __construct(){
                $this->protected = 'WORKS!';
                $this->public = 'WORKS!';

                echo '<br>TEST protected: '.$this->protected.'<br>';
                echo '<br>TEST public: '.$this->public.'<br>';



new testme();

Expected result:
TEST protected: WORKS!

TEST public: WORKS!
object(testme)#1 (2) { ["protected":protected]=> string(6) "WORKS!" ["public"]=> string(6) "WORKS!" } 

Actual result:
TEST protected:

TEST public:
object(testme)#1 (2) { ["protected":protected]=> string(6) "WORKS!" ["public"]=> string(6) "WORKS!" } 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-01 13:26 UTC]
-Status: Open +Status: Feedback
 [2011-03-01 13:26 UTC]
Please try using this snapshot:
For Windows:
 [2011-03-01 13:28 UTC]
Please report bugs only when using versions of PHP. Ubuntu applies different patches we can't control.
 [2013-02-18 00:34 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: Sat May 25 18:01:32 2024 UTC