#31849 [Com]: get_current_user() still crashes on page refresh
| From: | guillaume at nlbox dot com | Date: | Wed, 09 Feb 2005 16:50:00 +0000 |
| Subject: | #31849 [Com]: get_current_user() still crashes on page refresh | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-73709@lists.php.net to get a copy of this message | ||
ID: 31849
Comment by: guillaume at nlbox dot com
Reported By: info at cpgnuke dot com
Status: Feedback
Bug Type: Reproducible crash
Operating System: Windows xp sp2
PHP Version: 4CVS-2005-02-05
New Comment:
What about the script
<?php
echo get_current_user();
?>
I am using Win32: win98 4.10.1998 with all known patches
Webserver Xitami V2.4d9
It happens too in a dos-box:
PHP caused an invalid page fault in
module PHP4TS.DLL at 015f:100a0623.
Registers:
EAX=1000cd85 CS=015f EIP=100a0623 EFLGS=00010212
EBX=011730d4 SS=0167 ESP=0063f5e4 EBP=011725e0
ECX=00000000 DS=0167 ESI=00762d2f FS=3a17
EDX=0000002e ES=0167 EDI=00000001 GS=0000
Bytes at CS:EIP:
88 50 ff 75 eb 5e c3 90 90 90 90 90 90 81 ec 04
Stack dump:
00762d30 00762d30 1000cd84 00000000 00762d30 10047efd 00000001 00762d30
100dc8d9 00000000 01173f8c 00000000 00000001 00762d30 0063fd98 00762d30
Previous Comments:
------------------------------------------------------------------------
[2005-02-05 23:54:30] sniper@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2005-02-05 18:46:49] info at cpgnuke dot com
The issue still exists
------------------------------------------------------------------------
[2005-02-05 02:07:46] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2005-02-04 23:16:25] info at cpgnuke dot com
the class function is called like:
Cache::array_load('MAIN_CFG');
As seen in cmsinit.inc line 155
------------------------------------------------------------------------
[2005-02-04 22:54:16] info at cpgnuke dot com
Description:
------------
A similar bug was reported and marked as fixed
http://bugs.php.net/bug.php?id=30133 and
http://bugs.php.net/bug.php?id=31421
But the bug still exists in a deeper level of PHP (running Apache
2.0.52)
We have our system using this function deeper inside and then it still
crashes on a page reload.
So in other words:
- go to index.php (no crash)
- refresh the page (apache crashes)
Somehow it only crashes on a reload
Reproduce code:
---------------
admin.php or index.php is called and includes the file
"includes/cmsinit.inc"
http://cpgnuke.com/cvs/html/admin.php?v=9.3#19
line 19
http://cpgnuke.com/cvs/html/index.php?v=9.1#47
line 47
cmsinit.inc includes a file "includes/classes/cpg_cache.php"
which contains the call to get_current_user() inside a class function
http://cpgnuke.com/cvs/html/includes/cmsinit.inc?v=9.7#147
line 147
http://cpgnuke.com/cvs/html/includes/classes/cpg_cache.php?v=9.3#56
line 56
Expected result:
----------------
set the define()
Actual result:
--------------
Apache crashes
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31849&edit=1