Bluehost.com Web Hosting $6.95

namespaces ... coming to a php5.3 near you.

This is a discussion on namespaces ... coming to a php5.3 near you. within the PHP General forums, part of the PHP Programming Forums category; has anyone here downloaded/compiled 5.3 and played with namespaces? have you encountered any issues/problems? I'd like ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-11-2008
Jochem Maas
 
Posts: n/a
Default namespaces ... coming to a php5.3 near you.

has anyone here downloaded/compiled 5.3 and played with namespaces?
have you encountered any issues/problems?

I'd like to hear from you as I've been asked to compile a reference documenting anything/everything
people may have come across (so far as namespaces go), if you have some reproduce code, all
the better.

rgds,
Jochem
Reply With Quote
  #2 (permalink)  
Old 09-12-2008
Jochem Maas
 
Posts: n/a
Default Re: [PHP] namespaces ... coming to a php5.3 near you.

Jochem Maas schreef:
> has anyone here downloaded/compiled 5.3 and played with namespaces?
> have you encountered any issues/problems?


so no-one? really? none of you muppets ever even smelled a namespace?

> I'd like to hear from you as I've been asked to compile a reference
> documenting anything/everything
> people may have come across (so far as namespaces go), if you have some
> reproduce code, all
> the better.
>
> rgds,
> Jochem
>


Reply With Quote
  #3 (permalink)  
Old 09-12-2008
Lester Caine
 
Posts: n/a
Default Re: [PHP] namespaces ... coming to a php5.3 near you.

Jochem Maas wrote:
> Jochem Maas schreef:
>> has anyone here downloaded/compiled 5.3 and played with namespaces?
>> have you encountered any issues/problems?

>
> so no-one? really? none of you muppets ever even smelled a namespace?
>
>> I'd like to hear from you as I've been asked to compile a reference
>> documenting anything/everything
>> people may have come across (so far as namespaces go), if you have
>> some reproduce code, all
>> the better.


Have to work through the 5.2 -> 5.3 issues first before DELIBERATELY
introducing something that breaks compatibility with customer sites ;)

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
Reply With Quote
  #4 (permalink)  
Old 09-12-2008
metastable
 
Posts: n/a
Default Re: [PHP] namespaces ... coming to a php5.3 near you.

Jochem Maas wrote:
> Jochem Maas schreef:
>> has anyone here downloaded/compiled 5.3 and played with namespaces?
>> have you encountered any issues/problems?

>
> so no-one? really? none of you muppets ever even smelled a namespace?
>
>> I'd like to hear from you as I've been asked to compile a reference
>> documenting anything/everything
>> people may have come across (so far as namespaces go), if you have
>> some reproduce code, all
>> the better.
>>
>> rgds,
>> Jochem
>>

>
>

I haven't tried php namespaces yet, but have implemented them for my own
projects, to
1) avoid the ever enduring hassle of setting directory paths for every
host where the project lives in one form or another (dev, test, production).
2) calling classes according to their logical structure, in stead of
figuring out in what freaking folder I put the class.

namespaceMyProjectName('db.mysql.MySqlHandler');

Nice and easy, although at a performance cost atm. I'm looking forward
to seeing how PHP handles it.

greetz,


Stijn


Reply With Quote
  #5 (permalink)  
Old 09-12-2008
Colin Guthrie
 
Posts: n/a
Default Re: namespaces ... coming to a php5.3 near you.

Lester Caine wrote:
> Jochem Maas wrote:
>> Jochem Maas schreef:
>>> has anyone here downloaded/compiled 5.3 and played with namespaces?
>>> have you encountered any issues/problems?

>>
>> so no-one? really? none of you muppets ever even smelled a namespace?
>>
>>> I'd like to hear from you as I've been asked to compile a reference
>>> documenting anything/everything
>>> people may have come across (so far as namespaces go), if you have
>>> some reproduce code, all
>>> the better.

