PHP 5.3 released.

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

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
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

goto

Why.

Seriously.

Why.
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

:lol: haha

Image
I like how they have this on the documentation.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

Some interesting new bundled extensions, that enchant spelling library for one. :D
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

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:
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

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.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

Oooooooooooooooooooooooooooo.
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3245
  • Loc: South Africa

Post 3+ Months Ago

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 :)
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

Interesting...
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

I still don't quite understand their decision to use the backslash as the namespace separator.
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3245
  • Loc: South Africa

Post 3+ Months Ago

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?
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

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.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

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.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

I don't see why a simple . couldn't suffice.
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3245
  • Loc: South Africa

Post 3+ Months Ago

Well .NET and Java get around with a . quiet fine :)
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

Exactly.
  • middayc
  • Novice
  • Novice
  • User avatar
  • Posts: 23
  • Loc: Slovenia

Post 3+ Months Ago

I am very happy that they added:

* Lambda Functions and Closures

It will be interesting to me how my php coding style might totally change with this addition.

Namespaces.. I don't know.. they are probably usefull for big projects, libraries/modules but a lot of these Java like features IMHO are a bloat in a dynamic language like PHP.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

I remember when I started learning PHP after Javascript, I didn't like going from a dot to a -> I remember thinking that everything else uses a dot, why not PHP ?
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

joebert wrote:
I remember when I started learning PHP after Javascript, I didn't like going from a dot to a -> I remember thinking that everything else uses a dot, why not PHP ?


Same here. One keystroke as opposed to three - no competition.
  • middayc
  • Novice
  • Novice
  • User avatar
  • Posts: 23
  • Loc: Slovenia

Post 3+ Months Ago

couldn't agree more, not using . is really unnecesarry difference from all other c-like languages.

I guess it doesn't use it because it uses it for string concatenation $a.$b.. but that is an unusual use of character also.

Post Information

  • Total Posts in this topic: 20 posts
  • Users browsing this forum: No registered users and 164 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.