Opened 12 years ago

Closed 12 years ago

#5277 closed patch (fixed)

Problem with mythweb and PHP 5.2

Reported by: tom@… Owned by: Rob Smith
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 (1)

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

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by tom@…

Attachment: mythweb-php5.2.diff added

Working patch...

comment:1 Changed 12 years ago by Rob Smith

Owner: changed from xris to Rob Smith
Status: newaccepted

comment:2 Changed 12 years ago by Rob Smith

Resolution: fixed
Status: acceptedclosed

[17434] fixes this

Note: See TracTickets for help on using tickets.