ID:               49423
 Comment by:       david dot schueler at wapkamera dot de
 Reported By:      david dot schueler at wapkamera dot de
 Status:           Feedback
 Bug Type:         Streams related
 Operating System: Gentoo Linux
 PHP Version:      5.2.10
 New Comment:

Oh. Sorry. I'm wrong.

Here's the test with netcat on 64bit system:

Kienzle ~ # php /var/www/videoobservance/fwrite.php 
5.2.10-pl0-gentoo
Outputting: REGISTER abc
Bytes written to socket: 0
Outputting: REGISTER
Bytes written to socket: 8
Outputting:  REGISTER
Bytes written to socket: 9
Outputting: REGISTER 
Bytes written to socket: 9

Kienzle ~ # nc -l -u -p 5060
REGISTER REGISTERREGISTER


Previous Comments:
------------------------------------------------------------------------

[2009-09-01 15:56:38] david dot schueler at wapkamera dot de

My comment from 2009-09-01 08:55:49 was already on the 64bit system
with netcat.

------------------------------------------------------------------------

[2009-09-01 15:36:21] sjo...@php.net

Also, please try on the problematic system with nc instead of asterisk
as the listening process.

------------------------------------------------------------------------

[2009-09-01 13:06:59] david dot schueler at wapkamera dot de

And here on a 2nd non-64bit system:

Hauser ~ # php fwrite.php 
5.2.6RC4-pl0-gentoo
Outputting: REGISTER abc
Bytes written to socket: 12
Outputting: REGISTER
Bytes written to socket: 8
Outputting:  REGISTER
Bytes written to socket: 9
Outputting: REGISTER 
Bytes written to socket: 9

Hauser ~ # nc -l -u -p 5060
REGISTER abcREGISTER REGISTERREGISTER 

So this really looks to me, that it is depending on 64bit.
Is it possible to you to reproduce this on 64bit?

------------------------------------------------------------------------

[2009-09-01 12:52:45] david dot schueler at wapkamera dot de

And on a non 64bit system running Gentoo:

athen ~ # uname -a
Linux athen 2.6.20-hardened-r5 #1 SMP Sun Jul 29 21:36:07 GMT 2007 i686
AMD Duron(tm) processor AuthenticAMD GNU/Linux

athen ~ # php fwrite.php 
5.2.3-pl3-gentoo
Outputting: REGISTER abc
Bytes written to socket: 12
Outputting: REGISTER
Bytes written to socket: 8
Outputting:  REGISTER
Bytes written to socket: 9
Outputting: REGISTER 
Bytes written to socket: 9

athen ~ # nc -l -u -p 5060
REGISTER abcREGISTER REGISTERREGISTER 

So this is running fine with a listening process.
So may this issue due to the 64bit?

------------------------------------------------------------------------

[2009-09-01 12:39:51] david dot schueler at wapkamera dot de

Okay. I built 5.2.11 on an other systerm running debian.

Here are the results with no process listening on port 5060:
ns20 ~ # php test.php 
5.2.11RC2-dev
Outputting: "REGISTER abc"
Bytes written to socket: 12
Outputting: "REGISTER"
Bytes written to socket: 0
Outputting: " REGISTER"
Bytes written to socket: 9
Outputting: "REGISTER "
Bytes written to socket: 0

And, with listening nc on 5060:
ns20 ~ # nc -l -u -p 5060
REGISTER abcREGISTER REGISTERREGISTER 

ns20 ~ # php test.php
5.2.11RC2-dev
Outputting: "REGISTER abc"
Bytes written to socket: 12
Outputting: "REGISTER"
Bytes written to socket: 8
Outputting: " REGISTER"
Bytes written to socket: 9
Outputting: "REGISTER "
Bytes written to socket: 9

So on that debian system it is working. But i don't know why its
running on that system and not on the Gentoo platform.
There's really no firewall blocking the traffic. Even if it would so,
no packet should go through. But some are doing.

This is driving me crazy. :-/

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/49423

-- 
Edit this bug report at http://bugs.php.net/?id=49423&edit=1

Reply via email to