PHP 6

Think you could improve an already fantastic game? Share your ideas here.

PHP 6

Postby webjunkie » Tue Jan 26, 2010 9:44 pm

The changes that are coming with php 6 will create problems for this script. are you considering reworking the areas where this will become a problem?
here are some areas that will need fixing when server start upgrading to to 6 if the proposed changes go into effect

register_globals. In PHP 6, support for register_globals will be no more. There will be no option to turn it on or off – it will not exist.

split This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.

If you are running your own server the simple fix it dont upgrade but many shared hosting server will upgrade and your game will crash

I have not heard when php 6 will be released and I am a personal fan of slpit lol however i thought the develpoers may want to be aware of these problems on the horizon
webjunkie
peasant
 
Posts: 7
Joined: Tue Jan 26, 2010 8:53 pm

Re: PHP 6

Postby Dionysus » Tue Jan 26, 2010 11:09 pm

best practice would be to just update the code to work with the latest release of php, and try to keep the code backwards compatible for those that still have php5 on their boxes...
He who makes a beast of himself gets rid of the pain of being a man.

-Preface to "Fear and Loathing in Las Vegas: A Savage Journey to the Heart of the American Dream"
Dionysus
merchant
 
Posts: 215
Joined: Mon Sep 21, 2009 9:44 pm

Re: PHP 6

Postby webjunkie » Tue Jan 26, 2010 11:32 pm

Dionysus since many shared hosting services will update their PHP to the new one on very short or no notice those using them will crash. By now moving to fix the code to be php 6 compatible even php 5 and users before hand will if done right be albe to use the script. in fact this script uses split that is already devalued and the developers of PHP what us to stop using it. that was as of 5.3. I ma not sure why they are killing split as it was a nice way to us the same Cell for many values but a work around seems to be in order now. The Global issue is a pretty easy fix compared to split.
webjunkie
peasant
 
Posts: 7
Joined: Tue Jan 26, 2010 8:53 pm

Re: PHP 6

Postby 3aGLe28 » Wed Jan 27, 2010 3:18 am

Ill also sign for this, we need to look at the future.
Plus everyone without a dedicated server will be screwed.
3aGLe28
peasant
 
Posts: 42
Joined: Mon Sep 28, 2009 1:25 pm

Re: PHP 6

Postby laura555 » Wed Jan 27, 2010 7:55 am

hi webjunkie
You are right, but usually with php again, provides instructions for the new formulas
Sorry, I'am italian girl (EUROPE) and speack little english.....
I and my brother create by devana core, web games italy lang: http://www.travland.it
User avatar
laura555
senior citizen
 
Posts: 667
Joined: Mon Apr 06, 2009 11:09 pm

Re: PHP 6

Postby Dionysus » Thu Jan 28, 2010 4:37 am

I wasnt disagreeing at all, though it may have sounded that way. I agree that Devana needs to be updated.

I was basically saying that we need to remember to keep backwards compatibility with php5 since a lot of people are going to keep using it for quite a while still.
He who makes a beast of himself gets rid of the pain of being a man.

-Preface to "Fear and Loathing in Las Vegas: A Savage Journey to the Heart of the American Dream"
Dionysus
merchant
 
Posts: 215
Joined: Mon Sep 21, 2009 9:44 pm

Re: PHP 6

Postby Eternal » Tue Feb 02, 2010 11:22 pm

They are killing all non-preg regular expressions functions. It isn't only for
split. ereg, eregi, etc. are all being changed to it's equivalent preg_
(preg_split, preg_match, etc.).

And yeah, i think Devana should be updated. But don't need to be updated to PHP 6,
there is no need for that.

If you look at changes from 5.3, you will see there is alot of them to get people prepared for PHP 6.
User avatar
Eternal
peasant
 
Posts: 6
Joined: Tue Dec 15, 2009 3:41 pm
Location: Brazil

Re: PHP 6

Postby juju95 » Fri Feb 05, 2010 3:53 pm

Before that PHP6 will be good for production servers, il think we really have a lot of time ...

Just compare from the moment when PHP5 was announced as open to use and the moment users used it, there was quite a long time ...

And even now i don't know a lot of shared hosting only offering PHP5 hosting, most of them are offering PHP4 and PHP5 ( both can work on the same hosting ) and still a lot only offer php 4 ...

So i think that before hosting only offer php6 hosting Devana will be version 4 or 5 ( or 6 to go with PHP6 :lol: )

My opinion is for now doing a really well programmed version for PHP4 and 5 and when it will be really ok, there won't be a lot of work to make it work with php 6
juju95
peasant
 
Posts: 43
Joined: Sat Nov 14, 2009 2:28 pm


Return to Ideas

Who is online

Users browsing this forum: No registered users and 1 guest