#23215 [NEW]: strstr does not return return all from found needle to the end of the string
| From: | gorkha at brillianet dot com | Date: | Tue, 15 Apr 2003 01:24:20 +0000 |
| Subject: | #23215 [NEW]: strstr does not return return all from found needle to the end of the string | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-37673@lists.php.net to get a copy of this message | ||
From: gorkha at brillianet dot com
Operating system: linux redhat 8.0
PHP version: 4.3.0
PHP Bug Type: Strings related
Bug description: strstr does not return return all from found needle to the end of the string
Example of the bug:
$teststring="John\0Smith";
print strstr($teststring,"oh");
It will now only print out 'ohn', because strstr only returns to the '\0'
and not the rest of the string.
--
Edit bug report at http://bugs.php.net/?id=23215&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23215&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23215&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23215&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23215&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23215&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23215&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23215&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23215&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23215&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23215&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23215&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23215&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23215&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23215&r=gnused