php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46652 stripos
Submitted: 2008-11-23 11:49 UTC Modified: 2008-11-23 17:11 UTC
From: neworld88 at homtmail dot com Assigned:
Status: Not a bug Package: Strings related
PHP Version: 5.2.6 OS: Microsoft Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: neworld88 at homtmail dot com
New email:
PHP Version: OS:

 

 [2008-11-23 11:49 UTC] neworld88 at homtmail dot com
Description:
------------
Reproduce code
$T = 1 ?
0 = false ?

Reproduce code:
---------------
<?php
$T = stripos("'LoadTime',time())","'")."<br>";
if($T = false)
{
	echo 'EOOR.' ;
}
?>

Expected result:
----------------
Noting

Actual result:
--------------
Noting

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-23 11:51 UTC] neworld88 at homtmail dot com
Windows XP 5.1.2600 Service Pack 3
 [2008-11-23 11:58 UTC] neworld88 at homtmail dot com
Sorry,FALSE.
 [2008-11-23 11:58 UTC] felipe@php.net
> $T = stripos("'LoadTime',time())","'")."<br>";
> if($T = false)

Error!

Please, read the "warning" part in the "Return Values" section at 
http://docs.php.net/stripos
 [2008-11-23 17:08 UTC] neworld88 at homtmail dot com
Has been shut down your computer, open once again, the issue has been resolved, I came to notice.
This is the first day of learning PHP, sorry.
Began to think that it is case-sensitive error.
Inadvertently see http://docs.php.net/stripos ($ pos1 === false)
Before I used the ($ pos1 == false), is really funny, ha ha
Thank you for your immediate response!
Thank you very much
Computer English translation, grammar may be wrong.
 [2008-11-23 17:11 UTC] neworld88 at homtmail dot com
The actual code, rather than above, the above code to create temporary, it now appears a sense, really ashamed, I am sorry.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 07 23:01:32 2025 UTC