Bug #54127 [NEW]: Strange Object behaviour after not trackable PHP Process error?!

From: Date: Tue, 01 Mar 2011 12:12:06 +0000
Subject: Bug #54127 [NEW]: Strange Object behaviour after not trackable PHP Process error?!
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-159123@lists.php.net to get a copy of this message
From:             
Operating system: Ubuntu 10.04 LTS
PHP version:      5.3SVN-2011-03-01 (snap)
Package:          *General Issues
Bug Type:         Bug
Bug description:Strange Object behaviour after not trackable PHP Process error?!

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

-- 
Edit bug report at http://bugs.php.net/bug.php?id=54127&edit=1
-- 
Try a snapshot (PHP 5.2):            http://bugs.php.net/fix.php?id=54127&r=trysnapshot52
Try a snapshot (PHP 5.3):            http://bugs.php.net/fix.php?id=54127&r=trysnapshot53
Try a snapshot (trunk):              http://bugs.php.net/fix.php?id=54127&r=trysnapshottrunk
Fixed in SVN:                        http://bugs.php.net/fix.php?id=54127&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54127&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=54127&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=54127&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=54127&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=54127&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=54127&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=54127&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=54127&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=54127&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=54127&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=54127&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=54127&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=54127&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=54127&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=54127&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=54127&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=54127&r=mysqlcfg



Thread (4 messages)

« previous php.bugs (#159123) next »