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

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...


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

[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

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

[2006-11-04 19:18:23] 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 classes 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 


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


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

Reply via email to