Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 136,485 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,709 people online right now. Registration is fast and FREE... Join Now!




PHP 6 Wish List

 
Reply to this topicStart new topic

PHP 6 Wish List, What do hope they will improve from php 5?

Mike007
3 Mar, 2008 - 05:34 PM
Post #1

D.I.C Head
Group Icon

Joined: 30 Aug, 2007
Posts: 205


Dream Kudos: 75
My Contributions
As you might know, php.net pulled the support for all version of php 4. I think it's about time! That beast has to be put down quickly with it's many many problems and poor OOP support, really trying to program with code compatible to php 4 as well is a horrible pain to anyone who heard the words OOP and Regular Expressions. Since creators of php stopped supporting it, i said, why should I really worry about it too much?

PHP 5 is great, really, but there are alot of things to improve, like no more c-style functions like strstr(), strcmp(), ect... It's time to go for classes and maybe namespaces. I would really rather call $str->indexOf("mystring") then do it with the old style c function way (i really hated that about c btw, visual c++.net was alot more like it). Also event really checked the exception model yet of PHP, but i haven't seen too many people using it even tho it exists, so i guess i hope they will work on that too.

What do you guys think? What do you want from PHP 6, which is in development now.

Some article I came across about it:
http://jero.net/articles/php6
User is offlineProfile CardPM
+Quote Post

Tom9729
RE: PHP 6 Wish List
3 Mar, 2008 - 07:13 PM
Post #2

Debian guru
Group Icon

Joined: 30 Dec, 2007
Posts: 1,459



Thanked: 10 times
Dream Kudos: 325
My Contributions
Oh god no. Don't harm innocent PHP, it did nothing to you!

Some of us love using strcmp() and strstr(). happy.gif

This post has been edited by Tom9729: 3 Mar, 2008 - 07:13 PM
User is offlineProfile CardPM
+Quote Post

bflosabre91
RE: PHP 6 Wish List
4 Mar, 2008 - 06:19 AM
Post #3

D.I.C Head
**

Joined: 22 Feb, 2008
Posts: 213


My Contributions
yea im going to side with Tom on this one. I like the c styled syntax
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: PHP 6 Wish List
4 Mar, 2008 - 09:32 AM
Post #4

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,212



Thanked: 216 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
I agree with Tom as well. I like the object oriented setup they have in PHP5 but I think making everything a method of an object rather than a simple c-style call is a bit overkill. It only makes things a bit more verbose and when code placement is a bit more critical than in an IDE like VS, it is better to have the smallest function call possible I think.

For example, I want to call strtoupper("stringhere"); when I want to capitalize a string in between a set of html tags... all which I have done inline <span style=""><?php echo strtoupper("stringhere"); ?></span> is much more compact that having to worry about either creating an object or calling a method from some static object.

Now I am all for OOP in PHP5 and I think it is great, but I think for the simple calls should be left in the c-style. After all, if I want it to be a method of an object, I could just create the class myself.

smile.gif

This post has been edited by Martyr2: 4 Mar, 2008 - 09:34 AM
User is online!Profile CardPM
+Quote Post

Mike007
RE: PHP 6 Wish List
4 Mar, 2008 - 05:59 PM
Post #5

D.I.C Head
Group Icon

Joined: 30 Aug, 2007
Posts: 205


Dream Kudos: 75
My Contributions
Oh i see your all ganging up on me huh? lol

Ok marty point taken about simple calls, but what about more complex stuff like IO maybe? Why aren't there built-in exceptions for IO, that's one thing that really kills me.

Another one is that you don't have a word to declare a variable. Why can't you declare one :S, caused me many headaches when i find out that all i did was to leave out the s or something like that from a variable name.

So what no one has any other issues with PHP 5 that he/she would like to be resolved in PHP 6? Do you honestly think it's that perfect?
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 07:20PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month