|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-29 23:07 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 21:00:01 2025 UTC |
Description: ------------ It seems that modifications that result from an INSERT ... SELECT query in a PHP script are sometimes not imediately available to another script whose name apears in header("Location: ..."). I have been able to reproduce this bug ONLY on my personal system: Red Hat 9.0 + MySQL 4.0.18 (installed from RPM) + PHP 4.3.5 (or 4.3.4) + apache 2.0.49 (or 1.3.29), ONLY when making request from local computer and ONLY with a "INSERT ... SELECT" query type. It is weird that if I set DEBUG to TRUE I ALWAYS get 3 and I also get 3 ALWAYS when requesting the page from a remote location. phpinfo() reports this in the Configure Command field: './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-mysql=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--disable-cgi' '--with-zlib' '--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-dio' '--with-dom' '--enable-exif' '--enable-ftp' '--with-gettext' '--with-gmp' '--enable-mbstring' '--with-ncurses' '--with-pgsql' '--with-gdbm' '--with-readline' '--with-libedit' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-wddx' '--enable-zend-multibyte' Files /etc/php.ini and php.ini-dist are identical. Reproduce code: --------------- http://silviup.dap.ro/test/index.phps http://silviup.dap.ro/test/index2.phps Expected result: ---------------- I expect to see # 3 Actual result: -------------- Instead I see # # # # # # # # # # # 3 or # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 3 or sometimes # 3