PHP 5.3 released.

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 22498
  • Loc: Pittsburgh PA
  • 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
"The web is a dominatrix. Every where I turn, I see little buttons ordering me to Submit."
Play sports pools and discuss sports topics at Boasting Rights Sports Forum
Get paid to write articles - www.associatedcontent.com
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 30th, 2009, 11:24 am

  • spork
  • HB
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 5479
  • Loc: Rochester, NY
  • Status: Offline

Post June 30th, 2009, 12:05 pm

goto

Why.

Seriously.

Why.
How to Maintain Simple, Static Pages in a CakePHP Application
EEEEEEEEE! It's here!!
  • SpooF
  • Ice Cream
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 2826
  • Loc: Richland, WA
  • Status: Offline

Post June 30th, 2009, 12:40 pm

:lol: haha

Image
I like how they have this on the documentation.
College Taught Me - And we're not talking about the classes!
@travisperson
  • joebert
  • Weathered
  • Genius
  • User avatar
  • Joined: Feb 10, 2004
  • Posts: 11872
  • Loc: Clearwater, FL
  • Status: Offline

Post June 30th, 2009, 2:47 pm

Some interesting new bundled extensions, that enchant spelling library for one. :D
Why yes, yes I am.
  • spork
  • HB
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 5479
  • Loc: Rochester, NY
  • 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:
How to Maintain Simple, Static Pages in a CakePHP Application
EEEEEEEEE! It's here!!
  • joebert
  • Weathered
  • Genius
  • User avatar
  • Joined: Feb 10, 2004
  • Posts: 11872
  • Loc: Clearwater, FL
  • 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.
Why yes, yes I am.
  • spork
  • HB
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 5479
  • Loc: Rochester, NY
  • Status: Offline

Post June 30th, 2009, 3:26 pm

Oooooooooooooooooooooooooooo.
How to Maintain Simple, Static Pages in a CakePHP Application
EEEEEEEEE! It's here!!
  • Rabid Dog
  • Cheese Monkey
  • Web Master
  • User avatar
  • Joined: May 21, 2004
  • Posts: 3188
  • 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 :)
My Software Development Company
Music I have recorded (fixed now :))
Image
  • Bogey
  • Disturbed
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 7127
  • Loc: Ozzuland
  • Status: Offline

Post June 30th, 2009, 11:34 pm

Interesting...
Learn PHP | I got 10 PHP tutorials! Check them out!
Dreamtale - Farewell
Just a note... I've giving up on web development and that stuff... Just lost all interest in it.
  • spork
  • HB
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 5479
  • Loc: Rochester, NY
  • 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.
How to Maintain Simple, Static Pages in a CakePHP Application
EEEEEEEEE! It's here!!
  • Rabid Dog
  • Cheese Monkey
  • Web Master
  • User avatar
  • Joined: May 21, 2004
  • Posts: 3188
  • 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?
My Software Development Company
Music I have recorded (fixed now :))
Image
  • spork
  • HB
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 5479
  • Loc: Rochester, NY
  • 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.
How to Maintain Simple, Static Pages in a CakePHP Application
EEEEEEEEE! It's here!!
  • joebert
  • Weathered
  • Genius
  • User avatar
  • Joined: Feb 10, 2004
  • Posts: 11872
  • Loc: Clearwater, FL
  • 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.
Why yes, yes I am.
  • spork
  • HB
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 5479
  • Loc: Rochester, NY
  • Status: Offline

Post July 1st, 2009, 7:24 pm

I don't see why a simple . couldn't suffice.
How to Maintain Simple, Static Pages in a CakePHP Application
EEEEEEEEE! It's here!!
  • Rabid Dog
  • Cheese Monkey
  • Web Master
  • User avatar
  • Joined: May 21, 2004
  • Posts: 3188
  • Loc: South Africa
  • Status: Offline

Post July 2nd, 2009, 3:43 am

Well .NET and Java get around with a . quiet fine :)
My Software Development Company
Music I have recorded (fixed now :))
Image
  • 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 189 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
 
 

© Unmelted Enterprises 1998-2009. Driven by phpBB © 2001-2009 phpBB Group.