|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-10-24 23:15 UTC] sixd@php.net
[2012-10-24 23:15 UTC] sixd@php.net
-Status: Open
+Status: Not a bug
[2012-10-24 23:26 UTC] aleksey dot v dot korzun at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 19:00:02 2025 UTC |
Description: ------------ Please review code snippet below, expected behaviour is that code within if statement will not be executed (since the value was not found). Test script: --------------- <?php $foobar = array(); if(strpos($foobar, 'something') !== false) { echo 'fail'; } ?> Expected result: ---------------- It should not output 'fail' Actual result: -------------- Outputs fail