Bug #72587 [Opn->Csd]: PHP CLI Hangs When Executing Script Through SSH

From: Date: Tue, 12 Jul 2016 22:29:18 +0000
Subject: Bug #72587 [Opn->Csd]: PHP CLI Hangs When Executing Script Through SSH
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202254@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72587&edit=1 ID: 72587 User updated by: avaland at woopta dot com Reported by: avaland at woopta dot com Summary: PHP CLI Hangs When Executing Script Through SSH -Status: Open +Status: Closed Type: Bug Package: *General Issues Operating System: Funtoo PHP Version: 5.6.23 Block user comment: N Private report: N New Comment: Xdebug was blocking the program from running. Previous Comments: ------------------------------------------------------------------------ [2016-07-12 16:34:09] avaland at woopta dot com 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' '--disabl! e-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 this bug report at https://bugs.php.net/bug.php?id=72587&edit=1

« previous php.bugs (#202254) next »