Re: strrchr() bugs

From: Date: Wed, 16 Jun 2004 18:42:48 +0000
Subject: Re: strrchr() bugs
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-10539@lists.php.net to get a copy of this message
Ard Biesheuvel wrote:
Hartmut Holzgraefe wrote:
Adam Maccabee Trachtenberg wrote:
Logically, it would probably be best to return 0 because that's where the first empty string occurs.
this is strrchr(), not strchr() ;)
Actually it's strrpos(), not str[r]chr() [look at Alexander's code], which _has_ been rewritten in PHP 5.
It should still find the *last* emtpy string, not the first, shouldn't it? ;) -- Hartmut Holzgraefe <hartmut@php.net>

« previous php.internals (#10539) next »