Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder
    Join Date
    May 2006
    Posts
    1,673
    Thanks
    28
    Thanked 4 Times in 4 Posts

    Is anyone using PHP 5.3.0 ? Do you suggest I upgrade ?

    Hi,

    I am running PHP Version 5.2.9

    I just noticed that there is a useful addition to the
    the rtrim function that I want to use in 5.3.0.

    Should I upgrade the PHP version on my server to %.3 ?

    Is it fully stable ?

    To go from .2 to .3 I guess there are some majors
    improvements ? Maybe more ihe OOP side ?

    Anyone using 5.3 ?
    Last edited by jeddi; 01-27-2010 at 08:32 PM.
    If you want to attract and keep more clients, then offer great customer support.

    Support-Focus.com. automates the process and gives you a trust seal to place on your website.
    I recommend that you at least take the 30 day free trial.

  • #2
    eak
    eak is offline
    Regular Coder eak's Avatar
    Join Date
    Jun 2002
    Location
    Nashville, TN
    Posts
    354
    Thanks
    0
    Thanked 26 Times in 26 Posts
    I use it on my dev box at home.
    It seems stable. I haven't noticed any issues with it. (other than the escape character being the namespace delimiter) I do like some of the OOP improvements but haven't had much time to play with it yet since I do PHP at work all day and don't want to work when I get home.
    eak | "Doing a good deed is like wetting your pants; every one can see the results, but only you can feel the warmth."

  • #3
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,980
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    Namespaces rock. Chained with the spl_autoload method, you can then import with a simple:
    PHP Code:
    use PathToMyPackage AS Package 
    Aside from that, I've noticed no instability issues. I've also not noticed any substantial upgrades in the OO environment, though one bug I've seen in an is_interface reporting has been corrected in PHP5.3.0.

    What I have noticed is that reflection is more of a pain now. ReflectionClass expects a fully qualified name, so with namespaces you need to know what the namespace is in order to import it o.O. That I do not like, since it will not take out of current scope context - so if you have: use \Path\to\Package AS Package;, you cannot just do \ReflectionClass::export('Package');.

    For you're dev box, definitely PHP5.3.0. If you do not have a supporting server, avoid the namespacing.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #4
    Senior Coder
    Join Date
    May 2006
    Posts
    1,673
    Thanks
    28
    Thanked 4 Times in 4 Posts
    Thanks for your input.

    I won't upgrade yet as it is not for my dev server
    and there is not an easy distro for it yet.

    The reason it caught my eye was that I saw an upgrade to
    rtrim() that I wanted to use (in the Manual).

    What I have is a string like this:
    "some-category => some-sub-cat"

    The only static part of the string is the ' => '
    and I want to split out the two parts so that I get,
    "some-category" and "some-sub-cat".

    What is the most efficient way to do this ?



    .
    If you want to attract and keep more clients, then offer great customer support.

    Support-Focus.com. automates the process and gives you a trust seal to place on your website.
    I recommend that you at least take the 30 day free trial.

  • #5
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,980
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    rtrim hasn't changed since 4.1.
    The easiest way to split a string is to use the explode function.
    PHP Code:
    $parts explode(' => '$strin);
    // or split them and separate in one step:
    list($cat$subcat) = explode(' => '$strin); 
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


  •  

    Posting Permissions

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