#40253 [Opn->Fbk]: Bug with classes!
| From: | tony2001@php.net | Date: | Sat, 27 Jan 2007 12:56:20 +0000 |
| Subject: | #40253 [Opn->Fbk]: Bug with classes! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-108123@lists.php.net to get a copy of this message | ||
ID: 40253
Updated by: tony2001@php.net
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