Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61463 - Fatal error: "Cannot re-assign $this" error using Mythweb with PHP5
Summary: Fatal error: "Cannot re-assign $this" error using Mythweb with PHP5
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-23 20:11 UTC by Keith Landry
Modified: 2004-10-30 17:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Landry 2004-08-23 20:11:52 UTC
When accessing http://<serverName>/mythweb/, the following error is produced:

"Fatal error: Cannot re-assign $this in /var/www/localhost/htdocs/mythweb/includes/programs.php on line 299"

It appears MythWeb utilizes PHP4 "feature":

====
  // Redefine this object - we won't need any filesize information because this isn't a recorded program
                $this = load_one_program($this->starttime, $this->chanid);
            }
====

Discussion of error:

http://cvs.php.net/co.php/ZendEngine2/ZEND_CHANGES
http://bugs.php.net/bug.php?id=27659
http://news.php.net/php.internals/start/3418


Reproducible: Always
Steps to Reproduce:
1.  emerge mod_php 5.0.1 
2.  emerge mythweb 0.15.1
3.  Access http://<serverName>/mythweb/  

Actual Results:  

"Fatal error: Cannot re-assign $this in
/var/www/localhost/htdocs/mythweb/includes/programs.php on line 299"

Expected Results:  
Web page displayed

wintermute ~ # emerge info
Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r0,
2.6.8-gentoo-r1)
=================================================================
System uname: 2.6.8-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 3.06GHz
Gentoo Base System version 1.5.3
distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control /var/www/localhost/htdocs//mythweb/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://mirrors.tds.net/gentoo http://gentoo.osuosl.org/
http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi aim alsa apm arts avi berkdb bonobo cdr crypt cups curl curlwrappers
dba divx4linux dvd encode esd ethereal flac foomaticdb ftp gd gdbm gif gnome
gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile iconv icq imlib ipv6 jabber java
joystick jpeg libg++ libwww lirc mad mikmod motif mozilla mpeg mysql ncurses nls
nptl odbc offensive oggvorbis opengl oscar oss pam pcmcia pcre pdflib perl png
pnp posix python quicktime readline ruby samba sdl session sessions slang slp
snmp soap spell spl ssl svga sysvipc tcltk tcpd theora threads tidy tiff
transcode truetype usb videos x86 xinerama xml2 xmms xosd xv xvid yahoo zlib"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-08-24 01:26:21 UTC
php team, media-tv atm is virtually non-existent (waiting for max's return) -- I'm trying to find people to populate the team, but in the meantime, if y'all could provide some input that'd be great!
Comment 2 Benjamin Richter 2004-08-27 03:13:03 UTC
I made a little patch file to fix the "$this pointer reassigned" error with mythweb.
Comment 3 Daniel Ahlberg (RETIRED) gentoo-dev 2004-09-10 15:15:16 UTC
Everything but a bug in Scheduled Recordings seems to be fixed in 0.16. The only bug I could find was "Fatal error: Cannot use object of type Recording as array in /var/www/localhost/htdocs/mythweb/recording_schedules.php on line 24"
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2004-09-13 16:32:45 UTC
This was actually a bug that I filed upstream and am persuing currently. (don't have the bug # handy from bugzilla). it's all fixed currently except for the occational code path problem that aliz mentioned. Oddly enough if you run mythfilldatabase and have your db full, then reload the page... the problem goes away. I haven't looked into it but I have notified upstream. They might release a 0.16.1 for it.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2004-09-14 09:55:28 UTC
Here are the bug reports:

http://www.mythtv.org/bugs/show_bug.cgi?id=90

http://www.mythtv.org/bugs/show_bug.cgi?id=91

Bug #91 is the bug mentioned in comment 3
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2004-10-30 17:26:07 UTC
Upstream is aware of the problem and they're just sitting on it. It'll hopefully be fixed in the next version. All we can do is wait for upstream.