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-16-2007, 05:56 PM   #21 (permalink)
The Acquainted
 
wGEric's Avatar
 
Join Date: Nov 2007
Posts: 166
Thanks: 0
wGEric is on a distinguished road
Default

Quote:
Originally Posted by dschreck View Post
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.
That would be nice so that it has full UTF-8 support.
__________________
Eric
wGEric is offline  
Reply With Quote
Old 11-29-2007, 11:34 AM   #22 (permalink)
The Wanderer
Newcomer 
 
C01t's Avatar
 
Join Date: Nov 2007
Location: Lviv, Ukraine
Posts: 5
Thanks: 0
C01t is on a distinguished road
Default Operator Overloading

Namespaces should be!!! And it's already more that just a script language!!!

But I can't figure out why not to add operator overloading.
I think that if we have array access through iterators in SPL, so they can introduce something like MathInterface witch will allow overloading of operators.

Simply like:
PHP Code:
class foo implements AddOperator
{
    public function 
operatorAdd(foo &$object
    {
        
/* @todo adding does here */
    
}

If array access is posible then that is possible too
__________________
Never trust anything that can think for itself if you can't see where it keeps its brain.
©J. K. Rowling

Last edited by C01t : 11-29-2007 at 02:24 PM.
Send a message via ICQ to C01t Send a message via MSN to C01t Send a message via Yahoo to C01t Send a message via Skype™ to C01t
C01t is offline  
Reply With Quote
Old 11-29-2007, 02:22 PM   #23 (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

I just don't think operator overloading is on their priority list :(

After all, how often are general PHP users going to need operator overloading? I imagine it won't be very often. Although personally, I have required it in the past :(
__________________
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-29-2007, 02:29 PM   #24 (permalink)
The Wanderer
Newcomer 
 
C01t's Avatar
 
Join Date: Nov 2007
Location: Lviv, Ukraine
Posts: 5
Thanks: 0
C01t is on a distinguished road
Default

If some people don't know C++ or operator overloading feature that doesn't mean we don't need it!!!

I'm sure that every professional developer more than one in his life required this feature, so why limit ourself?
__________________
Never trust anything that can think for itself if you can't see where it keeps its brain.
©J. K. Rowling
Send a message via ICQ to C01t Send a message via MSN to C01t Send a message via Yahoo to C01t Send a message via Skype™ to C01t
C01t is offline  
Reply With Quote
Old 11-29-2007, 02:33 PM   #25 (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

No no, I totally agree with you, I'd love to see operator overloading implemented. I was just saying that I don't think the PHP people will see it as a priority.
__________________
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-29-2007, 02:56 PM   #26 (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

There's so many things that don't appear to be on their priority list - or even on their list at all which should be.
__________________
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-29-2007, 06:36 PM   #27 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

Id love to see method and constructor overloading like C++ like this:

Code:
class Test
{
    public:
        Test();
        Test(int num1, int num2);
    private:
        int itsNum1;
        int itsNum2;
}
Test::Test()
{
    itsNum1 = 0;
    itsNum2 = 5;
}
Test::Test(int num1, int num2)
{
    itsNum1 = num1;
    itsNum2 = num2;
}
So then we can have 2 types of constructor called.
Its quite a flexible feature in C++ so it would be nice to see it in PHP (not just constructors but functions too) and operator overloading too.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Old 11-29-2007, 07:40 PM   #28 (permalink)
The Acquainted
Inquisitive 
 
WinSrev's Avatar
 
Join Date: Sep 2007
Posts: 133
Thanks: 6
WinSrev is on a distinguished road
Default

I'd love to see some speed improvements and for it to be multi-core and even x64. More security would be good too although i suppose that really comes down to the coders.
Send a message via ICQ to WinSrev
WinSrev is offline  
Reply With Quote
Old 11-30-2007, 02:32 AM   #29 (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

Well, your speed improvements would come about if Zend stopped promoting their Zend Accelerator, which is a completely separate entity to PHP and requires some hard-cash to use it, and introduced caching as standard. Can you see that happening? I can't. But at least you can implement caching on your own. Whereas Python (I believe), amongst other popular and not-so-popular languages come with caching as standard. PHP really is the odd one out. It would most certainly speed PHP up by at least 500%. Happy days!
__________________
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-30-2007, 09:33 AM   #30 (permalink)
The Wanderer
Newcomer 
 
C01t's Avatar
 
Join Date: Nov 2007
Location: Lviv, Ukraine
Posts: 5
Thanks: 0
C01t is on a distinguished road
Default

PHP5 is much quicker then PHP4, and PHP6 will include (but off by default) byte code cache. So PHP7 may have some JiT compiler or something...
__________________
Never trust anything that can think for itself if you can't see where it keeps its brain.
©J. K. Rowling
Send a message via ICQ to C01t Send a message via MSN to C01t Send a message via Yahoo to C01t Send a message via Skype™ to C01t
C01t is offline  
Reply With Quote
Old 11-30-2007, 03:24 PM   #31 (permalink)
The Acquainted
Inquisitive 
 
WinSrev's Avatar
 
Join Date: Sep 2007
Posts: 133
Thanks: 6
WinSrev is on a distinguished road
Default

I sure do hope so, i think speed is a thing that needs to be overhauled on PHP (hopefully they will think the same), it'd be a big bonus for small and large websites running PHP.
Send a message via ICQ to WinSrev
WinSrev is offline  
Reply With Quote
Old 11-30-2007, 07:11 PM   #32 (permalink)
The Contributor
 
aristoworks's Avatar
 
Join Date: Nov 2007
Location: Nashville
Posts: 44
Thanks: 7
aristoworks is on a distinguished road
Default

This might seem a bit retarded but I'd like a function similar to mysql_real_escape_string() but with a much shorter name. When I'm handling forms and going through escaping variables and such it becomes a pain writing a bunch of mysql_real_escape_string()'s.
Send a message via AIM to aristoworks
aristoworks is offline  
Reply With Quote
Old 11-30-2007, 07:25 PM   #33 (permalink)
The Contributor
 
Join Date: Nov 2007
Posts: 32
Thanks: 5
Morishani is on a distinguished road
Wink

Quote:
Originally Posted by aristoworks View Post
This might seem a bit retarded but I'd like a function similar to mysql_real_escape_string() but with a much shorter name. When I'm handling forms and going through escaping variables and such it becomes a pain writing a bunch of mysql_real_escape_string()'s.
Well , There you go :
PHP Code:
function a($szStr)
    {
    return 
mysql_real_escape_string($szStr);
    } 
Send a message via ICQ to Morishani Send a message via MSN to Morishani
Morishani is offline  
Reply With Quote
Old 11-30-2007, 07:26 PM   #34 (permalink)
The Acquainted
Inquisitive 
 
WinSrev's Avatar
 
Join Date: Sep 2007
Posts: 133
Thanks: 6
WinSrev is on a distinguished road
Default

Ah ha, very nice, :D
Send a message via ICQ to WinSrev
WinSrev is offline  
Reply With Quote
Old 11-30-2007, 07:27 PM   #35 (permalink)
The Contributor
 
aristoworks's Avatar
 
Join Date: Nov 2007
Location: Nashville
Posts: 44
Thanks: 7
aristoworks is on a distinguished road
Default

Quote:
Originally Posted by Morishani View Post
Well , There you go :
PHP Code:
function a($szStr)
    {
    return 
mysql_real_escape_string($szStr);
    } 
Thanks Morishani - yea I already know that trick ;) but I'm talking about shortening the function name by default. Just a nit-pick.
Send a message via AIM to aristoworks
aristoworks 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 10:20 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