From: zygimantas at skylords dot com Operating system: RH7 PHP version: 4.3.2 PHP Bug Type: Arrays related Bug description: strpos
Description:
------------
strpos fails when array is used as needle.
Reproduce code:
---------------
$i = 2;
$str_word = 'sentence with word2';
$arr_letters = array('word1', 'word2', 'word3');
echo strpos($str_word, $arr_letters[$i]);
Expected result:
----------------
null
--
Edit bug report at http://bugs.php.net/?id=25909&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25909&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25909&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25909&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25909&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25909&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25909&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25909&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25909&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25909&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25909&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25909&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25909&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25909&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25909&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25909&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25909&r=float
