Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-19 Thread Oliver Grätz
Rasmus Lerdorf schrieb: > [...] > What do we do with code like this? If you follow it through it is > essentially doing: > > 3 = "banana"; This is obviously totally wrong and has to be noted as wrong, hence E_NOTICE. Since it can be dealt with without rendering the script unexecutable raising

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-18 Thread Chris Shiflett
Carl Furst wrote: Chris, You probably are aware that this comes from a C/C++ standard the '&' before the variable means that you are passing by reference and not by value. You are probably not aware that I'm not asking a question. :-) Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy h

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-18 Thread Robert Cummings
On Sun, 2005-09-18 at 16:10, Chris Shiflett wrote: > Robert Cummings wrote: > > I don't agree with your position that the above code is incorrect > > I think notices are fine for situations where you've probably screwed > up. I'd rather PHP let me know than do nothing. > > I see this situation a

RE: [PHP] Quick Poll: PHP 4 / 5

2005-09-18 Thread Carl Furst
ch of this sort. Carl > -Original Message- > From: Chris Shiflett [mailto:[EMAIL PROTECTED] > Sent: Sunday, September 18, 2005 4:10 PM > To: Robert Cummings > Cc: Rasmus Lerdorf; Stephen Leaf; PHP-General > Subject: Re: [PHP] Quick Poll: PHP 4 / 5 > > Robert Cumm

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-18 Thread Chris Shiflett
Robert Cummings wrote: I don't agree with your position that the above code is incorrect I think notices are fine for situations where you've probably screwed up. I'd rather PHP let me know than do nothing. I see this situation as being very similar to the following: This happens to throw

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-17 Thread leaf
- Original Message - From: "Jasper Bryant-Greene" <[EMAIL PROTECTED]> To: Sent: Friday, September 16, 2005 11:14 PM Subject: Re: [PHP] Quick Poll: PHP 4 / 5 leaf wrote: Actually I choose array_pop for 2 reasons. I like short code. I don't want to read thous

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-16 Thread Robert Cummings
On Sat, 2005-09-17 at 00:14, Jasper Bryant-Greene wrote: > leaf wrote: > > > > Actually I choose array_pop for 2 reasons. > > I like short code. I don't want to read thousands of lines just to get > > an idea. I tend to think in very compact code. if you find that ugly and > > unreadable. that's

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-16 Thread Jasper Bryant-Greene
leaf wrote: Actually I choose array_pop for 2 reasons. I like short code. I don't want to read thousands of lines just to get an idea. I tend to think in very compact code. if you find that ugly and unreadable. that's your preference. I find extended coding very ugly, mostly because I'm a slo

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-16 Thread leaf
- Original Message - From: "Jasper Bryant-Greene" <[EMAIL PROTECTED]> To: Sent: Friday, September 16, 2005 4:45 PM Subject: Re: [PHP] Quick Poll: PHP 4 / 5 Stephen Leaf wrote: So yes a bug. But for those that want to be able to grab only what we need. in my

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-16 Thread Manuel Lemos
Hello, on 09/15/2005 09:32 AM Oliver Grätz said the following: First of all, in many cases code reuse still is a myth. I hate to say it but it's true. Then, a large potion of the PHP community hasn't even heard of PEAR. Then, people definitely start projects from scratch. If You don't know if yo

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-16 Thread Jasper Bryant-Greene
Stephen Leaf wrote: So yes a bug. But for those that want to be able to grab only what we need. in my case array_pop's returned element. I don't wanna be hassled with the "are you sure you wanted to ignore part of what we did?" It's almost like every program asking "are you sure you wanted to cl

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-16 Thread Robert Cummings
On Fri, 2005-09-16 at 14:10, Rasmus Lerdorf wrote: > Well, this is the sort of thing the language should help you with. > Whether or not the code is incorrect or not is not the relevant question > I think. The question is whether the language should try to detect when > you are doing something th

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-16 Thread Rasmus Lerdorf
Robert Cummings wrote: > On Fri, 2005-09-16 at 10:28, Rasmus Lerdorf wrote: > >>Stephen Leaf wrote: >> >>>$this->urlArr[0] = array_pop($arr = explode("&",$this->urlArr[0])); >>> >>>I still have to scratch my head as to why I *need* that "$arr = " >>>prior to 5.0.5 this was not needed. >>>$this->ur

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-16 Thread Robert Cummings
On Fri, 2005-09-16 at 10:28, Rasmus Lerdorf wrote: > Stephen Leaf wrote: > > > > $this->urlArr[0] = array_pop($arr = explode("&",$this->urlArr[0])); > > > > I still have to scratch my head as to why I *need* that "$arr = " > > prior to 5.0.5 this was not needed. > > $this->urlArr[0] = array_pop(ex

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-16 Thread Stephen Leaf
Can't expect everything to be done right on the first try. But it sure was a big annoyance. Great to hear that work is being done to improve on this. I personally would rather it just be silently ignored as to me an error line at the top is the same as it not working at all. Would love to find a

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-16 Thread Rasmus Lerdorf
Stephen Leaf wrote: > > $this->urlArr[0] = array_pop($arr = explode("&",$this->urlArr[0])); > > I still have to scratch my head as to why I *need* that "$arr = " > prior to 5.0.5 this was not needed. > $this->urlArr[0] = array_pop(explode("&",$this->urlArr[0])); This is a much misunderstood issue

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-15 Thread Oliver Grätz
Pooly schrieb: > [x] I use a layer above PHP which is independant of whether it's PHP4 > or PHP 5, which is running Migration from 4.x to 5.0.3 was as > simple as changing a DNS record :-) > http://templeet.org/ A layer above PHP would mean this thing generates code specific to the underlying

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-15 Thread Robert Cummings
On Thu, 2005-09-15 at 16:25, Pooly wrote: > 2005/9/13, Ryan A <[EMAIL PROTECTED]>: > > Hi, > > I work for a company that makes websites and does custom programming for > > private indviduals and > > companies, I also freelance (like many on this list) > > > > I'm a bit curious, so far I have had n

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-15 Thread Pooly
2005/9/13, Ryan A <[EMAIL PROTECTED]>: > Hi, > I work for a company that makes websites and does custom programming for > private indviduals and > companies, I also freelance (like many on this list) > > I'm a bit curious, so far I have had no need to upgrade my skills or use the > slightly differ

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-15 Thread Robert Cummings
On Thu, 2005-09-15 at 08:32, Oliver Grätz wrote: > Manuel Lemos schrieb: > > >>A reference where _I_ have to search is something like a non-answer... > > > > If you try searching the bug database for PHP 4 versus PHP 5 opened bug > > reports you will get your answer. > > Same sentence still app

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-15 Thread Oliver Grätz
Manuel Lemos schrieb: >>A reference where _I_ have to search is something like a non-answer... > > If you try searching the bug database for PHP 4 versus PHP 5 opened bug > reports you will get your answer. Same sentence still applies. But OK: PHP4 has 518 open bugs, PHP5 only 203. What does th

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-15 Thread Jochem Maas
Stephen Leaf wrote: On Tuesday 13 September 2005 05:52 pm, Ryan A wrote: [x] I never work with PHP 4 anymore, all my work is with PHP 5 so far I've not found any hosts that do PHP5, however I do all my own hosting anyway. I've switched to use PHP5 because I was interested in doing XSL, and

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Manuel Lemos
Hello, on 09/14/2005 08:26 PM Oliver Grätz said the following: In theory those are the only changes. In practice, besides the officially admitted changes, there are also the bugs that were not yet discovered or fixed. Examples? Links? More information on this? The fact is that on http://bugs.

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Manuel Lemos
Hello, on 09/14/2005 08:20 PM Richard Lynch said the following: On Tue, September 13, 2005 7:50 pm, Manuel Lemos wrote: I also am a bit surprised for the tremendous lack of interest to upgrade to PHP 5. Ok, I expected that many people would not want to upgrade due to the nightmare of dealing wi

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Stephen Leaf
On Tuesday 13 September 2005 05:52 pm, Ryan A wrote: > [x] I never work with PHP 4 anymore, all my work is with PHP 5 so far I've not found any hosts that do PHP5, however I do all my own hosting anyway. I've switched to use PHP5 because I was interested in doing XSL, and the concept of doing ob

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Ryan A
Hey everyone, I'm the original guy who started this thread, now that it has taken a totally different curve from what I originally wrote, kindly dont forward your reply to me and the list, the discussion is good though,I just dont need two copies of it :-) Cheers, Ryan -- PHP General Mailing Lis

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Oliver Grätz
Richard Lynch schrieb: > [...] > Some of my sites are on 5. > > Some are on 4. > > I can't tell a difference. That's what I am evangelising. People seem very concerned about backward compatibility issues that _almost_ never come up (hell, the problems of PHP 4.3.x -> 4.4 are more serious than 4-

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Oliver Grätz
Manuel Lemos schrieb: >>>In theory those are the only changes. In practice, besides the >>>officially admitted changes, there are also the bugs that were not yet >>>discovered or fixed. >> >>Examples? Links? More information on this? The fact is that on > > http://bugs.php.net/ A reference wher

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Richard Lynch
On Tue, September 13, 2005 7:50 pm, Manuel Lemos wrote: > I also am a bit surprised for the tremendous lack of interest to > upgrade > to PHP 5. Ok, I expected that many people would not want to upgrade > due > to the nightmare of dealing with backwards incompatible changes, but I > did not expect

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Manuel Lemos
Hello, on 09/14/2005 01:30 PM Oliver Grätz said the following: In theory those are the only changes. In practice, besides the officially admitted changes, there are also the bugs that were not yet discovered or fixed. Examples? Links? More information on this? The fact is that on http://bug

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Oliver Grätz
Manuel Lemos schrieb: > In theory those are the only changes. In practice, besides the > officially admitted changes, there are also the bugs that were not yet > discovered or fixed. Examples? Links? More information on this? The fact is that on php.internals there are discussions to reduce the

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Oliver Grätz
Manuel Lemos schrieb: > In theory those are the only changes. In practice, besides the > officially admitted changes, there are also the bugs that were not yet > discovered or fixed. Examples? Links? More information on this? The fact is that on php.internals there are discussions to reduce the

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Jochem Maas
hi Ryan, here are my crosses :-) It would be nice if you could compile a small summary at some stage based on the replies - any chance of that? Ryan A wrote: ... [x] I am still working on PHP 4 [] I never work with PHP 4 anymore, all my work is with PHP 5 [] Oops, call me old fashioned but

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Ed Lazor
It seems that PHP 5 is not that much compelling to most people to justify the change. I'm sure you're right, but I also think it's a question of work load for the ISP. Many server upgrades don't occur unless it's urgent and even then they sometimes get missed. Plus... the last time I went

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Manuel Lemos
Hello, on 09/13/2005 10:46 PM Oliver Grätz said the following: Always this stuff about breaking backward compatibility. People seem to think that the change from 4 to 5 means such a lot. In fact the changes from PHP4.0 to PHP4.4 are much more numerous. The backwarr incompatible changes between 4

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Manuel Lemos
Hello, on 09/13/2005 10:39 PM Ben said the following: I guess this should ring a lot of bells for those that expect to develop products targetted to PHP 5, because the numbers seem to show that PHP 5 is a flop, despite PHP 5.0.0 was released more than 1 year ago. I think it points more to ho

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Oliver Grätz
Ben schrieb: > [...] Hosting > providers, which account for the vast majority of hosted domains, are > pretty conservative. In Germany they're no that conservative. One of the biggest hosters in Germany (several million domains) allows to chosse between PHP 3, 4.0.6 4.3.x and 5.x via .htaccess

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Oliver Grätz
Always this stuff about breaking backward compatibility. People seem to think that the change from 4 to 5 means such a lot. In fact the changes from PHP4.0 to PHP4.4 are much more numerous. The backwarr incompatible changes between 4 and 5 fit on asingle page of screen: http://de.php.net/manual/

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Ben
Manuel Lemos wrote: I guess this should ring a lot of bells for those that expect to develop products targetted to PHP 5, because the numbers seem to show that PHP 5 is a flop, despite PHP 5.0.0 was released more than 1 year ago. I think it points more to hosting providers who don't want to f

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Manuel Lemos
Hello, on 09/13/2005 09:54 PM Ryan A said the following: Manuel also gave me a very good link: http://www.nexen.net/interview/index.php?id=49 although the percentages there might not be totally accurate as is today, coz that may have been a survey some time back, dont know for sure as I dont und

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Ryan A
Hey all, Hehe, sorry, didnt mean to ruffle anyones feathersjust reply to me and not the list if you want to. Thanks to everyone who replied, esp those like Manuel Lemos who wrote a pretty long explanation for his reasons, as did [EMAIL PROTECTED] (sorry mate, you didnt leave your name in the

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Dragan Stanojevic - Nevidljivi
Ryan A wrote: I'm a bit curious, so far I have had no need to upgrade my skills or use the slightly different format / functions of PHP 5.x.infact I have not seen all that many hosts actually having support for it, so I thought of this little poll :-) [x] blah blah Don't think you'll get a

[PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Ryan A
Hi, I work for a company that makes websites and does custom programming for private indviduals and companies, I also freelance (like many on this list) I'm a bit curious, so far I have had no need to upgrade my skills or use the slightly different format / functions of PHP 5.x.infact I have n