>
> Have to work through the 5.2 -> 5.3 issues first before DELIBERATELY
> introducing something that breaks compatibility with customer sites ;)


Namespaces are sweet and all, but having worked without them for some
time, I've certainly developed fairly ingrained ways of working without
them.

Adapting to use them will take a long time, but I doubt I'm gonna jump
in head feet straight away...

Col



--

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]

Reply With Quote
  #6 (permalink)  
Old 09-12-2008
Jochem Maas
 
Posts: n/a
Default Re: [PHP] namespaces ... coming to a php5.3 near you.

Lester Caine schreef:
> Jochem Maas wrote:
>> Jochem Maas schreef:
>>> has anyone here downloaded/compiled 5.3 and played with namespaces?
>>> have you encountered any issues/problems?

>>
>> so no-one? really? none of you muppets ever even smelled a namespace?
>>
>>> I'd like to hear from you as I've been asked to compile a reference
>>> documenting anything/everything
>>> people may have come across (so far as namespaces go), if you have
>>> some reproduce code, all
>>> the better.

>
> Have to work through the 5.2 -> 5.3 issues first before DELIBERATELY
> introducing something that breaks compatibility with customer sites ;)


I am aware of your situation/opinion/etc from internals mailing list,
I'm interested to hear from people who have grabbed a copy of 5.3 and
had a go at *trying out* the new stuff.

Also I did stipulate 'play' which implies testing the new functionality,
not rolling it into production codebases.

>


Reply With Quote
  #7 (permalink)  
Old 09-12-2008
Jochem Maas
 
Posts: n/a
Default Re: [PHP] namespaces ... coming to a php5.3 near you.

metastable schreef:
> Jochem Maas wrote:
>> Jochem Maas schreef:
>>> has anyone here downloaded/compiled 5.3 and played with namespaces?
>>> have you encountered any issues/problems?

>>
>> so no-one? really? none of you muppets ever even smelled a namespace?
>>
>>> I'd like to hear from you as I've been asked to compile a reference
>>> documenting anything/everything
>>> people may have come across (so far as namespaces go), if you have
>>> some reproduce code, all
>>> the better.
>>>
>>> rgds,
>>> Jochem
>>>

>>
>>

> I haven't tried php namespaces yet, but have implemented them for my own
> projects, to
> 1) avoid the ever enduring hassle of setting directory paths for every
> host where the project lives in one form or another (dev, test,
> production).
> 2) calling classes according to their logical structure, in stead of
> figuring out in what freaking folder I put the class.
>
> namespaceMyProjectName('db.mysql.MySqlHandler');
>
> Nice and easy, although at a performance cost atm.


probably a big performance cost. that said I'd like to hear/see
some more of your implementation, could you elaborate?

> I'm looking forward
> to seeing how PHP handles it.


well download an alpha of php5.3 and take a look, more testers
are needed ... this is a major addition and there are plenty of
edge cases (it seems) that have yet to be covered.

> greetz,
>
>
> Stijn
>
>


Reply With Quote
  #8 (permalink)  
Old 09-12-2008
Robert Cummings
 
Posts: n/a
Default Re: [PHP] namespaces ... coming to a php5.3 near you.

On Fri, 2008-09-12 at 11:39 +0200, Jochem Maas wrote:
> Jochem Maas schreef:
> > has anyone here downloaded/compiled 5.3 and played with namespaces?
> > have you encountered any issues/problems?

>
> so no-one? really? none of you muppets ever even smelled a namespace?


I like to use techniques that have wide version applicability.
Namespaces are a great feature that I look forward to leveraging, but at
this time they would cause any application to become backward
incompatible with any PHP version less than 5.3. As it stands I've
always been particularly anal about using long class/function names
using the prefix technique to prevent collision.

Normally I'd kick the wheels a bit, but I haven't had a lot of time for
kicking wheels lately :/

Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

Reply With Quote
Reply
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

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




All times are GMT +1. The time now is 02:55 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0