|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-01-27 12:56 UTC] tony2001@php.net
[2007-01-31 22:08 UTC] seregwethrin at gmail dot com
[2007-01-31 22:17 UTC] tony2001@php.net
[2007-02-08 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 11:00:01 2025 UTC |
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)