php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31849 get_current_user() still crashes on page refresh
Submitted: 2005-02-04 22:54 UTC Modified: 2005-04-07 01:00 UTC
Votes:5
Avg. Score:4.6 ± 0.5
Reproduced:4 of 4 (100.0%)
Same Version:4 (100.0%)
Same OS:2 (50.0%)
From: info at cpgnuke dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 4CVS-2005-02-05 OS: Windows xp sp2
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-02-04 22:54 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-04 23:16 UTC] 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-05 18:46 UTC] info at cpgnuke dot com
The issue still exists
 [2005-02-05 23:54 UTC] 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-10 01:12 UTC] info at cpgnuke dot com
sometimes guillaume his example script crashes the server.
But sometimes we only get it to crash when we run our complete CMS setup only.

The issue is very strange but does crash apache.

I can't give you a small script cos i've tried a bunch and they all didn't have issues.
It only has issues in our full CMS (2 MB ZIP package)
 [2005-02-21 21:24 UTC] guillaume at nlbox dot com
The crash of get_current_user() goes away after I did log on onto the network. (php4.3.10, Win98, Xitami webserver).
Somehow my doze-box does not log me on at startup.
In that case everything works, but php crashes.
Doing a fresh logon vaporizes the crash.

Cheers,
wim niemans
 [2005-03-16 07:45 UTC] sniper@php.net
Does it really _CRASH_ or doesn't it just start?

 [2005-03-19 15:32 UTC] info at cpgnuke dot com
PHP starts
then you run a PHP script
A errorbox pops up in windows and PHP dies.
 [2005-03-20 17:52 UTC] sniper@php.net
And what does it say in that errorbox? 

 [2005-03-28 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2005-03-28 07:21 UTC] info at cpgnuke dot com
Don't know it's not me personaly having this issue.
Other people who use my system reported it to me and don't know anymore since our system just does a workaround to prevent crashing.
 [2005-03-30 22:51 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip

Also, we still have not enough information about this issue.
Please, try to get it with the debug pack: http://snaps.php.net/win32/php5.0-dbgpack-win32-latest.zip if you're able to replicate the problem with it.
 [2005-04-07 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 04:01:27 2024 UTC