PHP 5.3 released.

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post June 30th, 2009, 11:24 am

http://www.php.net/archive/2009.php#id2009-06-30-1
Quote:
The PHP development team is proud to announce the immediate release of PHP 5.3.0. This release is a major improvement in the 5.X series, which includes a large number of new features and bug fixes.

The key features of PHP 5.3.0 include:

* Support for namespaces
* Late static binding
* Lambda Functions and Closures
* Syntax additions: NOWDOC, ternary short cut "?:" and jump label (limited goto), __callStatic()
* Under the hood performance improvements
* Optional garbage collection for cyclic references
* Optional mysqlnd PHP native replacement for libmysql
* Improved Windows support including VC9 and experimental X64 binaries as well as portability to other supported platforms
* More consistent float rounding
* Deprecation notices are now handled via E_DEPRECATED (part of E_ALL) instead of the E_STRICT error level
* Several enhancements to enable more flexiblity in php.ini (and ini parsing in general)
* New bundled extensions: ext/phar, ext/intl, ext/fileinfo, ext/sqlite3, ext/enchant
* Over 140 bug fixes and improvements to PHP, in particular to: ext/openssl, ext/spl and date
Moderator Remark: Linked up extensions
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 30th, 2009, 11:24 am

  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6130
  • Loc: Seattle, WA
  • Status: Offline

Post June 30th, 2009, 12:05 pm

goto

Why.

Seriously.

Why.
The Beer Monocle. Classy.
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post June 30th, 2009, 12:40 pm

:lol: haha

Image
I like how they have this on the documentation.
#define NULL (::rand() % 2)
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post June 30th, 2009, 2:47 pm

Some interesting new bundled extensions, that enchant spelling library for one. :D
Strong with this one, the sudo is.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6130
  • Loc: Seattle, WA
  • Status: Offline

Post June 30th, 2009, 2:54 pm

Quote:
Syntax additions: NOWDOC, ternary short cut "?:" and jump label (limited goto), __callStatic()


Umm, the ternary conditional has been in there since PHP4 I believe. It definitely isn't new as of 5.3... :scratchhead:
The Beer Monocle. Classy.
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post June 30th, 2009, 3:12 pm

spork wrote:
Quote:
Syntax additions: NOWDOC, ternary short cut "?:" and jump label (limited goto), __callStatic()


Umm, the ternary conditional has been in there since PHP4 I believe. It definitely isn't new as of 5.3... :scratchhead:


http://www.php.net/ternary#language.ope ... on.ternary

Quote:
Since PHP 5.3, it is possible to leave out the middle part of the ternary operator. Expression expr1 ?: expr3 returns expr1 if expr1 evaluates to TRUE, and expr3 otherwise.
Strong with this one, the sudo is.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6130
  • Loc: Seattle, WA
  • Status: Offline

Post June 30th, 2009, 3:26 pm

Oooooooooooooooooooooooooooo.
The Beer Monocle. Classy.
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Joined: May 21, 2004
  • Posts: 3229
  • Loc: South Africa
  • Status: Offline

Post June 30th, 2009, 3:35 pm

Namespaces, nice. Easier to manage replicated object names allowing the creation of domain objects and data objects. Like the packages and namespace in C# and Java.

By ref? really? In PHP? Is this a proper by ref or is this an implied by ref?

GOTO? Man they really are trying to pack everything into one language, even the dinosaurs!

Just a pity it isn't compilable and strongly typed. Yes I know, it has implied strong typing but not true strong typing.

But then you get languages that are trying to go from strong type to duck type. Silly billies! Stick to what you good at.

Recon I will download it and have a fiddle :)
Watch me grow
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post June 30th, 2009, 11:34 pm

Interesting...
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6130
  • Loc: Seattle, WA
  • Status: Offline

Post July 1st, 2009, 8:41 am

I still don't quite understand their decision to use the backslash as the namespace separator.
The Beer Monocle. Classy.
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Joined: May 21, 2004
  • Posts: 3229
  • Loc: South Africa
  • Status: Offline

Post July 1st, 2009, 9:08 am

spork wrote:
I still don't quite understand their decision to use the backslash as the namespace separator.


HAHAHAHAHAHA I didn't see that. Prehaps it has something to do with a path it gets placed in, kinda like src packages in Java?
Watch me grow
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6130
  • Loc: Seattle, WA
  • Status: Offline

Post July 1st, 2009, 10:13 am

There was a big debate over it a few months ago when the PHP team first announced that they'd be using it. Basically the entire community was up in arms about it, and the PHP team was all "nah guys it'll be ok, shhhhh" and then just went ahead and did it anyway.
The Beer Monocle. Classy.
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post July 1st, 2009, 3:57 pm

I bet if classes didn't already use :: for static methods and whatnot, they would have used that like a lot of people seemed to want.
Strong with this one, the sudo is.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6130
  • Loc: Seattle, WA
  • Status: Offline

Post July 1st, 2009, 7:24 pm

I don't see why a simple . couldn't suffice.
The Beer Monocle. Classy.
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Joined: May 21, 2004
  • Posts: 3229
  • Loc: South Africa
  • Status: Offline

Post July 2nd, 2009, 3:43 am

Well .NET and Java get around with a . quiet fine :)
Watch me grow
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 2nd, 2009, 3:43 am

Post Information

  • Total Posts in this topic: 20 posts
  • Users browsing this forum: No registered users and 252 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.