Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-04-11 Thread Andi Gutmans
Just curious. What does their pragma do? Andi At 03:16 AM 4/10/2001 +, Jason Greene wrote: jason Mon Apr 9 20:16:06 2001 EDT Modified files: /php4/ext/sockets sockets.c Log: Fix for PR #9729, 9664, 9656, 8667. All compilers on Solaris should build this

Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-04-11 Thread Jason Greene
tmans" [EMAIL PROTECTED] To: "Jason Greene" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, April 11, 2001 5:21 PM Subject: Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c Just curious. What does their pragma do? Andi At 03:16 AM 4/10/2001 +, Jason Greene wrote: jason

Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-04-10 Thread Jani Taskinen
Jason Greene" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 09, 2001 10:16 PM Subject: [PHP-CVS] cvs: php4 /ext/sockets sockets.c jason Mon Apr 9 20:16:06 2001 EDT Modified files: /php4/ext/sockets sockets.c Log: Fix for PR #9729, 9664, 9656, 8667. All

RE: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-04-10 Thread James Moore
Everyone, Can I merge this into the current RC? This should not cause any problems. What are we doing with the current release right now? who is having problems and which problems are outstanding?? We have two possible MFH's that people want to do which shouldnt really be included at this

Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-04-10 Thread Jason Greene
kinen" [EMAIL PROTECTED] To: "Jason Greene" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 5:01 AM Subject: Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c Have you tested it on Linux, FreeBSD, OpenBSD... ? :) If you know for sure it will work on these,

Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-04-10 Thread Derick Rethans
On Tue, 10 Apr 2001, Jason Greene wrote: Out of those platforms you listed, I have tested this on Linux. I will test FreeBSD today. However, I do not have an OpenBSD box, does anyone out there want to try and build the latest cvs with --enable-sockets on OpenBSD? I can test to build it...

Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-04-10 Thread Jason Greene
Thanks, -Jason - Original Message - From: "Derick Rethans" [EMAIL PROTECTED] To: "Jason Greene" [EMAIL PROTECTED] Cc: "Jani Taskinen" [EMAIL PROTECTED]; "Jason Greene" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 11:32

Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-04-10 Thread Jason Greene
PROTECTED] To: "Jason Greene" [EMAIL PROTECTED] Cc: "Jani Taskinen" [EMAIL PROTECTED]; "Sascha Schumann" [EMAIL PROTECTED]; "PHP Quality Assurance Team Mailing List" [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 12:40 PM Subject: Re: [PHP-CVS] cvs: php4 /e

[PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-04-09 Thread Jason Greene
jason Mon Apr 9 20:16:06 2001 EDT Modified files: /php4/ext/sockets sockets.c Log: Fix for PR #9729, 9664, 9656, 8667. All compilers on Solaris should build this extension correctly now. It turns out the SUN CC, by default, enables a define that enables

Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-04-09 Thread Jason Greene
Everyone, Can I merge this into the current RC? This should not cause any problems. -Jason - Original Message - From: "Jason Greene" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 09, 2001 10:16 PM Subject: [PHP-CVS] cvs: php4 /ext/sockets sockets.c jason

Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-02-03 Thread Boian Bonev
hi, What do you mean, switch() is expensive? Well, isn't it slower? perhapse in php switch is slower. in c it sometimes is much faster than bunch of if statements. i mean the compiler makes jump tables for consequitive values and there are less comparisons etc. just a range check and jump.

Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-02-03 Thread Andi Gutmans
By the way, often compilers change switch() to if()/else() if they know that it would be faster (if you only have like 2 cases) so if the code is much nicer you don't need to be too afraid of switch() :) Andi At 03:44 PM 2/3/2001 +0200, Boian Bonev wrote: hi, What do you mean, switch()

[PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-02-02 Thread Colin Viebrock
cmv Fri Feb 2 12:55:27 2001 EDT Modified files: /php4/ext/sockets sockets.c Log: Fix for http://bugs.php.net/bugs.php?id=9082 I know switch() is expensive, so someone rewrite this "properly" if you want. Index: php4/ext/sockets/sockets.c

Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-02-02 Thread Andrei Zmievski
On Fri, 02 Feb 2001, Colin Viebrock wrote: cmv Fri Feb 2 12:55:27 2001 EDT Modified files: /php4/ext/sockets sockets.c Log: Fix for http://bugs.php.net/bugs.php?id=9082 I know switch() is expensive, so someone rewrite this "properly" if you

Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-02-02 Thread Andrei Zmievski
On Fri, 02 Feb 2001, Colin Viebrock wrote: Well, isn't it slower? No, not really. The goal is to make getpeername() not seg-fault and core dump when I only call it with 2 args. :) What should the value of 'port' be by default, then? -Andrei * Who is Ray and why would we want to selectively

RE: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-02-02 Thread Colin Viebrock
Well, isn't it slower? No, not really. Ok. The goal is to make getpeername() not seg-fault and core dump when I only call it with 2 args. :) What should the value of 'port' be by default, then? I dunno. If I call the function with: ? getpeername($fd, $host); ? I guess

Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-02-02 Thread Andrei Zmievski
On Fri, 02 Feb 2001, Colin Viebrock wrote: I dunno. If I call the function with: ? getpeername($fd, $host); ? I guess it doesn't matter what the port *is* ... it just won't return it. Maybe just put if statements around any of the code that references port? Ok, I fixed it.

RE: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-02-02 Thread Colin Viebrock
Ok, I fixed it. Thanks ... although "bogus patch" is kinda harsh, don't you think? :) - Colin -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-02-02 Thread Andrei Zmievski
On Fri, 02 Feb 2001, Colin Viebrock wrote: Ok, I fixed it. Thanks ... although "bogus patch" is kinda harsh, don't you think? :) Well, sorry if it seemed harsh, but you tried to fix one problem and introduced another without really understanding what needed to be done. -Andrei Give a man

RE: [PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-02-02 Thread Colin Viebrock
Well, sorry if it seemed harsh, but you tried to fix one problem and introduced another without really understanding what needed to be done. True. I was relying on a fix somebody suggested. This is also why I noted in the CVS comments that somebody else should look at this. I'll be the

[PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-01-18 Thread Sterling Hughes
sterlingThu Jan 18 12:49:13 2001 EDT Modified files: /php4/ext/sockets sockets.c Log: Fix the proto Index: php4/ext/sockets/sockets.c diff -u php4/ext/sockets/sockets.c:1.28 php4/ext/sockets/sockets.c:1.29 --- php4/ext/sockets/sockets.c:1.28

[PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-01-16 Thread Rasmus Lerdorf
rasmus Tue Jan 16 12:37:51 2001 EDT Modified files: /php4/ext/sockets sockets.c Log: Kill some warnings Index: php4/ext/sockets/sockets.c diff -u php4/ext/sockets/sockets.c:1.27 php4/ext/sockets/sockets.c:1.28 --- php4/ext/sockets/sockets.c:1.27 Wed