From: anilsoneji at gmail dot com Operating system: chrooted ubuntu on android PHP version: 5.3.20 Package: PHP options/info functions Bug Type: Bug Bug description:fsockopen function not work on chrooted ubuntu linux os on android device.
Description: ------------ fsockopen function not work on chrooted ubuntu linux os on android device. Test script: --------------- <?php $socket = fsockopen("127.0.0.1","5038", $errno, $errstr, 1); fputs($socket, "Action: Login\r\n"); fputs($socket, "UserName: admin\r\n"); fputs($socket, "Secret: devindia\r\n\r\n"); fputs($socket, "Action: Command\r\n"); fputs($socket, "Command: reload\r\n\r\n"); fputs($socket, "Action: Logoff\r\n\r\n"); while (!feof($socket)) { fgets($socket,200); echo $value[$count].'<br>'; } fclose($socket); ?> Actual result: -------------- 2013-01-17 15:52:20: (mod_fastcgi.c.2701) FastCGI-stderr: PHP Warning: fsockopen(): unable to connect to 127.0.0.1:5038 (Unknown error) in /var/www/test.php on line 2 -- Edit bug report at https://bugs.php.net/bug.php?id=64009&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64009&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64009&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64009&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64009&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64009&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64009&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64009&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64009&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64009&r=support Expected behavior: https://bugs.php.net/fix.php?id=64009&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64009&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64009&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64009&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64009&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64009&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64009&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64009&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64009&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64009&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64009&r=mysqlcfg