Bug #72587 [NEW]: PHP CLI Hangs When Executing Script Through SSH

From: Date: Tue, 12 Jul 2016 16:34:15 +0000
Subject: Bug #72587 [NEW]: PHP CLI Hangs When Executing Script Through SSH
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202247@lists.php.net to get a copy of this message
From: avaland at woopta dot com Operating system: Funtoo PHP version: 5.6.23 Package: *General Issues Bug Type: Bug Bug description:PHP CLI Hangs When Executing Script Through SSH Description: ------------ Whenever I run php console.php in the SSHed box it hangs and does nothing... (I am SSHing from a Mac computer into the Funtoo server) PHP Version => 5.6.23-pl0-gentoo System => Linux icciles 4.0.5-gentoo #2 SMP Sat Jul 4 23:54:39 CDT 2015 x86_64 Build Date => Jul 6 2016 18:36:46 Configure Command => './configure' '--prefix=/usr' '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--prefix=/usr/lib64/php5.6' '--mandir=/usr/lib64/php5.6/man' '--infodir=/usr/lib64/php5.6/info' '--libdir=/usr/lib64/php5.6/lib' '--with-libdir=lib64' '--localstatedir=/var' '--without-pear' '--disable-maintainer-zts' '--disable-bcmath' '--with-bz2=/usr' '--disable-calendar' '--enable-ctype' '--with-curl=/usr' '--enable-dom' '--without-enchant' '--enable-exif' '--enable-fileinfo' '--enable-filter' '--enable-ftp' '--with-gettext=/usr' '--with-gmp=/usr' '--enable-hash' '--without-mhash' '--with-iconv' '--enable-intl' '--enable-ipv6' '--enable-json' '--without-kerberos' '--enable-libxml' '--with-libxml-dir=/usr' '--enable-mbstring' '--with-mcrypt=/usr' '--without-mssql' '--with-onig=/usr' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--disable-pcntl' '--enable-phar' '--enable-pdo' '--enable-opcache' '--without-pgsql' '--enable-posix' '--with-pspell=/usr' '--without-recode' '--enable-simplexml' '--disable-shmop' '--with-snmp=/usr' '--enable-soap' '--disable-sockets' '--with-sqlite3=/usr' '--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm' '--without-fpm-systemd' '--with-tidy=/usr' '--enable-tokenizer' '--disable-wddx' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xmlrpc' '--without-xsl' '--enable-zip' '--with-zlib=/usr' '--enable-debug' '--enable-dba' '--without-cdb' '--with-db4=/usr' '--disable-flatfile' '--with-gdbm=/usr' '--disable-inifile' '--without-qdbm' '--with-freetype-dir=/usr' '--with-t1lib=/usr' '--disable-gd-jis-conv' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--without-vpx-dir' '--with-gd' '--with-imap=/usr' '--with-imap-ssl=/usr' '--without-interbase' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--without-unixODBC' '--without-iodbc' '--without-oci8' '--without-pdo-dblib' '--with-pdo-mysql=mysqlnd' '--without-pdo-pgsql' '--with-pdo-sqlite=/usr' '--without-pdo-firebird' '--without-pdo-odbc' '--without-pdo-oci' '--with-readline=/usr' '--without-libedit' '--without-mm' '--with-pic' '--with-pcre-regex=/usr' '--with-pcre-dir=/usr' '--with-config-file-path=/etc/php/cli-php5.6' '--with-config-file-scan-dir=/etc/php/cli-php5.6/ext-active' '--disable-embed' '--enable-cli' '--disable-cgi' '--disable-fpm' '--without-apxs2' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-march=native '-mtune=generic' '-O2' '-pipe'' 'LDFLAGS=-Wl,-O1 '-Wl,--sort-common' '-Wl,--as-needed'' 'CPPFLAGS=' 'CXXFLAGS=-march=native '-mtune=generic' '-O2' '-pipe'' Test script: --------------- <?php echo 'test'; ?> Expected result: ---------------- test Actual result: -------------- gdb --args php console.php GNU gdb (Gentoo 7.10.1 vanilla) 7.10.1 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://bugs.gentoo.org/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from php...(no debugging symbols found)...done. (gdb) run Starting program: /usr/bin/php console.php [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". strace php console.php https://gist.github.com/Raistlfiren/fba1098d62b7230eb001784c9b140ad3 -- Edit bug report at https://bugs.php.net/bug.php?id=72587&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72587&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72587&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72587&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=72587&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=72587&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=72587&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=72587&r=needscript Try newer version: https://bugs.php.net/fix.php?id=72587&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=72587&r=support Expected behavior: https://bugs.php.net/fix.php?id=72587&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=72587&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=72587&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=72587&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72587&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=72587&r=dst IIS Stability: https://bugs.php.net/fix.php?id=72587&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=72587&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=72587&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=72587&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=72587&r=mysqlcfg

« previous php.bugs (#202247) next »