TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack (4) Thread Tools Search this Thread Display Modes
Old 11-05-2007, 11:47 PM   4 links from elsewhere to this Post. Click to view. #1 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default PHP6 Wishlist

With PHP6 well under way and a few snapshots available. We know quite a few of the features they are implementing. However, what would you like to see?

To start it off, I'd like to see namespaces in PHP6. There is some talk of adding namespaces, but I doubt it'll happen in all honesty. I suppose we could use static functions inside classes, to have like:

PHP Code:
String::getAbstract($myString); 
But I'd rather they introduced proper namespaces. I'm not sure what symbol they could use. Perhaps:

PHP Code:
String:getAbstract($myString); 
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 11-06-2007, 12:31 AM   #2 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Personally I'd quite like to see namespaces implemented as below. But however they're done I don't mind too much so long as they are introduced!

PHP Code:
namespace Salathe
{
    private static final class 
InternalClass  // how cool would this be?!!
    
{
        
// some some internal-type things
    
}

I'd maybe also like wider adoption of OOP in the core, so stepping away from the hoards of differently patterned function names. This has happened to some extent already, but more, more, more please. :)
Salathe is offline  
Reply With Quote
Old 11-06-2007, 01:09 AM   #3 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

It would be nice, but I just don't see it happening, do you? PHP's functions are getting ridiculous these days. The one I always pull people on is strip_tags to stripslashes, and after reading the founder's comments about the inconsistency, total cop out. Come on lads, sort it out!
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 11-06-2007, 01:20 AM   #4 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default

Would be cool if there was a new hash algorithms. Something fresh thats more secure then md5 and sha1 :D.
Nor is offline  
Reply With Quote
Old 11-15-2007, 03:03 PM   #5 (permalink)
The Wanderer
 
Join Date: Oct 2007
Posts: 12
Thanks: 0
Webitz is on a distinguished road
Default

I don't really see a point in a new hash algorithm, md5/sha1 work just fine - throw in an SSL on the line and you're quids in.

I would although like to see the whitespace error resolved when you include Javascript in a page with the header() function.
Webitz is offline  
Reply With Quote
Old 11-15-2007, 03:05 PM   #6 (permalink)
The Reckoner
Advanced Programmer Top Contributor 
 
Karl's Avatar
 
Join Date: Sep 2007
Posts: 437
Thanks: 22
Karl is on a distinguished road
Default

Some multiple inheritance maybe? Also operator overloading would be a really nice addition.
__________________
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
Karl is offline  
Reply With Quote
Old 11-16-2007, 01:25 AM   #7 (permalink)
The Acquainted
 
Join Date: Sep 2007
Location: Arizona
Posts: 114
Thanks: 10
Andrew is on a distinguished road
Default

Quote:
Originally Posted by Nor View Post
Would be cool if there was a new hash algorithms. Something fresh thats more secure then md5 and sha1 :D.
Add a dynamic salt to a md5 or sha1, and it's just as, if not, more secure than a new algorithm.
Send a message via AIM to Andrew Send a message via MSN to Andrew
Andrew is offline  
Reply With Quote
Old 11-16-2007, 01:46 AM   #8 (permalink)
The Contributor
 
dschreck's Avatar
 
Join Date: Nov 2007
Location: California
Posts: 82
Thanks: 0
dschreck is on a distinguished road
Default

Quote:
Originally Posted by Karl View Post
Some multiple inheritance maybe? Also operator overloading would be a really nice addition.
I fully agree, but then again, i think a change like this could wreak havoc on some people's scripts... but I'd like to at least have the option to use it.


Other than that, I'd like to see things like xdebug be built in as a true debug profiler, and have them fix the damn Filter functions. they are le poo.
dschreck is offline  
Reply With Quote
Old 11-16-2007, 03:33 AM   #9 (permalink)
The Wanderer
 
Join Date: Nov 2007
Posts: 12
Thanks: 0
DarkPrince11 is on a distinguished road
Default

Quote:
Originally Posted by dschreck View Post
I fully agree, but then again, i think a change like this could wreak havoc on some people's scripts... but I'd like to at least have the option to use it.


Other than that, I'd like to see things like xdebug be built in as a true debug profiler, and have them fix the damn Filter functions. they are le poo.
I agree with dschreck on the xdebug. That would greatly help in debugging scripts not to mention the time it could save. Operator Overloading would be nice but it doesn't seem that important to me. Namespaces would be a great addition to the language. They had it in the PHP5 betas but took it out because it was buggy.
Send a message via AIM to DarkPrince11 Send a message via MSN to DarkPrince11
DarkPrince11 is offline  
Reply With Quote
Old 11-16-2007, 04:24 AM   #10 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default

Quote:
Originally Posted by Andrew View Post
Add a dynamic salt to a md5 or sha1, and it's just as, if not, more secure than a new algorithm.
lol how can you predict the future if its not here yet?



Function overloading, multiple inheritance.
__________________
PHP/XHTML Freelancer:
Cleanscript.com v3 - Programming starting at just $5 act now!
Nor is offline  
Reply With Quote
Old 11-16-2007, 06:10 AM   #11 (permalink)
The Acquainted
 
Join Date: Sep 2007
Location: Arizona
Posts: 114
Thanks: 10
Andrew is on a distinguished road
Default

Quote:
Originally Posted by Nor View Post
lol how can you predict the future if its not here yet?



Function overloading, multiple inheritance.
That's not predicting the future really. With dynamic salts, it's impossible for someone to decrypt an encrypted password by using a reverse-anything algorithm. No matter how good an encryption algorithm can be, it can't be better than uncrackable.
Send a message via AIM to Andrew Send a message via MSN to Andrew
Andrew is offline  
Reply With Quote
Old 11-16-2007, 08:01 AM   #12 (permalink)
The Wanderer
 
Join Date: Nov 2007
Location: Mumbai, India
Posts: 24
Thanks: 0
sunilbhatia79 is on a distinguished road
Default

Having type strict variables will solve most of the problems that we currently face with PHP... also PHP should not allow unlimited number of arguments in functions... this will solve the problem that functions cannot be overloaded
__________________
Sunil Bhatia www.twitter.com/sunilbhatia79 - Follow me on Twitter
PHP5 Tutorials
Career Articles
sunilbhatia79 is offline  
Reply With Quote
Old 11-16-2007, 12:33 PM   #13 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

I would actually like strict data types as well. I hear that they've actually begun to add namespaces into PHP6, but we shall wait and see because you know what happened in PHP5 - they added namespaces and then removed them altogether just before its release.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 11-16-2007, 12:39 PM   #14 (permalink)
The Wanderer
 
Join Date: Oct 2007
Posts: 12
Thanks: 0
Webitz is on a distinguished road
Default

I hate the idea of strict datatypes - it's why I stay away from languages like ASP. Also I don't see much advantage in namespaces to be honest, I don't think much should change on the variables side of things. It would also be nice to see some new useful URL rewriting functions available without Apache - Only because im on IIS and rewriting is a pain in the ash.
Webitz is offline  
Reply With Quote
Old 11-16-2007, 01:30 PM   #15 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Namespaces will be a life saver when you realise that so many global functions is a really bad idea. URL rewriting will always remain with Apache as that's not a PHP task at all - even Ruby on Rails uses Apache's mod-rewrite, so I think you're well out of luck on that one. Namespaces are useful as it gets rid of those prefixed functions you see dotted around the place - simplexml_* to name one. You would just do something like:

php Code:
use SimpleXML as SXML;

$pXML = new SXML::SimpleXML;
echo $pXML->load_file();
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 11-16-2007, 02:00 PM   #16 (permalink)
The Wanderer
 
Join Date: Oct 2007
Posts: 12
Thanks: 0
Webitz is on a distinguished road
Default

Ah yes, in regards to URL rewriting, imagine a function took the whole URL and split it up, if it find for example "users_id" in whatever.com/showuser/users_id/100.php then it would use from the slash after users_id to the end, if it sees .php remove it, if it sees / (due to more parameteres) then carry on collecting data. This could be made using your own load of functions but I suspect its a dodgy one to write... I think I may look into doing it myself.
Webitz is offline  
Reply With Quote
Old 11-16-2007, 02:11 PM   #17 (permalink)
The Contributor
 
Join Date: Nov 2007
Posts: 32
Thanks: 5
Morishani is on a distinguished road
Default Re

Quote:
Originally Posted by Wildhoney View Post
I would actually like strict data types as well.
Amen :)

