SitePoint Sponsor

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 25 of 31
  1. #1
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)

    PHP 5.3.0 Released!

    Its official now, PHP 5.3 is now released upon the world.
    http://www.php.net/archive/2009.php#id2009-06-30-1
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  2. #2
    SitePoint Guru
    Join Date
    Jun 2006
    Posts
    638
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Omg Omg Omg

  3. #3
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    $yay = function() { new splStack() }; 

  4. #4
    SitePoint Wizard
    Join Date
    Mar 2008
    Posts
    1,149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    FINALLY!

    Been waiting for this...

  5. #5
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sob...
    PHP Code:
    $dll = new SplDoublyLinkedList(); // and stack/queue ...
    $dll[] = 'foo';
    $dll[] = 'bar';
    echo 
    implode($dll); // error 

  6. #6
    SitePoint Wizard spence_noodle's Avatar
    Join Date
    Jan 2004
    Location
    uk, Leeds (area)
    Posts
    1,264
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Well about time, congrats to them though as it looks like they have been very busy improving and fixing a number of bugs. Just hope my host updates soon.
    "Don't you just love it when you solve a programming bug only to create another."

  7. #7
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Happy to know that... BTW guys I haven't gone through the things that have been come up with this version but someone asked me today the following question about PHP:

    Is PHP with new version more close to Java or C# or it is in its own way?
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  8. #8
    SitePoint Wizard
    Join Date
    Mar 2008
    Posts
    1,149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, it's arguably is. But it's more of a matter that PHP is now a better-designed language, and so it's closer to more than just C# and Java. Namespaces, real data structures, anonymous functions, functions as first class objects...

  9. #9
    @php.net Salathe's Avatar
    Join Date
    Dec 2004
    Location
    Edinburgh
    Posts
    1,398
    Mentioned
    65 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by crmalibu View Post
    sob...
    PHP Code:
    $dll = new SplDoublyLinkedList(); // and stack/queue ...
    $dll[] = 'foo';
    $dll[] = 'bar';
    echo 
    implode($dll); // error 
    Not ideal, but:
    PHP Code:
    $dll = new SplDoublyLinkedList(); // and stack/queue ...
    $dll[] = 'foo';
    $dll[] = 'bar';
    echo 
    implode(iterator_to_array($dll)); // no error 
    Salathe
    Software Developer and PHP Manual Author.

  10. #10
    PHP Guru lampcms.com's Avatar
    Join Date
    Jan 2009
    Posts
    921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I wonder when most of the hosts will upgrade to 5.3

    When do you think it will be safe to require php version > 5.3 in your php scripts?

    There are many very useful features that will make scripts more reliable and will require fewer dependencies.

    I like fileinfo is now a built-in extension, I like HttpQueryString class, I think it's very useful and I like SplDoublyLinkedList

    These will just be helpful for any type of CMS projects. I have already been using these but with php 5.3 I can be sure that user has there classes available too as long as they are on php 5.3

  11. #11
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Salathe View Post
    Not ideal, but:
    PHP Code:
    $dll = new SplDoublyLinkedList(); // and stack/queue ...
    $dll[] = 'foo';
    $dll[] = 'bar';
    echo 
    implode(iterator_to_array($dll)); // no error 
    Ya, that's not so bad. I was hoping Iterator would be sniffed and it would be done automatically

  12. #12
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Yeah, it did state in the manual that array functions no longer accept objects.

    Unfortunately most of my "work" is writing distributable applications so unfortunately this upgrade is something I'm only going to be able to play with rather than use. Unless, of course, there's a surge of php5.3 popularity and hosts mass-upgrade. Somehow I don't see that happening.

    It aggravates me me that, in an area so fast-moving, the people we have to rely on (without spending a small fortune) are so slow-moving!
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  13. #13
    Guru in training bronze trophy SoulScratch's Avatar
    Join Date
    Apr 2006
    Location
    Maryland
    Posts
    1,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *clap* - took all this time for it to adopt features that languages in the 50's had. funny guy this Rasmus is.
    Cross browser css bugs

    Dan Schulz you will be missed

  14. #14
    I solve practical problems. bronze trophy
    Michael Morris's Avatar
    Join Date
    Jan 2008
    Location
    Knoxville TN
    Posts
    2,053
    Mentioned
    66 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by SoulScratch View Post
    *clap* - took all this time for it to adopt features that languages in the 50's had. funny guy this Rasmus is.
    Don't you mean the 80's <snip>? If you are going to insult a language for lacking features that have been around awhile you could at least educate yourself to the time of their inception.
    Last edited by Shyflower; Jul 2, 2009 at 06:47. Reason: Respect is the key. Keep it civil.

  15. #15
    Guru in training bronze trophy SoulScratch's Avatar
    Join Date
    Apr 2006
    Location
    Maryland
    Posts
    1,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Michael Morris View Post
    Don't you mean the 80's <snip>? If you are going to insult a language for lacking features that have been around awhile you could at least educate yourself to the time of their inception.
    Oh? For the features I was talking about...

    Lambdas and the whole concept of first class functions and closures I know for sure were incorporated in LISP, so that's late 50s...

    http://en.wikipedia.org/wiki/Lambda_programming
    http://en.wikipedia.org/wiki/Closure...ter_science%29

    The date in the closure page says early 60s but it's really late 50's because that's when the first dialects of Lisp were developed.

    Garbage collection was first introduced in LISP late 50s..

    http://en.wikipedia.org/wiki/Garbage...ter_science%29

    The concept of namespacing is certainly not new, I believe the first few languages to use the whole concept of namespacing/modules were RPG/COBOL (50s)..

    http://en.wikipedia.org/wiki/Modular_programming

    So I don't think any of the "new" major features were really introduced in the 80s.

    PS - Friggin VBulletin forum regexp that turns text into links breaks on strings with ( and ) so I had to manually encode the closure and garbage collection wiki links or they'd have broke.
    Last edited by Shyflower; Jul 2, 2009 at 06:48.
    Cross browser css bugs

    Dan Schulz you will be missed

  16. #16
    SitePoint Enthusiast
    Join Date
    Sep 2005
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SoulScratch View Post
    Oh? For the features I was talking about...

    Lambdas and the whole concept of first class functions and closures I know for sure were incorporated in LISP, so that's late 50s...

    http://en.wikipedia.org/wiki/Lambda_programming
    http://en.wikipedia.org/wiki/Closure...ter_science%29

    The date in the closure page says early 60s but it's really late 50's because that's when the first dialects of Lisp were developed.

    Garbage collection was first introduced in LISP late 50s..

    http://en.wikipedia.org/wiki/Garbage...ter_science%29

    The concept of namespacing is certainly not new, I believe the first few languages to use the whole concept of namespacing/modules were RPG/COBOL (50s)..

    http://en.wikipedia.org/wiki/Modular_programming

    So I don't think any of the "new" major features were really introduced in the 80s.

    PS - Friggin VBulletin forum regexp that turns text into links breaks on strings with ( and ) so I had to manually encode the closure and garbage collection wiki links or they'd have broke.
    Great info.

    Wikipedia already has an example of a lambda function and closure in PHP 5.3.0
    http://en.wikipedia.org/wiki/Closure_(computer_science)

    Only a day into the release. That was quick.
    Fiji Web Design - Enterprise Web Design

  17. #17
    SitePoint Enthusiast
    Join Date
    May 2009
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I also congratulate you all for the new release of php 5.3.0

  18. #18
    Guru in training bronze trophy SoulScratch's Avatar
    Join Date
    Apr 2006
    Location
    Maryland
    Posts
    1,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by digital-ether View Post
    Great info.

    Wikipedia already has an example of a lambda function and closure in PHP 5.3.0
    http://en.wikipedia.org/wiki/Closure_(computer_science)

    Only a day into the release. That was quick.
    Well, some up to date php devs have known the features were going to be incorporated months ago, if you actually keep up with the development stage.

    PS - that link breaks, I explained why in my post :P
    Cross browser css bugs

    Dan Schulz you will be missed

  19. #19
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow. I just noticed asynchronous queries http://www.php.net/manual/en/mysqli.poll.php

  20. #20
    SitePoint Wizard
    Join Date
    Mar 2008
    Posts
    1,149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP 5.3.0 is about 6 months behind it's original planned release date actually. December passed right by and I was sad

    Namespaces were already implemented long before then, and closures too possibly. I don't really remember.

  21. #21
    Guru in training bronze trophy SoulScratch's Avatar
    Join Date
    Apr 2006
    Location
    Maryland
    Posts
    1,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sk89q View Post
    Namespaces were already implemented long before then, and closures too possibly. I don't really remember.
    Yep, in the 50s as I stated previously
    Cross browser css bugs

    Dan Schulz you will be missed

  22. #22
    SitePoint Wizard
    Join Date
    Mar 2008
    Posts
    1,149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I wasn't talking about the features. I was talking about PHP.

    PHP is a crappy language, and frankly I wish something else was in its place, but there's nothing to beat its good documentation and large community. That's all it has though.

  23. #23
    SitePoint Evangelist
    Join Date
    May 2006
    Location
    Austin
    Posts
    401
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Totally missed the release date... I've been watching the changes on this one for a while now. It's surprising to me that this version came out as 5.anything. The changes are large enough that 6.0 could have been completely appropriate.
    Merchant Equipment Store - Merchant Services, POS, Equipment, and supplies.
    Merchant Account Blog | Ecommerce Blog

  24. #24
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sk89q View Post
    PHP is a crappy language, and frankly I wish something else was in its place, but there's nothing to beat its good documentation and large community. That's all it has though.
    Yes exactly. I never compare PHP with others.
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  25. #25
    SitePoint Addict Divisive Cotton's Avatar
    Join Date
    Jun 2008
    Location
    Andy lives in London, UK
    Posts
    393
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was reading in articles that the main feature of PHP 5.3 are namespaces - can anybody take the time to explain exactly what namespaces are and how they will be useful?
    Let everyday be Christmas


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •