From: jama at mk dot cvut dot cz Operating system: Gentoo/Linux PHP version: 5.2.4 PHP Bug Type: MySQL related Bug description: When mysql and mysqli enabled both together, php cli hangs
Description: ------------ when compiled vanilla php-5.2.4 with this params ./configure --disable-all --enable-maintainer-zts --with-mysqli=/usr/ bin/mysql_config it's ok when added mysql support too ./configure --disable-all --enable-maintainer-zts --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config it's bad even sapi/cli/php -i hangs forever on futex call strace sapi/cli/php -i .... write(1, "questions about PHP licensing, p"..., 63questions about PHP licensing, please contact [EMAIL PROTECTED] ) = 63 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 futex(0x2adbeb81cac0, FUTEX_WAIT, 2, NULL <unfinished ...> The same behavior with php5.2-200709110830. Reproduce code: --------------- tar xjvf php-5.2.4.tar.bz2 mv php-5.2.4 php-5.2.4-mysqli cp -r php-5.2.4-mysqli php-5.2.4-mysql-mysqli cd php-5.2.4-mysql-mysqli ./configure --disable-all --enable-maintainer-zts --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config make sapi/cli/php -i #HANGS HERE# cd ../php-5.2.4-mysqli ./configure --disable-all --enable-maintainer-zts --with-mysqli=/usr/ bin/mysql_config make sapi/cli/php -i #DOESN'T HANG HERE# Diff between those 2 build dirs on my pc.. http://pastebin.com/m9c448da Portage 2.1.3.9 (default-linux/amd64/2007.0/desktop, gcc-4.2.2-alpha20070905/amd64-vanilla, glibc-2.6.1-r0, 2.6.23-rc5-git1-JaMa x86_64) ================================================================= System uname: 2.6.23-rc5-git1-JaMa x86_64 AMD Athlon(tm) 64 Processor 3700+ Timestamp of tree: Tue, 11 Sep 2007 10:01:01 +0000 ccache version 2.4 [enabled] app-admin/eselect-compiler: 2.0.0_rc2-r1 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4, 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0_rc4-r1 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18.50.0.1 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8" Expected result: ---------------- php cli working Actual result: -------------- php cli hanging on every occasion -- Edit bug report at http://bugs.php.net/?id=42625&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42625&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42625&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42625&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42625&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42625&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42625&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42625&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42625&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42625&r=support Expected behavior: http://bugs.php.net/fix.php?id=42625&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42625&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42625&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42625&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42625&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42625&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42625&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42625&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42625&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42625&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42625&r=mysqlcfg