From: aaron at stormsemi dot com
Operating system: Linux-2.6.15
PHP version: 5.2.6
PHP Bug Type: Session related
Bug description: ARM version exec issue
Description:
------------
localhost> /mnt/data/public/lsof -i :80
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
httpd 1219 root 5u IPv4 2941 TCP *:http (LISTEN)
httpd 1220 www_user 5u IPv4 2941 TCP *:http (LISTEN)
httpd 1221 www_user 5u IPv4 2941 TCP *:http (LISTEN)
httpd 1222 www_user 5u IPv4 2941 TCP *:http (LISTEN)
httpd 1223 www_user 5u IPv4 2941 TCP *:http (LISTEN)
httpd 1224 www_user 5u IPv4 2941 TCP *:http (LISTEN)
httpd 1225 www_user 5u IPv4 2941 TCP *:http (LISTEN)
httpd 1226 www_user 5u IPv4 2941 TCP *:http (LISTEN)
socktest 1235 www_user 5u IPv4 2941 TCP *:http (LISTEN)
socktest 1235 www_user 10u IPv4 2956 TCP
stornas.com.tw:http->192.168.2.36:2217 (FIN_WAIT2)
socktest listen to port 80
Reproduce code:
---------------
The environment is as below:
CPU: ARM 920
OS: Linux2.6.15 or Linux 2.6.25
Apache2: 2.2.3
PHP: 4.3.8 (libphp4.so) or 5.2.1 (libphp5.so)
compiler: gcc 3.4.4 for ARM
test.php
<?php
$output=array();
$return_var=0;
exec("/mnt/data/public/socktest > /dev/null &", $output,
$return_var);
?>
If change to Apache/1.3.33 (Unix) PHP/4.3.8 configured
PHP is statically linked with apache, and execute the same test.php
socktest does not catch port 80.
socktest is a small program which listen to port 1212 and daemonize
itself.
PC side using IE
http://192.168.2.137/test.php
Expected result:
----------------
socktest should not listen to port 80, because it only listen to port 1212
Actual result:
--------------
socktest listen to port 80
--
Edit bug report at http://bugs.php.net/?id=45425&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45425&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45425&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45425&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45425&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45425&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45425&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45425&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45425&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45425&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45425&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45425&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45425&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45425&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45425&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45425&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45425&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45425&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45425&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45425&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45425&r=mysqlcfg