php.net |  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
 [2011-03-01 13:12 UTC] anj2j at yahoo dot de
Description:
------------
Hello PHP-Community,

i have very strange behaviour with object.

My setup is: 

Ubuntu 10.04 LTS (8vCPU, 12GB RAM)
nginx/0.7.65 
PHP-FPM 5.3.3-1ubuntu9.3ppa1~lucid1 (https://launchpad.net/~fabianarias/+archive/php5)

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>';
                
                var_dump($this);

                phpinfo();

        }
}

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!" } 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-01 13:26 UTC] johannes@php.net
-Status: Open +Status: Feedback
 [2011-03-01 13:26 UTC] johannes@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/
 [2011-03-01 13:28 UTC] johannes@php.net
Please report bugs only when using php.net 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 Dec 14 00:01:26 2024 UTC