ID: 44075 Updated by: [EMAIL PROTECTED] Reported By: jeff76 at operamail dot com -Status: Verified +Status: Closed Bug Type: Strings related Operating System: * PHP Version: 6CVS-2008-02-08 (snap) New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2008-02-08 17:27:54] [EMAIL PROTECTED] This occur only in unicode.semantics=1; ------------------------------------------------------------------------ [2008-02-08 06:24:02] jeff76 at operamail dot com Description: ------------ strtok is misbehaving in 6 snap., or at least not consistent with the behavior in PHP version 5. Reproduce code: --------------- $chaine='1-2'; $a=strtok($chaine,'-'); $b=strtok(' '); echo($a.' then '.$b); Expected result: ---------------- 1 then 2 Actual result: -------------- 1 then -2 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44075&edit=1