- - - - -

PHP 5.2.0


  • Please log in to reply
12 replies to this topic

#1 -ASO- Tim

-ASO- Tim

    Former Head Orange

  • Members
  • PipPipPipPipPipPipPip
  • 5,239 posts

Posted 21 November 2006 - 03:23 PM

All servers are having their PHP 5 installations updated to PHP 5.2.0 at the moment. There are several improvements and new features included in this release, along with an assortment of fixes. Here are the details straight from the horse's mouth:

QUOTE
The key features of PHP 5.2.0 include:

    * New memory manager for the Zend Engine with improved performance and a more accurate memory usage tracking.
    * Input filtering extension was added and enabled by default.
    * JSON extension was added and enabled by default.
    * ZIP extension for creating and editing zip files was introduced.
    * Hooks for tracking file upload progress were introduced.
    * Introduced E_RECOVERABLE_ERROR error mode.
    * Introduced DateTime and DateTimeZone objects with methods to manipulate date/time information.
    * Upgraded bundled SQLite, PCRE libraries.
    * Upgraded OpenSSL, MySQL and PostgreSQL client libraries for Windows installations.
    * Many performance improvements.
    * Over 200 bug fixes.

Security Enhancements and Fixes in PHP 5.2.0:

    * Made PostgreSQL escaping functions in PostgreSQL and PDO extension keep track of character set encoding whenever possible.
    * Added allow_url_include, set to Off by default to disallow use of URLs for include and require.
    * Disable realpath cache when open_basedir and safe_mode are being used.
    * Improved safe_mode enforcement for error_log() function.
    * Fixed a possible buffer overflow in the underlying code responsible for htmlspecialchars() and htmlentities() functions.
    * Added missing safe_mode and open_basedir checks for the cURL extension.
    * Fixed overflow is str_repeat() & wordwrap() functions on 64bit machines.
    * Fixed handling of long paths inside the tempnam() function.
    * Fixed safe_mode/open_basedir checks for session.save_path, allowing them to account for extra parameters.
    * Fixed ini setting overload in the ini_restore() function.


For those making use of PHP 5 functionality, there may have been some minor changes that could potentially break your scripts. It's unlikely, but possible. There's a detailed guide of all changes and additions located here: http://www.php.net/UPDATE_5_2.txt

Please let us know if anything breaks at the server level, but the changes should be transparent for the most part.
Former Owner/Manager
timdorr.com

#2 Kudos

Kudos

    Small Orange

  • Members
  • PipPip
  • 20 posts

Posted 21 November 2006 - 05:01 PM

While I'm delighted you guys keep the software on the bleeding edge, why don't we get notification of these upgrades? The PHP upgrade broke a system I built for a client, which I may have seen coming had I been given notification of it (I'm on the php mailing list, but didn't expect an upgrade so soon).

How about an opt-in mailing list for such upgrades in the future?

Edit: btw, it was the addition of the datetime classes, i already had a class of that name and that caused a fatal error

Edited by Kudos, 21 November 2006 - 05:12 PM.


#3 Orien

Orien

    Very Large Orange

  • Members
  • PipPipPipPipPip
  • 594 posts

Posted 21 November 2006 - 10:26 PM

Good to hear. smile.gif

#4 eisa01

eisa01

    Moderately Sized Orange

  • Members
  • PipPipPip
  • 115 posts

Posted 22 November 2006 - 10:17 AM

QUOTE(Kudos @ Nov 21 2006, 11:01 PM) View Post

How about an opt-in mailing list for such upgrades in the future?

I second this, although I haven't had a problem with upgrades yet, you never know.

#5 Will-BBR

Will-BBR

    Moderately Sized Orange

  • Members
  • PipPipPip
  • 70 posts

Posted 22 November 2006 - 03:55 PM

this is nice Tim

all you need now is new zend optimizer and eaccelerator for 5.2.0 zend company is slower then eaccel.  emoticon.gif
Will
Chairman | Chief Executive Officer
Bulletin Board Resources

#6 hinz

hinz

    Tiny Orange

  • Members
  • Pip
  • 2 posts

Posted 03 December 2006 - 12:44 PM

Why does the cPanel still report a PHP version of 4.4.4? I'm on sigma.



#7 Oblivion.

Oblivion.

    ...

  • Members
  • PipPipPipPipPip
  • 702 posts

Posted 03 December 2006 - 02:19 PM

QUOTE(hinz @ Dec 3 2006, 5:44 PM) View Post

Why does the cPanel still report a PHP version of 4.4.4? I'm on sigma.

PHP 5 isn't used for .php files automatically.

http://forums.asmallorange.com/index.php?s...c=7775&st=0
<div align="center"><a href="http://refer.asmallo...range.com/2405" target="_blank"><b>Have I helped you? Please signup with this link, it's so much better than the standard one!</b></a>
Some people don't look at member groups so... <b>I Am Not ASO Staff</b> Now don't moan at me <_<

#8 -ASO- Tim

-ASO- Tim

    Former Head Orange

  • Members
  • PipPipPipPipPipPipPip
  • 5,239 posts

Posted 03 December 2006 - 11:53 PM

QUOTE(hinz @ Dec 3 2006, 12:44 PM) View Post

Why does the cPanel still report a PHP version of 4.4.4? I'm on sigma.


It's a separate install of PHP. cPanel doesn't know about it, so it reports the default version.
Former Owner/Manager
timdorr.com

#9 anjanesh

anjanesh

    Rather Big Orange

  • Members
  • PipPipPipPip
  • 150 posts

Posted 29 March 2007 - 05:45 AM

ASO - why dont you provide a RSS-feed for updates ?
It'll be much easier for ppl to get these update on their Readers.
Something like this.

#10 BigTom3007

BigTom3007

    Rather Big Orange

  • Members
  • PipPipPipPip
  • 173 posts

Posted 29 March 2007 - 09:56 AM

They do provide RSS Feeds. smile.gif  Click on the RSS Icon in the bottom left of the page and then select Company News and a page will load up with the RSS Feed.

#11 axishift

axishift

    Small Orange

  • Members
  • PipPip
  • 20 posts

Posted 25 November 2007 - 08:39 PM

great news!, im new here. and i wanted to use ZEND Framework! biggrin.gif

#12 sensimilla

sensimilla

    Moderately Sized Orange

  • Members
  • PipPipPip
  • 83 posts

Posted 20 December 2007 - 03:33 AM

Im on PI why does it say PHP Version 4.4.7 still ? TIA

edit: I was on PI now Im on Aaron ?

Edited by sensimilla, 20 December 2007 - 03:34 AM.



#13 ukdmbfan

ukdmbfan

    Here come the bugs

  • Members
  • PipPipPipPipPip
  • 416 posts

Posted 20 December 2007 - 04:47 AM

PHP5 is run concurrently along with PHP4, so if you're using phpinfo(); from within a standard .php file you're effectively running it under PHP4 and so getting PHP4's phpinfo().

Take a look at this thread for information on how to use PHP5.

To summarise, any files named .php5 will be processed using PHP5, so if you create a phpinfo(); file with the .php5 extension you should get PHP5's phpinfo(); output if you want to check the version.
"If you do things right, people won't be sure you've done anything at all"
web fanattic.it email matt at fanattic.it




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users