#44075 [Ver->Csd]: strtok misbehaving

From: Date: Mon, 24 Nov 2008 19:21:49 +0000
Subject: #44075 [Ver->Csd]: strtok misbehaving
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-131271@lists.php.net to get a copy of this message
ID: 44075 Updated by: lbarnaud@php.net 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] felipe@php.net 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

« previous php.bugs (#131271) next »