ID: 43156 Updated by: [EMAIL PROTECTED] Reported By: ocknu at comcast dot net -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: vista x64 PHP Version: 5.2.4 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. stristr doesn't return true on success. Previous Comments: ------------------------------------------------------------------------ [2007-10-31 04:42:49] ocknu at comcast dot net Description: ------------ can not get the code to work right. instead of giving a true respond it gives a false ll the time. why? running from url http://127.0.0.1 Reproduce code: --------------- echo "Checking current url <br>"; if (stristr($url, '127.0.0.1') === TRUE) { echo '<font color="red">You are running as localhost(127.0.0.1), this is not smart and can result in wrong paths</font><br>'; } elseif (stristr($url, 'localhost') === TRUE) { echo '<font color="red">You are running as localhost, this is not smart and can result in wrong paths</font><br>'; } echo '<font color="blue">Found url: '; echo $url."</font><br>"; Expected result: ---------------- You are running as localhost(127.0.0.1), this is not smart and can result in wrong paths Actual result: -------------- found url: 127.0.0.1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43156&edit=1