ID:               39381
 Comment by:       Nikolas dot hagelstein at gmail dot com
 Reported By:      rygorde4 at sbcglobal dot net
 Status:           Feedback
 Bug Type:         Unknown/Other Function
 Operating System: Not Applicable
 PHP Version:      5.2.0
 New Comment:

Same at wordpress 2.05 using php5.2:
 PHP Fatal error:  Call to a member function get() on a non-object in
/var/www/www.trashboard.de/htdocs                     
/wp-includes/cache.php on line 28
Reverting to 5.1.6 made it work again


Previous Comments:
------------------------------------------------------------------------

[2006-11-08 13:44:38] [EMAIL PROTECTED]

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 the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.



------------------------------------------------------------------------

[2006-11-06 16:46:52] harveyelliott at hotmail dot com

I currently get a issue with php 5.2 with ZenCart. I roll back to php
5.1.6 and it works fine... of course its all due to this php 5.2
bug...

Im curently stuck in a hard place.. because.. Im a Web Hosting
provider..

So either.. I run php 5.2 to get the security fixes and my customers
are SOL that has issues with this bug..


Or.. run insecure code to keep my customers happy..


My question is.. any idea when this is going to be fixed?
If I asked in the wrong place... please direct me to the correct
place... as this is very important to me...

------------------------------------------------------------------------

[2006-11-06 13:42:19] c dot boulton at mybboard dot com

Maybe relates to this?
http://bugs.php.net/bug.php?id=36759

------------------------------------------------------------------------

[2006-11-05 15:34:34] linksys at yahoo dot com

The same issue occurs in ZenCart v1.3.6 with PHP 5.2.0 regarding using
class as global variable. Discussions are here:
http://www.zen-cart.com/forum/showthread.php?t=50534

------------------------------------------------------------------------

[2006-11-04 19:20:52] rygorde4 at sbcglobal dot net

Description:
------------
If functions are called within __destruct without
register_shutdown_function being called on __destruct within a class,
and global variables (that are assigned classes) called in that class
will not work. This is a bug
specificly with PHP 5.2.0.

This bug was reported multiple times at my discussion system (here
http://community.mybboard.net/showthread.php?tid=13506 and here
http://community.mybboard.net/showthread.php?tid=12430). Calling
register_shutdown_function on __destruct, I was able to use that as a
workaround, but the problem remains with  __destruct. Please contact
me
with any information you need, and I will gladly assist you.

Reproduce code:
---------------
You can install a fresh version of MyBB 1.2 here:
http://mybboard.com/downloads.php using PHP 5.2.0. The problems lay in
inc/class_core.php

Expected result:
----------------
No error, shutdown functions should run properly

Actual result:
--------------
Fatal error: Call to a member function run_hooks() on a non-object in
/www/xxx/pub/inc/functions.php on line 146

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/39381

-- 
Edit this bug report at http://bugs.php.net/?id=39381&edit=1

Reply via email to