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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 00:01:34 2024 UTC