From: sebastien at mouzaia dot com
Operating system: linux
PHP version: 4.3.1
PHP Bug Type: Unknown/Other Function
Bug description: something strange with strchr
<?
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 bug report at http://bugs.php.net/?id=22884&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22884&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22884&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22884&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22884&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22884&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22884&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22884&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22884&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22884&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22884&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22884&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22884&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22884&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22884&r=gnused