Modify

Ticket #5277 (closed patch: fixed)

Opened 4 years ago

Last modified 4 years ago

Problem with mythweb and PHP 5.2

Reported by: tom@… Owned by: kormoc
Priority: minor Milestone: unknown
Component: mythweb Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

I just upgraded to latest SVN on my Ubuntu 7.10 backend, and running mythweb I got the following error:

Fatal error: Nesting level too deep - recursive dependency? in /usr/local/src/mythweb/classes/Database.php on line 202

The following patch fixes it:

Index: mythweb/classes/Database.php =================================================================== --- mythweb/classes/Database.php (revision 17185) +++ mythweb/classes/Database.php (working copy) @@ -199,7 +199,7 @@

  • @param string $name The global name this instance is registered as.

//

function register_global_name($name) {

  • if ($GLOBALS[$name] == $this) {

+ if ($GLOBALS[$name] === $this) {

$this->global_name = $name; return true;

}

Attachments

mythweb-php5.2.diff (520 bytes) - added by tom@… 4 years ago.
Working patch…

Change History

Changed 4 years ago by tom@…

Working patch...

comment:1 Changed 4 years ago by kormoc

  • Owner changed from xris to kormoc
  • Status changed from new to accepted

comment:2 Changed 4 years ago by kormoc

  • Status changed from accepted to closed
  • Resolution set to fixed

[17434] fixes this

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.