#36097 [Opn->Bgs]: wrong analisys of strings in conditions

From: Date: Fri, 20 Jan 2006 10:13:01 +0000
Subject: #36097 [Opn->Bgs]: wrong analisys of strings in conditions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-92269@lists.php.net to get a copy of this message
ID: 36097 Updated by: derick@php.net Reported By: php at samokhvalov dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Linux Fedora4, Windows 2003 PHP Version: 5.1.2 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php . Previous Comments: ------------------------------------------------------------------------ [2006-01-20 11:04:44] php at samokhvalov dot com Description: ------------ Just look at the examples... Reproduce code: --------------- $var = "test"; if ($var["field"]) { echo "suprise!"; } or $var = "test"; if (isset($var["field"])) { echo "suprise!"; } Expected result: ---------------- No output Actual result: -------------- "suprise!" being printed as a result in both cases ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36097&edit=1

« previous php.bugs (#92269) next »