Edit report at https://bugs.php.net/bug.php?id=54127&edit=1
ID: 54127 Updated by: [email protected] Reported by: anj2j at yahoo dot de Summary: Strange Object behaviour after not trackable PHP Process error?! -Status: Feedback +Status: No Feedback Type: Bug Package: *General Issues Operating System: Ubuntu 10.04 LTS PHP Version: 5.3SVN-2011-03-01 (snap) New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2011-03-01 13:28:02] [email protected] Please report bugs only when using php.net versions of PHP. Ubuntu applies different patches we can't control. ------------------------------------------------------------------------ [2011-03-01 13:26:38] [email protected] 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 https://bugs.php.net/bug.php?id=54127&edit=1
