TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-24-2008, 08:50 PM   #1 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default When will php5.3.0 release?

I just can't wait to use namespaces :)....
__________________
PHP/XHTML Freelancer:
Cleanscript.com v3 - Programming starting at just $5 act now!
Nor is offline  
Reply With Quote
Old 01-24-2008, 09:10 PM   #2 (permalink)
The Contributor
 
Join Date: Dec 2007
Location: Florida
Posts: 73
Thanks: 12
danielneri is on a distinguished road
Default

What exactly are namespaces anyway?
__________________
Send a message via AIM to danielneri
danielneri is offline  
Reply With Quote
Old 01-24-2008, 09:11 PM   #3 (permalink)
Alan @ CIT
Member of the Month
The Frequenter
Member of the Month Top Contributor 
 
Alan @ CIT's Avatar
 
Join Date: Apr 2005
Location: South UK
Posts: 483
Thanks: 51
Alan @ CIT is on a distinguished road
Default

There is no set release date yet as far as I know but I would guess at March/April by the time it's got through QA, betas and RC's - perhaps even later.

Alan
Send a message via MSN to Alan @ CIT
Alan @ CIT is offline  
Reply With Quote
Old 01-24-2008, 09:14 PM   #4 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default

man php5.3 is going to be so useful :D.... this will make coding more interesting to be honest, you never know whats in store. (plus this topic will be #1 in google search O_o heh :))...
__________________
PHP/XHTML Freelancer:
Cleanscript.com v3 - Programming starting at just $5 act now!
Nor is offline  
Reply With Quote
Old 01-24-2008, 09:19 PM   #5 (permalink)
The Contributor
 
Join Date: Dec 2007
Location: Florida
Posts: 73
Thanks: 12
danielneri is on a distinguished road
Default

I read up on namespaces, although how exactly are they more useful?
__________________
Send a message via AIM to danielneri
danielneri is offline  
Reply With Quote
Old 01-24-2008, 11:53 PM   #6 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Why do we need Namespaces again?

The only types of namespaces I've worked with were in C++ and that was simply
Code:
#include <iostream>
using namespace std;
// Though you could do the same by putting every single line a std::, some //programmers sometimes use this cause it's lesser bytes of data
In php, though:
PHP Code:
<?php
namespace A;
?>
Never used them myself
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 01-25-2008, 01:02 AM   #7 (permalink)
The Addict
 
Join Date: Nov 2007
Posts: 264
Thanks: 2
TlcAndres is on a distinguished road
Default

As I understand it provides a more generalized body for classes like

PHP Code:
namespace DB;

class 
mysql
{
   function 
blah()
   {}
}

class 
sqlite
{
  function 
blah()
  {}
}

echo 
DB::mysql::blah(); 
TlcAndres is offline  
Reply With Quote
Old 01-25-2008, 07:52 AM   #8 (permalink)
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

quick example:

PHP Code:
namespace DB_MySQL
{
    class 
DB { ... }
}

namespace 
DB_Postgre
{
    class 
DB { ... }


and some sort of usage:

PHP Code:
if( driver == 'postgre' ) use namespace DB_Postgre;
else use namespace 
DB_MySQL;

$db = new DB();
[
more stuff

This is just a prototype of what can be done.
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:27 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design