php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #32709 http://fr.php.net/manual/fr/function.stripos.php ->not a valid function: strpos
Submitted: 2005-04-14 22:52 UTC Modified: 2005-04-14 23:08 UTC
From: tmp at nostradamia dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: unix
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: tmp at nostradamia dot com
New email:
PHP Version: OS:

 

 [2005-04-14 22:52 UTC] tmp at nostradamia dot com
Description:
------------
Error on manual

"stripos" should be "strpos"

stripos generates the error:

Fatal error: Call to undefined function: stripos() 

This documentation error was reported back in 2003, but not corrected in the French manual. The link address is:

http://fr.php.net/manual/fr/function.stripos.php

Reproduce code:
---------------
<?php
$findme    = 'a';
$mystring1 = 'xyz';
$mystring2 = 'ABC';

$pos1 = stripos($mystring1, $findme);
$pos2 = stripos($mystring2, $findme);


Expected result:
----------------
0

=>Proper documentation

Actual result:
--------------
Fatal error: Call to undefined function: stripos() 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-14 23:08 UTC] tony2001@php.net
That's becuase you're using PHP4 and not PHP5, and it's stated in the docs that this function first appeared only in PHP5.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 22:01:33 2025 UTC