Strict data types, type hinting and all the things that comes around that.

BTW
People around the web talking about the next formula :
Quote:
PHP 5.3 = PHP6 - Unicode
Because PHP6 is comming in late 2008, The PHP development team will bring us PHP5.3 That will have everything that will be in PHP6 except Unicode and some other minor things.
Send a message via ICQ to Morishani Send a message via MSN to Morishani
Morishani is offline  
Reply With Quote
Old 11-16-2007, 02:43 PM   #18 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

That would be a nice welcome! Waiting until late 2008 for namespaces, etc. is far too long so I'm glad they've made the decision to release PHP 5.3 with all the additions of PHP 6.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 11-16-2007, 02:57 PM   #19 (permalink)
The Wanderer
 
Join Date: Oct 2007
Posts: 12
Thanks: 0
Webitz is on a distinguished road
Default

Interesting... I've not even learnt all the new PHP5 features yet and now to learn more w00t
Webitz is offline  
Reply With Quote
Old 11-16-2007, 05:25 PM   #20 (permalink)
The Contributor
 
dschreck's Avatar
 
Join Date: Nov 2007
Location: California
Posts: 82
Thanks: 0
dschreck is on a distinguished road
Default

I've also heard that all PHP6 is going to be is just really Unicode. Forget where I read that... think it was on a blog or something. See if I can't dig up the article.

I have to disagree with making PHP a strictly typed language. Yes, it's very very weakly typed... but that's one of the things that makes it so easy for newbies to comprehend. You can still use type casting... you can still enforce the number of arguments passed to a variable through interfaces.
And again, one of the more attractive features of PHP is that it has so many premade functions for you, that make it quick and easy to learn and do something with PHP.

So I don't think they should take away from PHP, especially in a way that could drastically deform the language.

SO, yeah, adding features like namespaces, that would be cool, but I don't feel it should have to be enforced. It's a scripting language. It should stay scripty.
dschreck is offline  
Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.talkphp.com/general/1387-php6-wishlist.html
Posted By For Type Date
My PHP wish list - SitePoint Forums This thread Refback 01-09-2008 08:35 AM
My PHP wish list - SitePoint Forums This thread Refback 01-09-2008 01:39 AM
xml.lt: Blog This thread Refback 01-02-2008 10:49 AM
xml.lt: Blog: Strong typing in PHP This thread Refback 12-28-2007 05:45 PM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 02:47 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design