Author Topic: PHP 5.3 Released  (Read 644 times)

Offline JGadrow

  • Level 35
  • **
  • Posts: 1,133
  • Reputation: +23/-2
    • View Profile
PHP 5.3 Released
« on: June 30, 2009, 08:26:41 AM »
It is now official, PHP 5.3 is the most current stable release of PHP 5! I recommend everyone to at least take a look into it as it is a precursor to how PHP 6 will function. Additionally, the underlying structure of PHP has been rewritten to be faster to execute. Some common CMS distributors are reporting code performance gains of up to 30%!

Now, you will probably want to checkout any backward incompatible changes in PHP 5.3 and it might be handy to read the complete migration guide as well. Hope this is useful!
Idiocy - Never underestimate the power of stupid people in large groups.


Offline Chris

  • Game Owner
  • Level 35
  • *
  • Posts: 2,217
  • Reputation: +28/-1
    • View Profile
Re: PHP 5.3 Released
« Reply #1 on: June 30, 2009, 09:25:56 AM »
Do you have information about "internationalization support via the new intl extension"? And if this could be useful in BBG development?

Second question, how about build in code accelerator? Have they done it already? I remember they were talking about plans for it, but I do not remember details.

Offline JGadrow

  • Level 35
  • **
  • Posts: 1,133
  • Reputation: +23/-2
    • View Profile
Re: PHP 5.3 Released
« Reply #2 on: June 30, 2009, 10:31:03 AM »
Read about the intl extension intl extension manual page.

It definitely has uses as it allows you to collate and format certain data (dates, currency, numbers, etc.) according to a locale setting.

Example (from PHP.net):
Code: (php) [Select]
$fmt = numfmt_create( 'de_DE', NumberFormatter::CURRENCY );
echo numfmt_format_currency($fmt, 1234567.891234567890000, "EUR")."\n";
echo numfmt_format_currency($fmt, 1234567.891234567890000, "RUR")."\n";
$fmt = numfmt_create( 'ru_RU', NumberFormatter::CURRENCY );
echo numfmt_format_currency($fmt, 1234567.891234567890000, "EUR")."\n";
echo numfmt_format_currency($fmt, 1234567.891234567890000, "RUR")."\n";

Output:
Code: (text) [Select]
1.234.567,89 €
1.234.567,89 RUR
1 234 567,89€
1 234 567,89р.

*Edit: Forgot to answer second question -

As far as the code accelerator is concerned, not that I can see. However, they have modified the garbage collector to track cyclic references. While poking around, I have also noticed numeros functions designated as 'now works regardless of system' though I can't recall any specific examples.
« Last Edit: June 30, 2009, 10:42:22 AM by JGadrow »
Idiocy - Never underestimate the power of stupid people in large groups.


 


SimplePortal 2.3.3 © 2008-2010, SimplePortal