Bug #67654 [Opn->Dup]: socket_listen() with exec() problem

From: Date: Mon, 04 Aug 2014 19:36:41 +0000
Subject: Bug #67654 [Opn->Dup]: socket_listen() with exec() problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186965@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67654&edit=1 ID: 67654 Updated by: langemeijer@php.net Reported by: root at mit dot sh Summary: socket_listen() with exec() problem -Status: Open +Status: Duplicate Type: Bug Package: Sockets related Operating System: Centos 6.5 x64 PHP Version: 5.5.14 Block user comment: N Private report: N New Comment: This is a duplicate of bug #67383 (Which contains a patch that should be merged by someone!) Previous Comments: ------------------------------------------------------------------------ [2014-07-19 20:43:45] root at mit dot sh Description: ------------ you can run test script on every php but if you need some specifications, here is my php compile parameters; ./configure --with-libdir=lib64 --with-freetype-dir=/usr/include/freetype2 --enable-zip --enable-sockets --enable-pcntl --enable-ftp --enable-mbstring --enable-shmop --enable-fpm --enable-cli --disable-phar --with-mysql --with-gd --with-t1lib --with-openssl --with-zlib --with-curl --with-bz2 --with-pdo-mysql --with-xmlrpc --with-mcrypt --with-ssh2 --enable-soap --enable-intl --without-pear Test script: --------------- #!/usr/bin/php <? $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); socket_bind($sock, '127.0.0.1', 1432); socket_listen($sock); exec('service httpd restart'); socket_close($sock); socket_shutdown($sock); Expected result: ---------------- when php is done, port 1432 will be close and no proccess should listen port 1432. Actual result: -------------- when code run is finish, php is not listenning port 1432, but httpd is listennig port 1432. if you add "sudo" before the command, its working correctly and no proccess is listenning port 1432. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67654&edit=1

« previous php.bugs (#186965) next »