ID:               40750
 User updated by:  andreas dot rieber at 2e-systems dot com
 Reported By:      andreas dot rieber at 2e-systems dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Network related
-Operating System: OpenSuse, Ubuntu
+Operating System: OpenSuse, Ubuntu, Redhat
 PHP Version:      5.2.1
 New Comment:

Now tested also redhat with same problem.

There is nothing special done:
tar xvzf php-5.2.1.tar.gz
cd php-5.2.1
./configure --enable-track-vars --with-mysql=/usr/local/mysql
--enable-trans-sid --with-apxs2=/usr/local/apache2/bin/apxs
--with-mcrypt --with-zlib-dir=/usr/lib/ --with-gd --enable-exif
--enable-soap --with-openssl --with-xmlrpc --enable-sockets
make

thats it...


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

[2007-03-12 09:34:12] [EMAIL PROTECTED]

What am I doing wrong?
# ./sapi/cli/php /tmp/5.php
5

# cat /tmp/5.php
<?php

ini_set( 'default_socket_timeout', 5);

$fp = fsockopen( 'www.php.net', 80, &$errno, &$errstr, 3);
$start = time();
$data = fread( $fp, 8192);
fclose( $fp);

echo time() - $start;

?>


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

[2007-03-12 05:24:24] judas dot iscariote at gmail dot com

Im experiencing a very similar problem like this, probably not the same
but related, that makes our application stop working after upgrading
from php 5.2.0 to 5.2.1 all previuos versions do the job fine,

I 'll try to isolate the problem better.

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

[2007-03-11 14:51:19] andreas dot rieber at 2e-systems dot com

we reproduced it on second OS and wrote better test:

--TEST--
Bug #40750 (default_socket_timeout Test)
--FILE--
<?php

ini_set( 'default_socket_timeout', 5);

$fp = fsockopen( 'www.php.net', 80, &$errno, &$errstr, 3);
$start = time();
$data = fread( $fp, 8192);
fclose( $fp);

echo time() - $start;

?>
--EXPECT--
5

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

[2007-03-09 10:30:48] [EMAIL PROTECTED]

Not reproducible.

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

[2007-03-08 13:32:45] andreas dot rieber at 2e-systems dot com

I tried now also the latest snapshoot (php5.2-200703081130) and double
checked my default_socket_timeout which is 60. The fgets gets the
timeout from fsockopen.

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

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/40750

-- 
Edit this bug report at http://bugs.php.net/?id=40750&edit=1
  • #40750 [Fbk->Opn]: fsockopen t... andreas dot rieber at 2e-systems dot com

Reply via email to