Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

PHP 5.3

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


stichnot at gmail

Jun 8, 2010, 4:11 PM

Post #1 of 6 (1066 views)
Permalink
PHP 5.3

Sorry for the n00b question. I updated to the latest trunk and now I
have lost mythweb because it requires php 5.3. My MythDora 10 based
system only seems to know about php 5.2.9. Any suggestions on how to
get my system up to php 5.3, short of building from source?

Jim
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


seven at seven

Jun 8, 2010, 5:00 PM

Post #2 of 6 (1035 views)
Permalink
Re: PHP 5.3 [In reply to]

> Sorry for the n00b question. I updated to the latest trunk and now I
> have lost mythweb because it requires php 5.3. My MythDora 10 based
> system only seems to know about php 5.2.9. Any suggestions on how to
> get my system up to php 5.3, short of building from source?
>
> Jim

Upgrade to Mythdora 12.23 its pretty painless but take a sql backup first.

Cheers,

Anthony



_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


jyavenard at gmail

Jun 9, 2010, 8:03 AM

Post #3 of 6 (1022 views)
Permalink
Re: PHP 5.3 [In reply to]

On 9 June 2010 10:00, Anthony Giggins <seven [at] seven> wrote:
>> Sorry for the n00b question.  I updated to the latest trunk and now I
>> have lost mythweb because it requires php 5.3.  My MythDora 10 based
>> system only seems to know about php 5.2.9.  Any suggestions on how to
>> get my system up to php 5.3, short of building from source?
>>
>> Jim
>
> Upgrade to Mythdora 12.23 its pretty painless but take a sql backup first.

Quite painful nevertheless...

Ubuntu 9.10 ships with 5.2.10.

As my system is rock solid finally, I really don't feel like upgrading
to a new OS once again :(
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


jyavenard at gmail

Jun 9, 2010, 8:16 AM

Post #4 of 6 (1014 views)
Permalink
Re: PHP 5.3 [In reply to]

Hi

On 10 June 2010 01:03, Jean-Yves Avenard <jyavenard [at] gmail> wrote:
> As my system is rock solid finally, I really don't feel like upgrading
> to a new OS once again :(
>

http://www.php.net/manual/en/function.get-called-class.php#93799

I added

if(!function_exists('get_called_class')) {
function get_called_class($bt = false,$l = 1) {
if (!$bt) $bt = debug_backtrace();
if (!isset($bt[$l])) throw new Exception("Cannot find called class
-> stack level too deep.");
if (!isset($bt[$l]['type'])) {
throw new Exception ('type not set');
}
else switch ($bt[$l]['type']) {
case '::':
$lines = file($bt[$l]['file']);
$i = 0;
$callerLine = '';
do {
$i++;
$callerLine = $lines[$bt[$l]['line']-$i] . $callerLine;
} while (stripos($callerLine,$bt[$l]['function']) === false);
preg_match('/([a-zA-Z0-9\_]+)::'.$bt[$l]['function'].'/',
$callerLine,
$matches);
if (!isset($matches[1])) {
// must be an edge case.
throw new Exception ("Could not find caller class:
originating method call is obscured.");
}
switch ($matches[1]) {
case 'self':
case 'parent':
return get_called_class($bt,$l+1);
default:
return $matches[1];
}
// won't get here.
case '->': switch ($bt[$l]['function']) {
case '__get':
// edge case -> get class of calling object
if (!is_object($bt[$l]['object'])) throw new
Exception ("Edge case fail. __get called on non object.");
return get_class($bt[$l]['object']);
default: return $bt[$l]['class'];
}

default: throw new Exception ("Unknown backtrace method type");
}
}
}

to /usr/share/mythtv/mythweb/classes/MythBase.php

mythweb works again :)
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


stichnot at gmail

Jun 9, 2010, 12:41 PM

Post #5 of 6 (1001 views)
Permalink
Re: PHP 5.3 [In reply to]

On Wed, Jun 9, 2010 at 8:16 AM, Jean-Yves Avenard <jyavenard [at] gmail> wrote:
> Hi
>
> On 10 June 2010 01:03, Jean-Yves Avenard <jyavenard [at] gmail> wrote:
>> As my system is rock solid finally, I really don't feel like upgrading
>> to a new OS once again :(
>>
>
> http://www.php.net/manual/en/function.get-called-class.php#93799
>
> I added
>
[...]

>
> to /usr/share/mythtv/mythweb/classes/MythBase.php
>
> mythweb works again :)

Awesome! Thanks!!!

Jim
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


redpepperracing at gmail

Jun 9, 2010, 12:55 PM

Post #6 of 6 (1005 views)
Permalink
Re: PHP 5.3 [In reply to]

On Wed, Jun 9, 2010 at 3:41 PM, Jim Stichnoth <stichnot [at] gmail> wrote:
> On Wed, Jun 9, 2010 at 8:16 AM, Jean-Yves Avenard <jyavenard [at] gmail> wrote:
>> Hi
>>
>> On 10 June 2010 01:03, Jean-Yves Avenard <jyavenard [at] gmail> wrote:
>>> As my system is rock solid finally, I really don't feel like upgrading
>>> to a new OS once again :(
>>>
>>
>> http://www.php.net/manual/en/function.get-called-class.php#93799
>>
>> I added
>>
> [...]
>
>>
>> to /usr/share/mythtv/mythweb/classes/MythBase.php
>>
>> mythweb works again :)
>
> Awesome!  Thanks!!!
>
> Jim

Thanks from me too! I really didn't want to upgrade my myth backend just yet...

Tom
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.