Bug #16249 Updated: redeclare class when session_start()
| From: | ilker dot cetinkaya at ease dot de | Date: | Mon, 25 Mar 2002 09:40:31 +0000 |
| Subject: | Bug #16249 Updated: redeclare class when session_start() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-3268@lists.php.net to get a copy of this message | ||
ID: 16249
Updated by: ilker.cetinkaya@ease.de
Reported By: ilker.cetinkaya@ease.de
Status: Open
Bug Type: Session related
Operating System: Windows 2000
PHP Version: 4.1.1
New Comment:
hint:
on php4.1.2 with same config as above the problem does not exist.
good work.
thanks
ilker
Previous Comments:
------------------------------------------------------------------------
[2002-03-25 03:48:40] ilker.cetinkaya@ease.de
first of all, i want to mention that this behaviour appeared several
times before i experienced it; please refer to
http://bugs.php.net/bug.php?id=10790
which has been set to closed (although nothing was fixed on it).
what i want to report you as a definitive bug is reproduceable with a
simple script:
<?php
class tester {
}
$t = new tester();
session_start();
?>
on first hit, i see following output:
Warning: open(/tmp\sess_62fb47f4ea53d0ee595c5c7ebce98559, O_RDWR)
failed: No such file or directory (2) in C:\test_bug.php on line 8
this is correct because default session provider in php.ini is file and
my tmp directory doesn't have sufficient permissions.
hittig the script again produces this:
Fatal error: Cannot redeclare class tester in C:\test_bug.php on line
3
this is totally wrong. i do not redeclare anything on this script. it
is the very first coding line which this fatal error references.
if you hit the page more often you'll see the fatal error every 2nd
hit. this behaviour has been also complained in bug id 10790.
but i guess sniper didn't see it serious enough to make some heavy
reproducement tests.
the reason why this is a session related bug is because of
session_start() function call.
if you leave out session_start(), everything works fine.
i want to empasize once more that i could reproduce the bug on several
boxes running php4.1.1 on w2k/iis5.
here's my config:
windows 2000 (pro & server), sp2
iis5 running php_isapi.dll
extensions oci, xslt, gd, dom
php 4.1.1 isapi enabled
hth
ilker
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16249&edit=1