#40253 [NEW]: Bug with classes!
| From: | seregwethrin at gmail dot com | Date: | Sat, 27 Jan 2007 00:10:31 +0000 |
| Subject: | #40253 [NEW]: Bug with classes! | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-108119@lists.php.net to get a copy of this message | ||
From: seregwethrin at gmail dot com
Operating system: Windows Server 2003
PHP version: 5.2.0
PHP Bug Type: Scripting Engine problem
Bug description: Bug with classes!
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 bug report at http://bugs.php.net/?id=40253&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40253&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40253&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40253&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40253&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40253&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40253&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40253&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40253&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40253&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40253&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40253&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40253&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40253&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40253&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40253&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40253&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40253&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40253&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40253&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40253&r=mysqlcfg