ID:               19874
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Wont fix
+Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: FreeBSD 4.6.2-RELEASE
-PHP Version:      4.2.2
+PHP Version:      4.3.0
 New Comment:

worthy argument, may as well leave this feature request open :)  btw,
submit a patch and someone will most likely evaluate/comment on it.

new features do not go into minor point releases so if this was
implemented it'd go in PHP 5.0.0


Previous Comments:
------------------------------------------------------------------------

[2003-01-28 15:27:17] [EMAIL PROTECTED]

Yeah, this is the obvious way around it, but it's pretty crude.  I use
strpos() for speed, especially on large string, and if you need to
first copy the entire string and convert it lowercase, I might as well
use stristr().

Implementing stripos() would be so trivial, I can't see a reason not to
do it.  I'd do it myself, however, to keep the quality of PHP high,
it'd be better for someone with Zend/PHP C experience to write it.

Could stripos() be available in the next minor point release even?

Many thanks,

Hans

------------------------------------------------------------------------

[2003-01-28 15:10:51] [EMAIL PROTECTED]

Consider using:

  $position = strpos(strtolower($haystack),strtolower($needle));

------------------------------------------------------------------------

[2002-10-11 20:29:09] [EMAIL PROTECTED]


Maybe I'm missing something, but a case-insensitive strpos() would be
handy.  Yeah, there's obvious ways around it, but a native function
would be great.

Regards,

Hans

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=19874&edit=1

Reply via email to