#32709 [Opn->Bgs]: http://fr.php.net/manual/fr/function.stripos.php ->not a valid function: strpos

From: Date: Thu, 14 Apr 2005 21:08:43 +0000
Subject: #32709 [Opn->Bgs]: http://fr.php.net/manual/fr/function.stripos.php ->not a valid function: strpos
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969367822@lists.php.net to get a copy of this message
ID: 32709 Updated by: tony2001@php.net Reported By: tmp at nostradamia dot com -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: unix PHP Version: Irrelevant New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2005-04-14 22:52:54] 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() ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32709&edit=1

« previous php.doc (#969367822) next »