#22884 [Opn->Bgs]: something strange with strchr
| From: | moriyoshi@php.net | Date: | Wed, 26 Mar 2003 00:06:09 +0000 |
| Subject: | #22884 [Opn->Bgs]: something strange with strchr | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-36432@lists.php.net to get a copy of this message | ||
ID: 22884
Updated by: moriyoshi@php.net
Reported By: sebastien at mouzaia dot com
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: linux
PHP Version: 4.3.1
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
See http://www.php.net/manual/en/function.strrchr.php.
As described in the documentation, strrchr() doesn't work in the
opposite way of strchr().
Previous Comments:
------------------------------------------------------------------------
[2003-03-25 17:49:59] sebastien at mouzaia dot com
<?
print(phpversion().'<br>');
$string = "public_html/concepts/2L_vuda_dupont/wip/drawings";
$return = strrchr($string,'wip/');
print($return.'<br>'); // print wings WHY ???
print("<hr>");
$string = "public_html/concepts/2L_vuda_dupont/wip/drazings";
$return = strrchr($string,'wip/'); // print /wip/drazings(OK)
print($return.'<br>')
// tested on a 4.3.1 linux and on a 4.3.0 windows
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22884&edit=1