Bug #54127 [Fbk]: Strange Object behaviour after not trackable PHP Process error?!
Edit report at http://bugs.php.net/bug.php?id=54127&edit=1
ID: 54127
Updated by: johannes@php.net
Reported by: anj2j at yahoo dot de
Summary: Strange Object behaviour after not trackable PHP
Process error?!
Status: Feedback
Type: Bug
Package: *General Issues
Operating System: Ubuntu 10.04 LTS
PHP Version: 5.3SVN-2011-03-01 (snap)
Block user comment: N
Private report: N
New Comment:
Please report bugs only when using php.net versions of PHP. Ubuntu
applies different patches we can't control.
Previous Comments:
------------------------------------------------------------------------
[2011-03-01 13:26:38] 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:12:05] 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!" }
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54127&edit=1
Thread (4 messages)