Topic: PHP 6.0

Rasmus Lerdorf, the man behind the first few versions of PHP, has posted a "wishlist" for what he wants to be in PHP 6.0. He writes:

Since we are breaking a lot of stuff in 6.0, at least with
Unicode_semantics=On I am wondering if it may not be time to break some
more stuff and do a bit of spring cleaning. It would mean many apps
would need some work to work on PHP 6, but at the same time I think it
is work people would welcome since it would mostly involve removing
hacks instead of adding them. And yes, I know this is pretty
controversial, so take a few deep breaths before replying, please.

1. Remove register_globals completely

2. Remove magic_quotes_*

3. Add input filter extension which will include a mechanism for
application developers to very easily turn it off which would swap
the raw GPC arrays back in case the site had it turned on by default.

4. Include an opcode cache by default. A lot of work has gone into
pecl/apc recently, but I am not hung up on which one goes in.

5. Remove safe_mode and focus on open_basedir

6. Remove some stuff that has been marked deprecated since PHP 3/4

A couple of others that we could consider, but I don't actually think
wins us much apart from academic purity (which I have never been all
that keen on) are:

7. Make identifiers case-sensitive

8. Remove various function aliases

-Rasmus

It's music to my ears.

Edit: Oh, and by the way, it just mentions it, but one of the bigger changes will be native unicode support. Yay!

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: PHP 6.0

nice smile

Re: PHP 6.0

nice big_smile

4

Re: PHP 6.0

Dunno.
Most of it sounds good.
On the other hand, f.e. I've been using magic_quotes in some projects (not without additional security functions though) and thinking I'd have to *find* them all first is painful.
If you work on one or wo projects that's fine but if they go by the dozens it is a lot of work.
Plus, a lot of premade scripts out there require to have magic_quotes_something turned on. Will they all change in time?

Sure enough there has to be a break from time to time but I usually prefer to bring things up to date when I'm revising an old project for some reason anyway - not being forced to do it with all of them.

I guess while it's a good idea to clean up in general it will decrease the acceptance of the new version by larger parts of the community.
I mean, in our production environments we still use php4, and compared to what's to come in 6 the changes to 5 are minimal....

Same with safe_mode. I personally hate it, too many issues with writing/creating files but I know many web hosters stick to it as a basic means of security. They would not want to use a version that cannot do this.

Well, that's all future talk. Most of the people I know don't even use version 5 everywhere today...

The German PunBB Site:
PunBB-forum.de

5

Re: PHP 6.0

I need input command for when run php in console mode like in Windows

print "Enter age"
$s=input();
print "\nYour age is ".$s

i is good for leanring php without WebServer and for some utils.

If your people come crazy, you will not need to your mind any more.

6 (edited by Tobi 2005-08-15 10:26)

Re: PHP 6.0

Although this has absolutely nothing to do with the topic wink :

print "Enter age\n";
$s = chop(fgets(STDIN,255));
echo "\nYour age is ".$s;
The German PunBB Site:
PunBB-forum.de

7

Re: PHP 6.0

Gash, that what i need : lol
Thanks Tobi

If your people come crazy, you will not need to your mind any more.

Re: PHP 6.0

Sounds good. I don't care if other hosts don't support it as I know TextDrive will and that's who i'm with! I'll be getting my clients on it too.

Will this mean that you'll have to maintain two versions of PunBB Rickard or will it work on old versions too?

Re: PHP 6.0

6 must be along way off though.. i mean most people are still on 4 tongue

Re: PHP 6.0

Sounds Good!! smile

God wisely designed the human body so that we can neither pat our own backs nor kick ourselves too easily

11

Re: PHP 6.0

I think, we need php in client side (WebBrowser) like as JavaScript or VBScript, let us name it as PHPScript roll

If your people come crazy, you will not need to your mind any more.