1
m0nty
xoops 2.0.9 & php 5 + modules ??
  • 2004/12/27 15:39

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


i know the new release is apparently php 5 compatible (i haven't had problems running it under php 5).

i'm just curious as to the changes made.. especially with these:

$HTTP_SERVER_VARS - $HTTP_SESSION_VARS - $HTTP_GET_VARS - $HTTP_POST_VARS etc..

would modules actually need to be changed that use those to make them more compliant or will they be ok?

& what other functions need to be changed for php 5? as i know myReviews 2.1 has a problem running in XOOPS 2.0.9 on the admin side of things..

2
Mithrandir
Re: xoops 2.0.9 & php 5 + modules ??

Reference: http://zend.com/manual/migration5.incompatible.php

HTTP_XXX_VARS are not by default enabled in PHP 5 and are about to be removed totally (if my memory serves me right), so one should use the short version from now on to ensure compatibility.

strpos(), array_merge() are changed a bit, but should not break too much

of the more severe ones are:
- No classes may have a method called clone()
- get_class($object_reference) and more now returns a string with upper and lower case letters as in the class name, whereas it used to be all lower-case
- You cannot reassign $this inside a class' methods
- an object with no properties is no longer considered 'empty'

3
m0nty
Re: xoops 2.0.9 & php 5 + modules ??
  • 2004/12/27 16:35

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


ok thanks Mith :)

will take a look thru the reviews code to see what i can see that's likely to cause it.. shouldn't be that hard to sort it hopefully :)

4
Mithrandir
Re: xoops 2.0.9 & php 5 + modules ??

One of the reasons, why I like the Zend Studio IDE - the "Analyze code" can find at least some of the PHP5-incompatibilities. Saves me a bunch of work.

5
m0nty
Re: xoops 2.0.9 & php 5 + modules ??
  • 2004/12/27 17:06

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


thanks :) i'll look into that, i'm abt to start a php course at college (doing visual basic at mo) so anything that can help make things easier is a plus.. thanks again..

6
Mithrandir
Re: xoops 2.0.9 & php 5 + modules ??

it's not free, though - not even cheap.
However, there is a free trial version on zend.com

I find it worth the money, but I do have higher needs than most, I know.

Login

Who's Online

174 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 174


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits