[livesupport-dev] LS under PHP5
  • I spent some time trying to create a gentoo ebuild for LiveSupport, and
    (long story short) I ended up having to emerge php5.

    while I'm not generally aware of the differences between php4 and php5,
    I just gave it a try. while the HTML UI does start up, I do get error
    messages, and I can't actually log in.

    was LS tried before on php5? is it supposed to work?


    some of the error messages I get:


    Warning:
    parse_url(http://localhost:3344ls_scheduler_urlPrefix/ls_scheduler_xmlRpcPrefix)
    [function.parse-url]: Unable to parse url in
    /usr/var/LiveSupport/htmlUI/var/ui_schedulerPhpClient.class.php on line 410


    Fatal error: Using $this when not in object context in
    /usr/var/LiveSupport/htmlUI/var/localizer/data.inc.php on line 153
  • 9 Comments sorted by
  • On Thu, 22 Sep 2005, [UTF-8] Ákos Maróy wrote:

    > I spent some time trying to create a gentoo ebuild for LiveSupport, and
    > (long story short) I ended up having to emerge php5.
    >
    > while I'm not generally aware of the differences between php4 and php5,
    > I just gave it a try. while the HTML UI does start up, I do get error
    > messages, and I can't actually log in.
    >
    > was LS tried before on php5? is it supposed to work?
    I have tryed it with php5 (gentoo-ebuild i posted before) and it doesn't
    work at some points. I ended up with masking php5. Some like classes (->)
    doesn't work the same for php5.


    Greetings,

    Stefan

    ps. btw did you try the CVS ebuild?
  • Stefan de Konink wrote:
    > ps. btw did you try the CVS ebuild?

    no, I made one based on the 1.0 final sources...
  • On Thu, 22 Sep 2005,
  • Stefan de Konink wrote:
    > Is the tarball that different in compare to the CVS? I previously posted
    > the ebuilds for the other 'dependencies'. Or do you want to put everything
    > in one ebuild (ugly).

    no, I made separate packages, just added the whole portage tree to the
    svn source tree, see here:
    http://code.campware.org/projects/livesupport/browser/trunk/livesupport/etc/portage/

    if you set your PORTDIR_OVERLAY to livesupport/etc/portage/ , it should
    work.

    but: as the quite recent PEAR modules are already requiring dev-lang/php
    instead of dev-php/php, it basically bumps up your PHP to PHP5 - and it
    seems LS doesn't work with PHP5 just yet Sad


    Akos
  • On Fri, 23 Sep 2005,
  • Stefan de Konink wrote:
    > Will look at then very soon.

    thanks...

    > Is it possible to make a different branch in CVS for PHP5 code?

    it is, but do you think this would be such a huge task to accomplish?
    are you thinking of fixing this?

    (BTW, we're using subversion by now)
  • Hi folks,

    between PHP4 and PHP5 they changed some oo-related behavior.
    One basic thing is that now references instead of copys are standard. The
    code $a = $b, in PHP4 creates new variable $a containing the value of $b. In
    PHP5 it is an reference, like $a = &$b before, so $a and $b are just two
    names for the same thing. Of course, this can cause some unwanted behavior
    if $b is changed and $a have to keep old value.

    So we would have to decide if it makes much sence, at this time, to develop
    a second branch for PHP5, or if we concentrate of the features as long PHP4
    is standard.


    Sebastian
  • On Fri, 23 Sep 2005,
  • Sebastian Goebel wrote:
    > So we would have to decide if it makes much sence, at this time, to develop
    > a second branch for PHP5, or if we concentrate of the features as long PHP4
    > is standard.

    and is it possible to write code that works on both php4 and php5?

    can php5 be made to work like php4 with some php.ini settings?