Re: 4.1.0

From: Date: Mon, 12 Nov 2001 19:31:10 +0000
Subject: Re: 4.1.0
References: 1 2 3 4 5 6 7  Groups: php.dev 
Request: Send a blank email to php-dev+get-70264@lists.php.net to get a copy of this message
> I suggest an RC2 (today?) and a release by the end of the week, or Monday > at the latest. > James - how sure are you that the fix you submitted is good and that we > won't find out afterwards that the bogus behavior was actually the right > thing to do? :) Well I know the old behaviour was wrong, it was return the token at times, but the ANSI C standard is vague about how strtok should behave when there are more than one token's together. $string = "James|Zeev||Andrei"; $str[0] = strtok($string, "|"); $str[1] = strtok("|"); $str[2] = strtok("|"); $str[3] = strtok("|"); Old behaviour: $str = array( string "James" string "Zeev" string "|Andrei" false ) I changed it to return $str = array( string "James" string "Zeev" string "Andrei" false ) But should it return: $str = array( string => "James" string => "Zeev" string => "" string => "Andrei" ) - James

« previous php.dev (#70264) next »