ID: 40253
User updated by: seregwethrin at gmail dot com
Reported By: seregwethrin at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: Unknown/Other Function
Operating System: Windows Server 2003
PHP Version: 5.2.0
New Comment:
Did you try to run class?
$x = new general();
Previous Comments:
------------------------------------------------------------------------
[2007-01-27 12:56:19] [EMAIL PROTECTED]
Cannot reproduce or see any other problems with the code you've
provided.
------------------------------------------------------------------------
[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