ID:               40253
 Updated by:       [EMAIL PROTECTED]
 Reported By:      seregwethrin at gmail dot com
-Status:           Open
+Status:           Feedback
-Bug Type:         Scripting Engine problem
+Bug Type:         Unknown/Other Function
 Operating System: Windows Server 2003
 PHP Version:      5.2.0
 New Comment:

Cannot reproduce or see any other problems with the code you've
provided.


Previous Comments:
------------------------------------------------------------------------

[2007-01-27 00:10:31] seregwethrin at gmail dot com

Description:
------------
I've tested this with Apache 2.0.59 and PHP 5.2.0

There's an critical class error. When you want to insert a predefined
variable (i've get error with $_SESSION) as class var like
$this->mysession

If you can't see this error i can send a video about error.

Reproduce code:
---------------
<?php
class general
{
        var $db;
        var $sess;
        var $eC;
        
        function general()
        {
                global $db, $eC, $_SESSION;
                //OR global $db, $eC;
                $this->db = $db;
                $this->eC = $eC;
                $this->sess = $_SESSION; //error line
        }
}
?>

Expected result:
----------------
Page loading loading and loading forever... No error, no log (apache
and php log files are clear), no warning, and page loading... Nothing
shows at the page.

Actual result:
--------------
I'll install PHP 5.1.2 and there's no error at 5.1.2. So there's and
bug at php 5.2.0 (i'm sure)


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40253&edit=1

Reply via email to