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
Change History
Changed 4 years ago by tom@…
- Attachment mythweb-php5.2.diff added
comment:1 Changed 4 years ago by kormoc
- Owner changed from xris to kormoc
- Status changed from new to accepted

Working patch...