|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-14 07:51 UTC] jan@php.net
[2002-10-14 07:53 UTC] derick@php.net
[2002-10-14 09:26 UTC] sk at mira dot dk
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 02:00:01 2025 UTC |
Reproduce bug: -------------- -Create a table with a field name "exit". -Run a script like this: <?php mysql_connect(SQL_HOST, SQL_USER, SQL_PASS); mysql_select_db(SQL_DB); echo "still allive"; $result=mysql_query("select * from table"); while ($row=mysql_fetch_array($result)) { if ($row[exit] == "something") { echo "do something"; } else { echo "something else"; } } echo "dead allready"; ?> The problem is, that when you do a if statement on a $row[exit], then the php script is stoped as if you where calling "exit()"; It's only happening in a if statement with a MySQL field called exit. Configure line: --------------- './configure' '--with-mysql=/usr/local/mysql' '--with-xml' '--enable-track-vars' '--with-apache=/usr/ports/distfiles/apache_1.3.19' '--with-gd=/usr/ports/distfiles/gd-2.0.1' '--enable-ftp' '--enable-bcmath' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-png-dir=/usr/local' '--with-zlib-dir=/usr/include' '--with-gettext' '--with-imap=/usr/ports/distfiles/imap-2001a'